lib/rumale/ensemble/ada_boost_regressor.rb in rumale-ensemble-0.25.0 vs lib/rumale/ensemble/ada_boost_regressor.rb in rumale-ensemble-0.26.0

- old
+ new

@@ -91,10 +91,10 @@ end # Initialize some variables. n_samples, n_features = x.shape @params[:max_features] = n_features unless @params[:max_features].is_a?(Integer) - @params[:max_features] = [[1, @params[:max_features]].max, n_features].min + @params[:max_features] = [[1, @params[:max_features]].max, n_features].min # rubocop:disable Style/ComparableClamp observation_weights = Numo::DFloat.zeros(n_samples) + 1.fdiv(n_samples) @estimators = [] @estimator_weights = [] @feature_importances = Numo::DFloat.zeros(n_features) sub_rng = @rng.dup