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

Extracting Rules #9

Open
waziz786 opened this issue Jun 15, 2024 · 4 comments
Open

Extracting Rules #9

waziz786 opened this issue Jun 15, 2024 · 4 comments

Comments

@waziz786
Copy link

Dear Roshan,

I hope this message finds you well, I have been trying to extract rules for my project of classifying emergency Stay as short or long. When i classify as long it works fine and in a considerably good time but when i switch the labels to extract the rules for short stay in runs for around 12 hours and finally runs into an error as given below. Please kindly if you could help me regarding the matter.

Kind Regards,

Waqar
image

@waziz786
Copy link
Author

PS: after this the kernel crashes

@groshanlal
Copy link
Collaborator

I might need some more context to know what might possibly be happening.

How exactly did you try extracting rules for the other class? Did you train a new model with ground truth labels flipped?I'm trying to understand what is your y_train_pred in the above notebook? Is it binary labels (0, 1) directly from the model?

How many stages did you try running? Can you try running it with just 1 stage and see if you get any rules?

Regarding the kernel crashing, I believe you ran out of memory in the notebook. In the later stages, the model tries to explore a lot of combinations and is memory intensive. You can try using a lower jaccard_threshold to make it run, but you might have some performance tradeoff there.

@waziz786
Copy link
Author

Dear Roshan,

i think the problem might be because of using the fine tuned model, when i run the simple model (default settings) it runs fine.

@waziz786
Copy link
Author

PS: this is the model i am using:

#Train an XGboost Model

model = GradientBoostingClassifier(n_estimators=200, max_depth=5, learning_rate=0.1, min_samples_split=10, min_samples_leaf=2, random_state= 42)
model.fit(X_train, y_train)

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

2 participants