-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pr4 advanced method monotone constraints (#3264)
* No need to pass the tree to all fuctions related to monotone constraints because the pointer is shared. * Fix OppositeChildShouldBeUpdated numerical split optimisation. * No need to use constraints when computing the output of the root. * Refactor existing constraints. * Add advanced constraints method. * Update tests. * Add override. * linting. * Add override. * Simplify condition in LeftRightContainsRelevantInformation. * Add virtual destructor to FeatureConstraint. * Remove redundant blank line. * linting of else. * Indentation. * Lint else. * Replaced non-const reference by pointers. * Forgotten reference. * Leverage USE_MC for efficiency. * Make constraints const again in feature_histogram.hpp. * Update docs. * Add "advanced" to the monotone constraints options. * Update monotone constraints restrictions. * Fix loop iterator. Co-authored-by: Nikita Titov <[email protected]> * Fix loop iterator. Co-authored-by: Nikita Titov <[email protected]> * Remove superfluous parenthesis. * Fix loop iterator. Co-authored-by: Nikita Titov <[email protected]> * Fix loop iterator. Co-authored-by: Nikita Titov <[email protected]> * Fix loop iterator. Co-authored-by: Nikita Titov <[email protected]> * Fix loop iterator. Co-authored-by: Nikita Titov <[email protected]> * Fix loop iterator. Co-authored-by: Nikita Titov <[email protected]> * Fix loop iterator. Co-authored-by: Nikita Titov <[email protected]> * Fix loop iterator. Co-authored-by: Nikita Titov <[email protected]> * Fix loop iterator. Co-authored-by: Nikita Titov <[email protected]> * Remove std namespace qualifier. * Fix unsigned_int size_t comparison. * Set num_features as int for consistency with the rest of the codebase. * Make sure constraints exist before recomputing them. * Initialize previous constraints in UpdateConstraints. * Update monotone constraints restrictions. * Refactor UpdateConstraints loop. * Update src/io/config.cpp Co-authored-by: Nikita Titov <[email protected]> * Delete white spaces. Co-authored-by: Charles Auguste <[email protected]> Co-authored-by: Nikita Titov <[email protected]>
- Loading branch information
1 parent
3454698
commit 4278f22
Showing
7 changed files
with
842 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.