Skip to content
1 hidden cell
Supervised Learning with scikit-learn
Supervised Learning with scikit-learn
Run the hidden code cell below to import the data used in this course.
1 hidden cell
Take Notes
Add notes about the concepts you've learned and code cells with code you want to keep.
Los modelos de clasificación son ideales cuando la pregunta/respuesta es de tipo binario 1/0 o True/False
Los modelos de regresión permiten una predicción/análisis más amplio
# Construir un modelo de regresión linear
# Import LinearRegression
from sklearn.linear_model import LinearRegression
# Create the model
reg = LinearRegression()
# Fit the model to the data
reg.fit(X,y)
# Make predictions
predictions = reg.predict(X)
print(predictions[:5])