MCPcopy Index your code
hub / github.com/rushter/MLAlgorithms / test_gbm

Function test_gbm

mla/tests/test_classification_accuracy.py:93–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91
92
93def test_gbm():
94 model = GradientBoostingClassifier(
95 n_estimators=25, max_depth=3, max_features=5, learning_rate=0.1
96 )
97 model.fit(X_train, y_train)
98 predictions = model.predict(X_test)
99 assert roc_auc_score(y_test, predictions) >= 0.95
100
101
102def test_naive_bayes():

Callers

nothing calls this directly

Calls 3

fitMethod · 0.95
predictMethod · 0.45

Tested by

no test coverage detected