Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what is nb? #35

Open
Sandy4321 opened this issue Jan 5, 2020 · 3 comments
Open

what is nb? #35

Sandy4321 opened this issue Jan 5, 2020 · 3 comments

Comments

@Sandy4321
Copy link

what is nb?
https://skope-rules.readthedocs.io/en/latest/skope_rules.html

For example

skope_rules_clf.rules_

[('Pclass <= 2.5 and isFemale > 0.5', (0.9527320854603895, 0.5283115637180831, 6))]

rules_(dict of tuples (rule, precision, recall, nb).) The collection of n_estimators rules used in the predict method.

The rules are generated by fitted sub-estimators (decision trees).

Each rule satisfies recall_min and precision_min conditions.

The selection is done according to OOB precisions.estimators_(list of DecisionTreeClassifier)

The collection of fitted sub-estimators used to generate candidate rules.estimators_samples_(list of arrays)

The subset of drawn samples (i.e., the in-bag samples) for each base estimator.estimators_features_(list of arrays)

The subset of drawn features for each base estimator.max_samples_(integer)

The actual number of samplesn_features_(integer)

The number of features when fit is performed.classes_(array, shape (n_classes,))

The classes labels.

@kabil1001
Copy link

Nb represents the number of trees had this rule.

@ngoix
Copy link
Member

ngoix commented Apr 29, 2021

nb is the number of times the rule appears (as a tree) in the underlying bagging estimator.
the doc is not clear on this, PR welcome to update it.

@ngoix ngoix mentioned this issue Apr 29, 2021
@zhuji423
Copy link

thanks,the problem is solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants