7.7.4. mclearn.viz.plot_learning_curve

mclearn.viz.plot_learning_curve(sample_sizes, learning_curves, curve_labels, xscale='log', ax=None)[source]

Plot the learning curve.

Parameters:
  • sample_sizes (array) – The sample sizes in which the classifier is run.
  • learning_curves (array) – List of learning_curves to be plotted
  • curve_labels (array) – The labels of the learning curves.
  • xscale (str) – The scale of the x-axis. Default is ‘log’.
  • ax (Matplotlib Axes object) – A matplotlib Axes instance.
Returns:

ax – The matplotlib Axes instance where the figure is drawn.

Return type:

Matplotlib Axes object