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

Add early termination to ensemble model training and serialization/deserialization #2

Merged
merged 3 commits into from
Feb 20, 2013

Conversation

freedafeng
Copy link
Contributor

No description provided.

@ghost ghost assigned matt-peters Nov 7, 2012
@@ -71,8 +72,7 @@ def select_ensemble_bagged(self, y, ymodels, verbose=False):
self.nmodels = nmodels
self.ensemble_indices = np.arange(len(ymodels))[self.ensemble > 0.5]


def select_ensemble(self, y, ymodels):
def select_ensemble(self, y, ymodels, early_termination = False):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This functionality would be really useful in select_ensemble_bagged too. Let's add it as a parameter to that method, then it can get passed down to select_ensemble and we'll get it for free.

matt-peters pushed a commit that referenced this pull request Feb 20, 2013
Add early termination to ensemble model training and serialization/deserialization
@matt-peters matt-peters merged commit 5d4a7bf into master Feb 20, 2013
@matt-peters matt-peters deleted the jfeng-mozsci-1 branch February 20, 2013 06:30
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

Successfully merging this pull request may close these issues.

None yet

2 participants