Challenge: Rule-based Approach
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 2
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Awesome!
Completion rate improved to 6.67
Challenge: Rule-based Approach
Sveip for å vise menyen
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Awesome!
Completion rate improved to 6.67Seksjon 2. Kapittel 2
single