Skip to main content

Implement machine learning algorithms with python without sklearn.

Project description

Introduction

Implement machine learning algorithms with python without sklearn. Some classes are design especially for CQU-ML course by Professor.He

Install

  • With pip : pip3 install cquai-ml

  • With src : Clone or fork this project, then build it with python3 setup.py install

Usage

In most cases, API in this project is similar to scikit-learn project.

For example, if you want to run a decision tree classifier based on C4.5 (While scikit-learn use opt-CART instead of C4.5)

from cquai_ml import DecisionTreeClassifier
from sklearn.datasets import load_breast_cancer # get a dataset

X, y = load_breast_cancer(return_X_y=True)

clf1 = DecisionTreeClassifier(max_depth=1).fit(X, y)
pred1 = clf1.predict(X)

Contributing

Everyone is welcomed to contribute!

We currently provides:
  • DatasetSpace

  • UnionHypothesisSpace

  • LinearRegression

  • LogisticRegression

  • LinearDiscriminantAnalysis

  • KNeighborsClassifier

  • DecisionTreeRegressor

  • DecisionTreeClassifier

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

cquai-ml-1.0.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

cquai_ml-1.0.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file cquai-ml-1.0.0.tar.gz.

File metadata

  • Download URL: cquai-ml-1.0.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for cquai-ml-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f72190e1d9bd727d6db75bf6a046d2878639970b502d2366fcc0b72a0cc67b31
MD5 6c4994d82a066bb9ba53af957fc6b89c
BLAKE2b-256 32e914cd99ee18eb59967fd5877a5280943d622fc58746f0bc636719675b1c32

See more details on using hashes here.

File details

Details for the file cquai_ml-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cquai_ml-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for cquai_ml-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ced07343b6f03b7e9e09e15422bdb207cdf9b272bc67a15c2b7e3be2efcbf18
MD5 dc2346210893bc0e5b4980355ad1cf6e
BLAKE2b-256 6dbcf7773f0f354f6dc93b7aa7033c7585d6e0a13b5319fa64066357c6d6c600

See more details on using hashes here.

Supported by

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