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.2.tar.gz (10.4 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: cquai-ml-1.0.2.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.8

File hashes

Hashes for cquai-ml-1.0.2.tar.gz
Algorithm Hash digest
SHA256 16a6d5c6f9d9f1cb58760f1e7b15b7e26fbb4a88a82d8822077c2eb87986a20b
MD5 ca2a84498d18de3a3a767379e51e5c23
BLAKE2b-256 6c41299acb7d49bd66c1173569a59dce6c9f551261b342f5a46a42c00f8c0ba9

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