Skip to content

Commit a279809

Browse files
refactor
1 parent 33840ae commit a279809

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp/APLRRegressor.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class APLRRegressor
8686
void update_coefficients_for_all_steps();
8787
void print_final_summary();
8888
void find_optimal_m_and_update_model_accordingly();
89-
void remove_redundant_terms();
89+
void merge_similar_terms();
9090
void remove_unused_terms();
9191
void name_terms(const MatrixXd &X, const std::vector<std::string> &X_names);
9292
void calculate_feature_importance_on_validation_set();
@@ -241,7 +241,7 @@ void APLRRegressor::fit(const MatrixXd &X, const VectorXd &y, const VectorXd &sa
241241
update_coefficients_for_all_steps();
242242
print_final_summary();
243243
find_optimal_m_and_update_model_accordingly();
244-
remove_redundant_terms();
244+
merge_similar_terms();
245245
remove_unused_terms();
246246
revert_scaling_if_using_log_link_function();
247247
name_terms(X, X_names);
@@ -1333,7 +1333,7 @@ void APLRRegressor::find_optimal_m_and_update_model_accordingly()
13331333
m_optimal = best_boosting_step_index + 1;
13341334
}
13351335

1336-
void APLRRegressor::remove_redundant_terms()
1336+
void APLRRegressor::merge_similar_terms()
13371337
{
13381338
for (size_t i = 0; i < terms.size(); ++i)
13391339
{

0 commit comments

Comments
 (0)