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

TypeError: estimate() got an unexpected keyword argument 'pipelines' #11

Closed
Vaunorage opened this issue Oct 20, 2020 · 2 comments
Closed

Comments

@Vaunorage
Copy link

When running tutorial code :

#%%
import cflearn
from cfdata.tabular import TabularDataset

import cflearn

from cfdata.tabular import *

# prepare iris dataset
iris = TabularDataset.iris()
iris = TabularData.from_dataset(iris)
# split 10% of the data as validation data
split = iris.split(0.1)
train, valid = split.remained, split.split
x_tr, y_tr = train.processed.xy
x_cv, y_cv = valid.processed.xy
data = x_tr, y_tr, x_cv, y_cv

m = cflearn.make().fit(*data)
# Make label predictions
m.predict(x_cv)
# Make probability predictions
m.predict_prob(x_cv)
# Estimate performance
cflearn.estimate(x_cv, y_cv, pipelines=m)

We get :

                                     Traceback (most recent call last):
  File "C:\ProgramData\miniconda\lib\site-packages\IPython\core\interactiveshell.py", line 3331, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-4-78d46f42bbd0>", line 24, in <module>
    cflearn.estimate(x_cv, y_cv, pipelines=m)
TypeError: estimate() got an unexpected keyword argument 'pipelines'
@carefree0910
Copy link
Owner

Hi! It's my bad for not clarifying that some of the usages are only available through pip installing from source 😢 I'll update the README.md ASAP!

@carefree0910
Copy link
Owner

I've updated the README.md, hiding oridinary pip install method 😅

I know this is something bad but I'm busy working on new features, after which I'll release a new version! 🤣

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