[scikit-learn] Combine already fitted models

2017-10-01 Thread Rares Vernica
Hello, I have a distributed setup where subsets of the data is available at different hosts. I plan to have each host fit a model with the subset of the data it owns. Once these individual models are fitted, how can I go about and combine them under one model. I don't have a preference on a speci

Re: [scikit-learn] Combine already fitted models

2017-10-01 Thread Sebastian Raschka
Hi, Rares, > I am looking at VotingClassifier but it seems that it is expected that the > estimators are fitted when VotingClassifier.fit() is called. I don't see how > I can have already fitted classifiers combined under a VotingClassifier. I think the opposite is true: The classifiers provide

Re: [scikit-learn] Combine already fitted models

2017-10-01 Thread Rares Vernica
> > I am looking at VotingClassifier but it seems that it is expected that the estimators are fitted when VotingClassifier.fit() is called. I don't see how I can have already fitted classifiers combined under a VotingClassifier. > > I think the opposite is true: The classifiers provided via an `est

Re: [scikit-learn] Combine already fitted models

2017-10-01 Thread Sebastian Raschka
Hi, Rares, > vc = VotingClassifier(...) > vc.estimators_ = [e1, e2, ...] > vc.le_ = ... > vc.predict(...) > > But I am not sure it is recommended to modify the "private" estimators_ and > le_ attributes. I think that this may work if you don't call the fit method of the VotingClassifier after