@@ -53,9 +53,9 @@ class Term
5353    void  estimate_split_point_on_discretized_data ();
5454    void  calculate_coefficient_and_error_on_discretized_data (bool  direction_right, double  split_point);
5555    void  estimate_coefficient_and_error_on_all_data ();
56-     void  clean_up_after_estimate_split_point ();
57-     void  clean_up_after_fit ();
58-     void  clean_up_when_this_term_was_added_as_a_given_predictor ();
56+     void  cleanup_after_estimate_split_point ();
57+     void  cleanup_after_fit ();
58+     void  cleanup_when_this_term_was_added_as_a_given_predictor ();
5959
6060public: 
6161    // fields
@@ -173,7 +173,7 @@ void Term::estimate_split_point(const MatrixXd &X,const VectorXd &y,const Vector
173173    discretize_data_by_bin ();
174174    estimate_split_point_on_discretized_data ();
175175    estimate_coefficient_and_error_on_all_data ();
176-     clean_up_after_estimate_split_point ();
176+     cleanup_after_estimate_split_point ();
177177}
178178
179179// Calculate indices that get zeroed out during calculate() because of given terms. Also calculates indices of those observations that do not.
@@ -584,7 +584,7 @@ void Term::estimate_coefficient_and_error_on_all_data()
584584    }
585585}
586586
587- void  Term::clean_up_after_estimate_split_point  ()
587+ void  Term::cleanup_after_estimate_split_point  ()
588588{
589589    given_terms_indices.not_zeroed .resize (0 );
590590    given_terms_indices.zeroed .resize (0 );
@@ -595,7 +595,7 @@ void Term::clean_up_after_estimate_split_point()
595595    errors_initial.resize (0 );
596596}
597597
598- void  Term::clean_up_after_fit  ()
598+ void  Term::cleanup_after_fit  ()
599599{
600600    bins_start_index.clear ();
601601    bins_end_index.clear ();
@@ -605,9 +605,9 @@ void Term::clean_up_after_fit()
605605    sample_weight_discretized.resize (0 );
606606}
607607
608- void  Term::clean_up_when_this_term_was_added_as_a_given_predictor  ()
608+ void  Term::cleanup_when_this_term_was_added_as_a_given_predictor  ()
609609{
610-     clean_up_after_fit ();
610+     cleanup_after_fit ();
611611    coefficient_steps.resize (0 );
612612}
613613
0 commit comments