                y,
                SmartcoreKNNRegressorParameters::default()
                    .with_k(settings.knn_regressor_settings.as_ref().unwrap().k)
                    .with_algorithm(
                        settings
                            .knn_regressor_settings
                            .as_ref()
                            .unwrap()
                            .algorithm
                            .clone(),
                    )