You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: API_REFERENCE_FOR_CLASSIFICATION.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Specifies the maximum number of bins to discretize the data into when searching
29
29
Specifies the maximum allowed depth of interaction terms. ***0*** means that interactions are not allowed. This hyperparameter should be tuned by for example doing a grid search for best predictiveness. For best interpretability use 0 (or 1 if interactions are needed).
30
30
31
31
#### max_interactions (default = 100000)
32
-
The maximum number of interactions allowed in each underlying model. A lower value may be used to reduce computational time.
32
+
The maximum number of interactions allowed in each underlying model. A lower value may be used to reduce computational time or to increase interpretability.
33
33
34
34
#### min_observations_in_split (default = 20)
35
35
The minimum effective number of observations that a term in the model must rely on. This hyperparameter should be tuned. Larger values are more appropriate for larger datasets. Larger values result in more robust models (lower variance), potentially at the expense of increased bias.
@@ -125,7 +125,7 @@ Parameters are the same as in ***predict_class_probabilities()***.
***Returns a numpy matrix containing estimated feature contribution to the linear predictor in X for each predictor.***
128
+
***Returns a numpy matrix containing feature contribution to the linear predictor in X for each predictor. For each prediction this method uses calculate_local_feature_contribution() in the logit APLRRegressor model for the category that corresponds to the prediction. Example: If a prediction is "myclass" then the method uses calculate_local_feature_contribution() in the logit model that predicts whether an observation belongs to class "myclass" or not.***
129
129
130
130
### Parameters
131
131
@@ -160,4 +160,9 @@ A string specifying the label of the category.
160
160
161
161
## Method: get_feature_importance()
162
162
163
-
***Returns a numpy vector containing the feature importance of each predictor, estimated as an average of feature importances for the underlying logit models.***
163
+
***Returns a numpy vector containing the feature importance of each predictor, estimated as an average of feature importances for the underlying logit models.***
164
+
165
+
166
+
## Method: get_unique_term_affiliations()
167
+
168
+
***Returns a list of strings containing unique predictor affiliations for terms.***
Copy file name to clipboardExpand all lines: API_REFERENCE_FOR_REGRESSION.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ Specifies the maximum number of bins to discretize the data into when searching
32
32
Specifies the maximum allowed depth of interaction terms. ***0*** means that interactions are not allowed. This hyperparameter should be tuned by for example doing a grid search for best predictiveness. For best interpretability use 0 (or 1 if interactions are needed).
33
33
34
34
#### max_interactions (default = 100000)
35
-
The maximum number of interactions allowed in each underlying model. A lower value may be used to reduce computational time.
35
+
The maximum number of interactions allowed in each underlying model. A lower value may be used to reduce computational time or to increase interpretability.
36
36
37
37
#### min_observations_in_split (default = 20)
38
38
The minimum effective number of observations that a term in the model must rely on. This hyperparameter should be tuned. Larger values are more appropriate for larger datasets. Larger values result in more robust models (lower variance), potentially at the expense of increased bias.
@@ -221,7 +221,7 @@ A numpy matrix with predictor values.
0 commit comments