Code Monkey home page Code Monkey logo

pyvowpal's Introduction

A python wrapper for the Vowpal Wabbit machine learning program.
More on Vowpal Wabbit at https://github.com/JohnLangford/vowpal_wabbit/wiki

Authored by Shilad Sen.

Distributed under the Apache Software Foundation License, version 2: http://www.apache.org/licenses/LICENSE-2.0

You can find code examples in test_examples.py.
1. Edit PATH_VW to direct to the executable binary vw
2. Run python ./test_examples.py

Common Issues:
Works with vw 7.3. Depending on the version, the parameters (like --l2 for l2 regularization) may change change.

Requires:
- Python >= 2.4 (for the subprocess module and deque).
- The vw executable (from the main VW website).

Basic usage of the module:
- Create VowpalExample objects for both the training and test set.
- Create a new Vowpal object and pass the records to the predict method.
- Receive predictions as a return value.

There are three ways to specify input examples:
- A list of VowpalExample objects. The entire dataset must fit in memory.
- An ExampleStream object. You can write VowpalExample objects to it, and they do not need to fit in memory. All training examples must appear before testing examples.
- A file in the correct input format. All training examples must appear before testing examples.


CHANGELOG:
- Added methods to support streaming of input examples.

TODO:
- Support streaming of prediction results so that they don't need to fit in memory.

pyvowpal's People

Contributors

shilad 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

Watchers

 avatar  avatar  avatar  avatar  avatar

pyvowpal's Issues

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.