Scikit-Learn is possibly the most popular machine learning framework in the world. In this series of videos we'd like to give an overview of the main features and how you can use the framework to approach most machine learning problems. Do watch all the videos because we also want to highlight the dangers of it.
Note that both models are called with the same API.
from sklearn.neighbors import KNeighborsRegressor from sklearn.linear_model import LinearRegression from sklearn.datasets import load_boston X, y = load_boston(return_X_y=True) mod = LinearRegression() mod.fit(X, y) mod.predict(X) mod = KNeighborsRegressor() mod.fit(X, y) mod.predict(X)
Feedback? See an issue? Something unclear? Feel free to mention it here.
If you want to be kept up to date, consider getting the newsletter.