File size: 337 Bytes
a17bdfd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import joblib
import pandas as pd
# Load the model
model = joblib.load('model/model.pkl')
# Load the data
data = pd.read_csv('data/sample_data.csv')
# Make predictions
predictions = model.predict(data)
# save the predictions
data['Churn'] = predictions
# save as sample_output.csv
data.to_csv('data/sample_output.csv', index=False)
|