Challenge: Rule-based Approach
Uppgift
Swipe to start coding
Your task is to create a function that identifies outliers based on the Euclidean distance between each data point and the mean value of the dataset:
- Calculate the Euclidean distance for each data point in the dataset.
- If the calculated distance of a data point falls outside a predefined range, classify it as an outlier.
- Create a list to store the identified outliers and print the list.
Once you've completed this task, click the button below the code to check your solution.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 2
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Awesome!
Completion rate improved to 6.67
Challenge: Rule-based Approach
Svep för att visa menyn
Uppgift
Swipe to start coding
Your task is to create a function that identifies outliers based on the Euclidean distance between each data point and the mean value of the dataset:
- Calculate the Euclidean distance for each data point in the dataset.
- If the calculated distance of a data point falls outside a predefined range, classify it as an outlier.
- Create a list to store the identified outliers and print the list.
Once you've completed this task, click the button below the code to check your solution.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Awesome!
Completion rate improved to 6.67Avsnitt 2. Kapitel 2
single