I agree with Olivier -
On the latest dev version for me, partial_fit is there
I am unable to reproduce this problem
-------------------------
>>> model = naive_bayes.MultinomialNB()
>>> model.partial_fit(X, Y, classes = [0, 1])
>>> dir(model)
['__abstractmethods__', '__class__', '__delattr__', '__dict__', '__doc__',
'__format__', '__getattribute__', '__hash__', '__init__', '__module__',
'__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__',
'__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_abc_cache',
'_abc_negative_cache', '_abc_negative_cache_version', '_abc_registry',
'_count', '_get_coef', '_get_intercept', '_get_param_names',
'_joint_log_likelihood', '_update_class_log_prior',
'_update_feature_log_prob', 'alpha', 'class_count_', 'class_log_prior_',
'class_prior', 'classes_', 'coef_', 'feature_count_', 'feature_log_prob_',
'fit', 'fit_prior', 'get_params', 'intercept_', '*partial_fit*', 'predict',
'predict_log_proba', 'predict_proba', 'score', 'set_params']
2013/10/9 Olivier Grisel <[email protected]>
> 2013/10/9 Ryan Rosario <[email protected]>:
> > I had the same issue on a fresh clone from Git after building and
> > installing it.
> >
> > I was able to fix the issue by removing the six.with_metaclass() call in
> > the base class DiscreteNB in naive_bayes.py and then building and
> > reinstalling, but this doesn't seem like a good fix for a wider audience.
> >
> > I filed a bug report.
> >
> > R.
> >
> > On 10/8/13 9:58 PM, "Gael Varoquaux" <[email protected]>
> wrote:
> >
> >>On Tue, Oct 08, 2013 at 09:05:52PM +0000, Ryan Rosario wrote:
> >>> I am trying to use the partial_fit function on a MultinomialNB object
> in
> >>> 0.14-git.
> >>> The API documentation for 0.14 says that this function exists. When I
> >>> try to use it, I get an error:
> >>
> >>0.14-git is before the release of 0.14, so it might not be there yet.
>
> Hi Ryan,
>
> I am pretty sure you are the only one to experience this issue so it
> is probably related to incorrect or not up to date install of the dev
> release of scikit-learn on your side.
>
> --
> Olivier
> http://twitter.com/ogrisel - http://github.com/ogrisel
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general