Online machine learning algorithms library (wrapper for OLL C++ library)
Project description
oll-python
This is a Python binding of the OLL library for machine learning.
Currently, OLL 0.03 supports following algorithms:
Perceptron
Averaged Perceptron
Passive Agressive (PA, PA-I, PA-II)
ALMA (modified slightly from original)
Confidence Weighted Linear-Classification.
For details of oll, see: http://code.google.com/p/oll
Installation
$ pip install oll
OLL library is bundled, so you don’t need to install it separately.
Usage
>>> import oll
>>> o = oll.oll("CW")
>>> o.add({0: 1.0, 1: 2.0, 2: -1.0}, 1) # train
>>> o.classify({0:1.0, 1:1.0}) # predict
>>> o.save('oll.model')
>>> o.load('oll.model')
Note
This module requires C++ compiler to build.
oll.cpp & oll.hpp : Copyright (c) 2011, Daisuke Okanohara
oll_swig_wrap.cxx is generated based on ‘oll_swig.i’ in oll-ruby (https://github.com/syou6162/oll-ruby)
License
New BSD License.
CHANGES
0.1.2 (2015-01-11)
Support testFile method
docstrings are available
0.1.1 (2014-03-29)
Compatibility some compilers
0.1 (2013-10-11)
Initial release.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file oll-0.1.2.tar.gz.
File metadata
- Download URL: oll-0.1.2.tar.gz
- Upload date:
- Size: 67.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82f3848811d4f2c7bd192cf4cba686101d07187dff9a55acd44158c694147899
|
|
| MD5 |
3559d0b9f94d350281028117d7805105
|
|
| BLAKE2b-256 |
997995fb9a36715f347fad4705b0058848e578f395651a4ffc54d126c1829d1c
|