GithubHelp home page GithubHelp logo

ml_model_lib's Introduction

ml_model_lib

Assortment of TensorFlow and Numpy models. Loosely follows Scikit-Learn API. For personal learning, not production. Will refactor as I go. Starting with more traditional machine learning models.

Factorization Machines:

TensorFlow implementation of the original paper by Steffen Rendel.

from factorization_machines_tf import FactorizationMachines
from utils import generate_rendle_style_dataset

## Obtain data
x_data, y_data = generate_rendle_style_dataset()

## Fit and predict
fm = FactorizationMachines(l_factors=10)
fm.fit(x_data, y_data)
fm.predict(x_data)

Logistic Regression:

A multi-class, Numpy implementation with l2-norm regularization:

from logistic_regression_np import LogisticRegression
from utils import generate_classification_style_dataset

## Obtain data
X, Y = generate_classification_style_dataset()

## Fit and predict
lr = LogisticRegression()
lr.fit(X, Y)
lr.predict(X)

Support Vector Machines:

A binary class, Tensorflow implementation with l2-norm regularization:

from support_vector_machines_tf import SupportVectorMachines
from utils import generate_classification_style_dataset

## Obtain data
X, Y = generate_classification_style_dataset('binary')

## Fit and predict
lr = SupportVectorMachines()
lr.fit(X, Y)
lr.predict(X)

To-Do:

Models no particular order:

  • Word2Vec/Item2Vec
  • Word Mover's Distance
  • Sequence2Sequence models
  • Singular Value Decomposition & Latent Semantic Indexing
  • Bayesian Linear Regression
  • K-means
  • T-SNE
  • Conditional Random Fields
  • StarSpace
  • Metric Learning models
  • Decision Tree
  • Random Forests

Extras:

  • Standard datasets: classification, regression, ranking etc.
  • Visualisations of the learned decision functions

ml_model_lib's People

Contributors

nickleomartin avatar

Watchers

 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.