lib/rumale/ensemble/stacking_regressor.rb in rumale-ensemble-0.24.0 vs lib/rumale/ensemble/stacking_regressor.rb in rumale-ensemble-0.25.0
- old
+ new
@@ -16,10 +16,10 @@
# estimators = {
# las: Rumale::LinearModel::Lasso.new(reg_param: 1e-2, random_seed: 1),
# mlp: Rumale::NeuralNetwork::MLPRegressor.new(hidden_units: [256], random_seed: 1),
# rnd: Rumale::Ensemble::RandomForestRegressor.new(random_seed: 1)
# }
- # meta_estimator = Rumale::LinearModel::Ridge.new(random_seed: 1)
+ # meta_estimator = Rumale::LinearModel::Ridge.new
# regressor = Rumale::Ensemble::StackedRegressor.new(
# estimators: estimators, meta_estimator: meta_estimator, random_seed: 1
# )
# regressor.fit(training_samples, training_values)
# results = regressor.predict(testing_samples)