-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve feature_importances function
Part of #97. The goal is to make the function more explainable. Moved the aggregation function to utils.py where it can be inspected more easily. By default it's a simple sum, but for the feature importance measure it normalizes before summing over features, then normalizes the result so the importances sum to 1. Borda counts are an option too but I think scores are best for importance, to preserve the magnitudes of the coefficients. Also switched to LinearRegression instead of Lasso, which should really be fitted for alpha, see #98.
- Loading branch information
Showing
4 changed files
with
130 additions
and
26 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