Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Occasionally, NaN is returned even though the target anchor was evaluated. #9

Open
fmohr opened this issue Jan 10, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@fmohr
Copy link
Owner

fmohr commented Jan 10, 2023

It happens for example if the train curve is ignored.

ipl = lambda x: -0.2 * x **-0.4 + 0.3
evaluator_anomal_learning_curves = lambda learner, anchor, timeout: (ipl(anchor) - 0.01, ipl(anchor)) # train curve is worse than validation curve
score, score_est, elc, model = lccv(sklearn.tree.DecisionTreeClassifier(), None, None, r = 0.29, evaluator = evaluator_anomal_learning_curves, target_anchor = 1500, use_train_curve = False)
print(f"Initial training performance: {model.df.query('trainsize == 64')['score_train'].mean()}")
print(score, elc) ## without this flag, the curve is computed completely
@fmohr fmohr added the bug Something isn't working label Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant