Giter VIP home page Giter VIP logo

ml-benchmarks's Introduction

Benchmarks for various machine learning packages

Collection of benchmarks comparing various python-based machine learning packages.

This is meant to work with the development version of the libraries scikits.learn, mlpy, pybrain, pymvpa, mdp and shogun. It might be hard to get all packages working on the same machine, but benchmarks are designed so that if something fail it will just print the exception and go to the next one.

To execute a benchmark, just type from the prompt:

$ python benchmarks/bench_$name.py

and you will se as output the mean and std deviation for the timing of running the benchmark 10 times with its extreme values removed.

Results

The latest maintained results of these benchmarks can be found on http://scikit-learn.github.com/ml-benchmarks/

Others results of running these benchmarks on different boxes and with different software versions can be found on:

They differ because they are run with different versions of the packages, and different compilation settings (e.g. linear algebra packs).

References

Misc

Author: Fabian Pedregosa <[email protected]>

License: Simplified BSD

ml-benchmarks's People

Contributors

bdholt1 avatar fabianp avatar gaelvaroquaux avatar mechcoder avatar ogrisel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ml-benchmarks's Issues

orange bench

include this

def bench_orange(X, y, T, valid):
#
#       .. Orange ..
#
   import orange
   start = datetime.now()

   # prepare data in Orange's format
   columns = []
   for i in range(0,X.shape[1]):
       columns.append("a" +str(i))
   [orange.EnumVariable(x) for x in columns]
   classValues = ['0','1']

   domain = orange.Domain(map(orange.FloatVariable, columns),
                  orange.EnumVariable("class", values=classValues))
   y.shape = (len(y),1) #reshape for Orange
   y[np.where( y < 0)] = 0 # change class labels to 0..K
   orng_train_data = orange.ExampleTable(domain, np.hstack((X,y)))

   valid.shape = (len(valid),1)  #reshape for Orange
   valid[np.where( valid < 0)] = 0 # change class labels to 0..K
   orng_test_data = orange.ExampleTable(domain, np.hstack((T,valid)))

   learner = orange.SVMLearner(orng_train_data, svm_type=orange.SVMLearner.Nu_SVC, kernel_type=orange.SVMLearner.RBF,C=1., gamma= 1./sigma )

   pred = np.empty(T.shape[0], dtype=np.int32)
   for i,e in enumerate(orng_test_data):
       pred[i] = learner(e)

   score = np.mean(pred == valid)
   return score, datetime.now() - start

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.