get_scorer

hcrystalball.metrics.get_scorer(function='neg_mean_absolute_error')[source]

Get a scorer supporting storing data for gridsearch from string.

Parameters

function (callable or str) – callable your own function

Returns

Scorer with data and estimator ids storage

Return type

sklearn compatible scorer