From d48b0efa33a54d1621402e5861b9824cc9a1610d Mon Sep 17 00:00:00 2001 From: Juan Rocha Date: Mon, 7 Oct 2024 16:32:47 -0500 Subject: [PATCH] turning back docs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 00f2eb9..200e333 100644 --- a/README.md +++ b/README.md @@ -86,13 +86,13 @@ naml = naiveautoml.NaiveAutoML(scoring="accuracy", passive_scorings=["neg_log_lo You can also pass a custom scoring function through a dictionary: ```python -scorer = { +scorer = make_scorer(**{ "name": "accuracy", "score_func": lambda y, y_pred: np.count_nonzero(y == y_pred).mean(), "greater_is_better": True, "needs_proba": False, "needs_threshold": False - } + }) naml = naiveautoml.NaiveAutoML(scoring=scorer) ```