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

msm_assignments in the example is giving error #75

Open
MidhunkMadhu opened this issue Oct 14, 2018 · 0 comments
Open

msm_assignments in the example is giving error #75

MidhunkMadhu opened this issue Oct 14, 2018 · 0 comments

Comments

@MidhunkMadhu
Copy link

msm_assignments = pipeline.fit_transform(trajectories)
Traceback (most recent call last):
File "", line 1, in
File "/home/midhun/anaconda2/envs/py36/lib/python3.6/site-packages/sklearn/pipeline.py", line 298, in fit_transform
Xt, fit_params = self._fit(X, y, **fit_params)
File "/home/midhun/anaconda2/envs/py36/lib/python3.6/site-packages/sklearn/pipeline.py", line 230, in fit
**fit_params_steps[name])
File "/home/midhun/anaconda2/envs/py36/lib/python3.6/site-packages/sklearn/externals/joblib/memory.py", line 329, in call
return self.func(*args, **kwargs)
File "/home/midhun/anaconda2/envs/py36/lib/python3.6/site-packages/sklearn/pipeline.py", line 614, in fit_transform_one
res = transformer.fit_transform(X, y, **fit_params)
File "/home/midhun/anaconda2/envs/py36/lib/python3.6/site-packages/msmbuilder/cluster/base.py", line 173, in fit_transform
return self.fit_predict(sequences, y)
File "/home/midhun/anaconda2/envs/py36/lib/python3.6/site-packages/msmbuilder/cluster/base.py", line 154, in fit_predict
labels = super(MultiSequenceClusterMixin, self).fit_predict(sequences)
File "/home/midhun/anaconda2/envs/py36/lib/python3.6/site-packages/sklearn/cluster/k_means
.py", line 994, in fit_predict
return self.fit(X, sample_weight=sample_weight).labels

TypeError: fit() got an unexpected keyword argument 'sample_weight'

What is this error, how can I resolve it?

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

1 participant