Giter Club home page Giter Club logo

pipelineopt's Introduction

Pipelineopt

Pipelineopt is a sckit-learn pipeline (http://scikit-learn.org/stable/modules/generated/sklearn.pipeline.Pipeline.html) optimizer. It provides a scikit-learn like Classifier class which implements fit, predict, and predict_proba. Within fit, several pipelines are tried and the best pipeline according to the validation score is selected. The way pipelines are generated is using a context-free grammar defined in classifier_grammar. Different ways of generating from the grammars are called Walkers. The default Walker used is RandomWalker which selects uniformly from the pipelines of the grammar. Trained/Trainable Walkers can also be used. For instance, an RnnWalker can be initially pre-trained (e.g, it could be trained to generate good pipelines with high probability) and used in Pipelineopt. See https://github.com/machinedesign/grammaropt for more details about RnnWalker.

Example

from pipelineopt.estimator import Classifier

from sklearn.datasets import load_digits

data = load_digits()
X = data['images']
y = data['target']
X = X.reshape((X.shape[0], -1))
clf = Classifier(nb_iter=10)
clf.fit(X, y)
print('Best code :')
print(clf.best_estimator_code_)
print('Best score : {}'.format(clf.best_score_))

pipelineopt's People

Contributors

mehdidc avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.