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

How to get class assignment for columns for predict_proba? #22

Open
nadiiach opened this issue Aug 4, 2020 · 2 comments
Open

How to get class assignment for columns for predict_proba? #22

nadiiach opened this issue Aug 4, 2020 · 2 comments

Comments

@nadiiach
Copy link

nadiiach commented Aug 4, 2020

predict_proba returns probabilities for corresponding classes and user needs to know the class correspondence.
In other frameworks this information is accessible through .classes_ instance variable of estimator.
Is there anything like this for DeepTables models? I am currently working with DCN.

@jackguagua
Copy link
Member

@nadiiach nice suggestion! DT will support it soon.

jackguagua added a commit that referenced this issue Aug 4, 2020
@jackguagua
Copy link
Member

Now, you can get classes information like this:

dt.fit(X,y)
dt.classes_
dt.num_classes
dt.pos_label  #only for binary classification

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