Predictive Modeling Machine Learning
Predictive Modeling Machine Learning
Predictive Modeling Machine Learning
~= machine learning
• Make predictions of outcome on new data
Apartment 3 50 TRUE
Duplex 4 68 TRUE
Apartment 2 32 TRUE
type # rooms surface public trans sold
(category) (int) (float m2) (boolean) (float k€)
Apartment 2 33 TRUE ?
(test)
Labels
Model
Labels
New
text doc
Expected
image Model
Label
sound
transaction Feature vector
Inventory forecasting
Predictive maintenance Personality matching
& trends detection
• Library of Machine Learning algorithms
Fitted
Test data
model
Predicted labels
Fitted
Test data y_pred = model.predict(X_test)
model
Predicted labels
Fitted
Test data y_pred = model.predict(X_test)
model
Predicted labels
model.fit(X_train, y_train)
y_predicted = model.predict(X_test)
model = SGDClassifier(alpha=1e-4,
penalty="elasticnet")
model.fit(X_train, y_train)
y_predicted = model.predict(X_test)
model = RandomForestClassifier(n_estimators=200)
model.fit(X_train, y_train)
y_predicted = model.predict(X_test)