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

Generating probabilities instead of categorical results #80

Open
tejas9090 opened this issue Jan 29, 2021 · 0 comments
Open

Generating probabilities instead of categorical results #80

tejas9090 opened this issue Jan 29, 2021 · 0 comments

Comments

@tejas9090
Copy link

tejas9090 commented Jan 29, 2021

  1. Is there some way to generate C code which would give me floating point probabilities for every prediction category instead of a binary result? I am using the ExtraTreeModel from sklearn (code snippet shown below).

  2. My model is almost 1Gb in size, the C code generated is about the same size, which will take forever to compile, is there a way to compress this model or split up the files?

Training Code Snippet

from sklearn.ensemble import ExtraTreesClassifier
from joblib import dump, load

clf = ExtraTreesClassifier(n_estimators=250, random_state=0,verbose=True)
clf.fit(train_x, train_y)
prob_test_data = clf.predict_proba(test_x)

Thanks in advance

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

No branches or pull requests

2 participants