Challenge: Rule-based Approach
Task
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.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 2
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 6.67
Challenge: Rule-based Approach
Swipe to show menu
Task
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.
Solution
Everything was clear?
Thanks for your feedback!
Awesome!
Completion rate improved to 6.67SectionΒ 2. ChapterΒ 2
single