elphick.sklearn_viz.model_selection.learning_curve.plot_learning_curve

elphick.sklearn_viz.model_selection.learning_curve.plot_learning_curve(estimator, x, y, cv=5, title=None)[source]
Parameters:
  • estimator – The scikit-learn model or pipeline.

  • x (DataFrame) – X values provided to calculate the learning curve.

  • y (Union[DataFrame, Series]) – y values provided to calculate the learning curve.

  • cv (Union[int, Any]) – The number of cross validation folds or cv callable.

  • title (Optional[str]) – Optional plot title

Return type:

Figure

Returns:

a plotly GraphObjects.Figure