pub fn analyze_model_complexity<E, X, Y>( estimator: &E, x_train: &[X], y_train: &[Y], x_val: &[X], y_val: &[Y], ) -> Result<ComplexityAnalysisResult>where E: Estimator + Fit<Vec<X>, Vec<Y>> + Clone, E::Fitted: Predict<Vec<X>, Vec<f64>>, X: Clone, Y: Clone + Into<f64>,
Convenience function for analyzing model complexity