|
@@ -121,8 +121,7 @@ scenario 4:
|
|
|
|
|
|
|
|
|
|
Example 3:
|
|
Example 3:
|
|
- cv = [((1, 2, 3, 4, 5, 6), (7, 8, 9)),
|
|
|
|
- ((5, 6, 7, 8), (9, 10))]
|
|
|
|
|
|
+ cv = [((1, 2, 3, 4, 5, 6), (7, 8, 9))]
|
|
|
|
|
|
cv_threshold = [ [((1, 2), (3, 4, 5)),
|
|
cv_threshold = [ [((1, 2), (3, 4, 5)),
|
|
((2, 3), (4, 5, 6))
|
|
((2, 3), (4, 5, 6))
|
|
@@ -181,9 +180,6 @@ from cdplib.ml_validation.CVComposer import CVComposer
|
|
from cdplib.fine_tuning import get_optimal_proba_threshold
|
|
from cdplib.fine_tuning import get_optimal_proba_threshold
|
|
|
|
|
|
|
|
|
|
-# TODO: write with yield !!!!
|
|
|
|
-
|
|
|
|
-
|
|
|
|
def cross_validate_with_optimal_threshold(
|
|
def cross_validate_with_optimal_threshold(
|
|
score_func_threshold: Callable,
|
|
score_func_threshold: Callable,
|
|
estimator: object,
|
|
estimator: object,
|