Marketing Analytics: Predicting Customer Churn in Python
Mark Peterson
Director of Data Science, Infoblox
'Churn'
from sklearn.svm import SVC
svc = SVC()
svc.fit(telco[features], telco['target'])
SVC(C=1.0, cache_size=200, class_weight=None, coef0=0.0,
decision_function_shape='ovr', degree=3, gamma='scale', kernel='rbf',
max_iter=-1, probability=False, random_state=None, shrinking=True,
tol=0.001, verbose=False)
prediction = svc.predict(new_customer)
print(prediction)
[0]
Marketing Analytics: Predicting Customer Churn in Python