Python में Machine Learning के साथ CTR प्रेडिक्शन
Kevin Huo
Instructor

C पैरामीटर regularization strength का इनवर्स है।C=0.05 < C=0.5 < C=1max_depth पेड़ की अधिकतम गहराई नियंत्रित करता है।max_depth=3 < max_depth=5 < max_depth=10
k folds में, हर fold को testing set (validation) के रूप में लें, और बाकी k-1 को training के लिए।k evaluations मिलते हैं।k_fold = KFold(n_splits = 4, random_state = 0, shuffle = True)
for i in [3, 5, 10]:
clf = DecisionTreeClassifier(max_depth = i)
cv_precision = cross_val_score(
clf, X_train, y_train, cv = k_fold,
scoring = 'precision_weighted')
precision_weighted, recall_weighted, roc_aucPython में Machine Learning के साथ CTR प्रेडिक्शन