From the course: Data Ingestion with Python

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Finding outliers (ML)

Finding outliers (ML) - Python Tutorial

From the course: Data Ingestion with Python

Start my 1-month free trial

Finding outliers (ML)

- Sometimes finding outliers is not easy. Considered for example this chart. Is what we are seeing is an out of service attack or maybe it's just the shopping on Black Friday. If you get it wrong, you're going to miss a lot of holiday shopping opportunity. This is known as seasonality in data. The reason active machine learning field called outlier detection. Outlier detection is used a lot in monitoring systems and can find possible outliers that are hard to find otherwise. There are even some companies that provide outlier detection as a service. Scikit-Learn, the machine learning library for Python, comes with several algorithms for outlier detection. Let's have a look at a simple example. So hype Python, and then we're going to import pandas as pd. And from sklearn.neighbors we're going to import localoutlierfactor. And now the data frame is pd.read csv and we have some AAPL information. All right this is some trading information for AAPL. We have the date, the symbol, open, high,…

Contents