Skip to content

Commit

Permalink
fixed make_scorer issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhao authored and Zhao committed Sep 16, 2019
1 parent 0c969a0 commit fd6154f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skll/experiments.py
Expand Up @@ -31,7 +31,7 @@
from six import iterkeys, iteritems # Python 2/3
from six.moves import zip
from sklearn import __version__ as SCIKIT_VERSION
from sklearn.metrics import fbeta_score
from sklearn.metrics import make_scorer, fbeta_score

from skll import get_skll_logger
from skll.config import _munge_featureset_name, _parse_config_file
Expand Down Expand Up @@ -1168,7 +1168,7 @@ def run_configuration(config_file, local=False, overwrite=True, queue='all.q',
grid_objectives = [None]
elif 'fbeta_score' in grid_objectives:
if 'fbeta_score' not in SCORERS.keys():
SCORERS['fbeta_score'] = make_scorer(fbeta_score, beta=beta)
SCORERS['fbeta_score'] = make_scorer(fbeta_score, beta=beta)


# Run each featureset-learner-objective combination
Expand Down

0 comments on commit fd6154f

Please sign in to comment.