Skip to main content

A mini python machine library

Project description


Toothpick is a mini "library" which contains some implementation of machine learning algorithms in Python3.6. These algorithm
are built on NumPy. **This "library" is just a toy**, the reason why I create it is to share my ideas and codes.
All algorithms have `fit` and `predict` interface like `scikit-learn`. When I implemented these algorithms, I referenced
some books as follows: _Machine Learning_ writen by ZhiHua Zhou, _Statistical Learning Method_ writen by Hang Li and
_Machine Learning in Action_ writen by Peter Harrington.

By the way, I am a novice in python and machine learning field, so you can put forward issues if you find some bugs or questions.

## Why named toothpick?

A toothpick is a small stick of wood, plastic, bamboo, or other substance used to remove detritus from the teeth, usually
after a meal(from wikipedia). This library is similarly small and you can "take" it after meal :P.

## How to guarantee the correctness?

I compared my implementation with scikit-learn's when I was implementing these algorithms, which you can find in every single python file
and these performance were approximate on some very simple data set.

## Algorithms implemented

- Logistic Regression
- Naive Bayes
- K Nearest Neighbours
- KMeans
- Learning Vector Quantization
- Ensemble Learning Algorithms
- AdaBoost(only support binary classification)
- Bagging
- Stacking

## Todo List

- Decision Tree
- SVM
- Regression
- Linear Regressiong
- Ridge Regression
- Lasso Regression
- Neural Network
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Python: ~=3.6

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

toothpick-learn-0.0.1.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file toothpick-learn-0.0.1.tar.gz.

File metadata

File hashes

Hashes for toothpick-learn-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8766709b7d64164df0aae8ee5178ef9ad892c097b6d98f724204b68967d97223
MD5 15671490596e2775eabdf3b0ea82f76e
BLAKE2b-256 9230a613b1b261d44dcb508d9ba3e4834b4b0e15156dedf7b401a22d25475244

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page