You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an algorithm's prediction is missing, this can be included by calling the instance, as can be seen in the following instruction. Note that the algorithm's name can also be given with the keyword :py:attr:`name.`
67
68
68
69
>>> lr = LogisticRegression().fit(X_train, y_train)
69
70
>>> perf(lr.predict(X_val), name='Log. Reg.')
70
71
<Perf>
71
-
Prediction statistics with standard error
72
-
alg-1 = 1.000 (0.000)
73
-
forest = 0.946 (0.038)
74
-
Log. Reg. = 0.946 (0.038)
72
+
Statistic with its standard error (se)
73
+
statistic (se)
74
+
1.0000 (0.0000) <= Log. Reg.
75
+
0.9792 (0.0221) <= alg-1
76
+
0.9744 (0.0246) <= forest
75
77
76
78
The performance function used to compare the algorithms can be changed, and the same bootstrap samples would be used if the instance were cloned. Consequently, the values are computed using the same samples, as can be seen in the following example.
77
79
78
80
>>> perf_error = clone(perf)
79
81
>>> perf_error.error_func = lambda y, hy: (y != hy).mean()
0 commit comments