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

random seeds and predict_proba #26

Open
wahahaaaa123 opened this issue Jun 1, 2023 · 2 comments
Open

random seeds and predict_proba #26

wahahaaaa123 opened this issue Jun 1, 2023 · 2 comments

Comments

@wahahaaaa123
Copy link

wahahaaaa123 commented Jun 1, 2023

Hi, great work. I have 2 questions:

  1. The results obtained are inconsistent each time. How can I set the parameters so that the random seeds of all processes are consistent and the results can be repeated?

  2. When I use "y_pred_proba = model.predict_proba(X_test)", the following error occurs:

Cell In[3], line 30, in make_predictions(model, X_test)
     28 def make_predictions(model, X_test):
     29     y_pred = model.predict(X_test)
---> 30     y_pred_proba = model.predict_proba(X_test)
     31     return y_pred, y_pred_proba

File /opt/anaconda3/envs/ml/lib/python3.11/site-packages/ensemble_tabpfn/ensemble_tabpfn.py:171, in EnsembleTabPFN.predict_proba(self, X)
    169 result = self._predict(X)
    170 result.aggregate
--> 171 return result.probs

AttributeError: 'Result' object has no attribute 'probs'
@DhanshreeA
Copy link
Contributor

Hi @LiJiYang thanks for reporting this. The version hosted on pypi does present with the predict_proba issue, I would recommend building from source currently for a more up to date version. A new release to PyPI is planned soon.
For the random seed, let me open an issue and track it, please expect a fix within this week.

@DhanshreeA
Copy link
Contributor

Hey @LiJiYang we have fixed this in the latest push to main. Can you test it and confirm if it works?

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