Skip to main content

A Python package of Machine Learning Algorithms implemented from scratch

Project description

ShowML

Python packaging

Show the ML Code!

A Python package of Machine Learning Algorithms implemented from scratch.

The aim of this package is to present the working behind fundamental Machine Learning algorithms in a transparent and modular way.

NOTE: The implementations of these algorithms are not thoroughly optimized for high computational efficiency.

Usage

Check out: showml/examples/.

Installation

Install the package:

$ pip install showml

To clone the repository and view the source files:

$ git clone https://github.com/hasnainroopawalla/ShowML.git
$ cd ShowML
$ pip install -r requirements.txt

How to Contribute

Contents

Models

Linear

  • Linear Regression (showml.linear_model.regression.LinearRegression)
  • Logistic Regression (showml.linear_model.regression.LogisticRegression)

Non-Linear

  • Sequential (showml.deep_learning.model.Sequential)

Deep Learning

Layers

  • Dense (showml.deep_learning.layers.Dense)

Activations

  • Sigmoid (showml.deep_learning.activations.Sigmoid)
  • ReLu (showml.deep_learning.activations.Relu)
  • Softmax (showml.deep_learning.activations.Softmax)

Optimizers

  • Stochastic/Batch/Mini-Batch Gradient Descent (showml.optimizers.SGD)
  • Adaptive Gradient (showml.optimizers.AdaGrad)
  • Root Mean Squared Propagation (showml.optimizers.RMSProp)

Loss Functions

  • Mean Squared Error (showml.losses.MeanSquaredError)
  • Binary Cross Entropy (showml.losses.BinaryCrossEntropy)
  • Categorical Cross Entropy (showml.losses.CrossEntropy)

Simulations

Contributing

  1. Fork the repository.
  2. Install the necessary dependencies:
$ pip install pre-commit mypy pytest
  1. Commit and push your changes to your own branch.
  2. Before submitting a Pull Request, run these housekeeping checks locally:-
$ pre-commit run -a
$ mypy .
$ pytest
  1. Once everything succeeds, create a Pull Request (CI will be triggered)

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

showml-1.4.1.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

showml-1.4.1-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file showml-1.4.1.tar.gz.

File metadata

  • Download URL: showml-1.4.1.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for showml-1.4.1.tar.gz
Algorithm Hash digest
SHA256 f53bb03858317d7020c95220cc740ae07b90c1cac060b2384c6563ca209cfb43
MD5 efde3041cfc1fc8debb45a8ea24e8066
BLAKE2b-256 ec5910e5d36159d4640d782f5b6fba06cf53fb7090c2d1c495a0c4837fb5eb14

See more details on using hashes here.

File details

Details for the file showml-1.4.1-py3-none-any.whl.

File metadata

  • Download URL: showml-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 28.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for showml-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7da4f6cbcb064a6305136aa9bfe3923f95a60a6de2c6bbda24d60463159452c4
MD5 eabe91a655bb85bbc2002a0a44d1692b
BLAKE2b-256 05d517f1eefa1e11b57c7eec26f567230a0658e4e0bd59d5a06b0539262bba3d

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