pub fn learning_curve<E, F, C>(
estimator: E,
x: &Array2<Float>,
y: &Array1<Float>,
cv: &C,
train_sizes: Option<Vec<f64>>,
scoring: Option<Scoring>,
confidence_level: Option<f64>,
) -> Result<LearningCurveResult>Expand description
Compute learning curves for an estimator
Determines cross-validated training and test scores for different training set sizes. This is useful to find out if we suffer from bias vs variance when we add more data to the training set.
ยงArguments
estimator- The estimator to evaluatex- Training data featuresy- Training data targetscv- Cross-validation splittertrain_sizes- Relative or absolute numbers of training examples that will be used to generate the learning curvescoring- Scoring method to useconfidence_level- Confidence level for confidence bands (default: 0.95 for 95% confidence interval)