lib/rumale/ensemble/stacking_classifier.rb in rumale-ensemble-0.24.0 vs lib/rumale/ensemble/stacking_classifier.rb in rumale-ensemble-0.25.0

- old
+ new

@@ -13,14 +13,14 @@ # # @example # require 'rumale/ensemble/stacking_classifier' # # estimators = { - # lgr: Rumale::LinearModel::LogisticRegression.new(reg_param: 1e-2, random_seed: 1), + # lgr: Rumale::LinearModel::LogisticRegression.new(reg_param: 1e-2), # mlp: Rumale::NeuralNetwork::MLPClassifier.new(hidden_units: [256], random_seed: 1), # rnd: Rumale::Ensemble::RandomForestClassifier.new(random_seed: 1) # } - # meta_estimator = Rumale::LinearModel::LogisticRegression.new(random_seed: 1) + # meta_estimator = Rumale::LinearModel::LogisticRegression.new # classifier = Rumale::Ensemble::StackedClassifier.new( # estimators: estimators, meta_estimator: meta_estimator, random_seed: 1 # ) # classifier.fit(training_samples, training_labels) # results = classifier.predict(testing_samples)