get_best_not_failing_model

hcrystalball.model_selection.get_best_not_failing_model(grid_search, X, y)[source]

Prevent situation when model incompatible data are not seen during CV (in the last split of actuals) and model which cannot be fitted on the full dataset is choseen. In such a situation the next model with the lowest test score should be selected.

Parameters
Returns

with keys rank and params

Return type

dict

Raises

ValueError – No available model could be fit on given data