Git Product home page Git Product logo

zeta-learn's Introduction

zeta-learn

zeta-learn is a minimalistic python machine learning library designed to deliver fast and easy model prototyping.

zeta-learn aims to provide an extensive understanding of machine learning through the use of straightforward algorithms and readily implemented examples making it a useful resource for researchers and students.

Dependencies

  • numpy >= 1.15.0
  • matplotlib >= 2.0.0

Features

  • Keras like Sequential API for building models.
  • Built on Numpy and Matplotlib.
  • Examples folder with readily implemented machine learning models.

Install

  • pip install ztlearn

Examples

Principal Component Analysis (PCA)

digits pca

mnist pca

KMEANS

k-means (4 clusters)

Convolutional Neural Network (CNN)

DIGITS CNN

Input Shape: (1, 8, 8)
+---------------------+---------+--------------+
¦ LAYER TYPE          ¦  PARAMS ¦ OUTPUT SHAPE ¦
+---------------------+---------+--------------+
¦ Conv2D              ¦     320 ¦   (32, 8, 8) ¦
¦ Activation: RELU    ¦       0 ¦   (32, 8, 8) ¦
¦ Dropout             ¦       0 ¦   (32, 8, 8) ¦
¦ BatchNormalization  ¦   4,096 ¦   (32, 8, 8) ¦
¦ Conv2D              ¦  18,496 ¦   (64, 8, 8) ¦
¦ Activation: RELU    ¦       0 ¦   (64, 8, 8) ¦
¦ MaxPooling2D        ¦       0 ¦   (64, 7, 7) ¦
¦ Dropout             ¦       0 ¦   (64, 7, 7) ¦
¦ BatchNormalization  ¦   6,272 ¦   (64, 7, 7) ¦
¦ Flatten             ¦       0 ¦     (3,136,) ¦
¦ Dense               ¦ 803,072 ¦       (256,) ¦
¦ Activation: RELU    ¦       0 ¦       (256,) ¦
¦ Dropout             ¦       0 ¦       (256,) ¦
¦ BatchNormalization  ¦     512 ¦       (256,) ¦
¦ Dense               ¦   2,570 ¦        (10,) ¦
+---------------------+---------+--------------+

TOTAL PARAMETERS: 835,338

DIGITS Dataset Model Results

digits cnn results tiled

DIGITS Dataset Model Loss

digits model loss

DIGITS Dataset Model Accuracy

digits model accuracy

MNIST CNN

Input Shape: (1, 28, 28)
+---------------------+------------+--------------+
¦ LAYER TYPE          ¦     PARAMS ¦ OUTPUT SHAPE ¦
+---------------------+------------+--------------+
¦ Conv2D              ¦        320 ¦ (32, 28, 28) ¦
¦ Activation: RELU    ¦          0 ¦ (32, 28, 28) ¦
¦ Dropout             ¦          0 ¦ (32, 28, 28) ¦
¦ BatchNormalization  ¦     50,176 ¦ (32, 28, 28) ¦
¦ Conv2D              ¦     18,496 ¦ (64, 28, 28) ¦
¦ Activation: RELU    ¦          0 ¦ (64, 28, 28) ¦
¦ MaxPooling2D        ¦          0 ¦ (64, 27, 27) ¦
¦ Dropout             ¦          0 ¦ (64, 27, 27) ¦
¦ BatchNormalization  ¦     93,312 ¦ (64, 27, 27) ¦
¦ Flatten             ¦          0 ¦    (46,656,) ¦
¦ Dense               ¦ 11,944,192 ¦       (256,) ¦
¦ Activation: RELU    ¦          0 ¦       (256,) ¦
¦ Dropout             ¦          0 ¦       (256,) ¦
¦ BatchNormalization  ¦        512 ¦       (256,) ¦
¦ Dense               ¦      2,570 ¦        (10,) ¦
+---------------------+------------+--------------+

TOTAL PARAMETERS: 12,109,578

MNIST Dataset Model Results

mnist cnn results tiled

Regression

linear regression

polynomial regression

elastic regression

zeta-learn's People

Contributors

jefkine avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.