GithubHelp home page GithubHelp logo

mlem's Introduction

Mlem

TODO: Add description and documentation. This project is incomplete and in no way ready for production usage.

MLEM is a high-level module allowing Elixir applications to train and call machine-learned models in Python. It uses Erlport in the backend to manage the Python processes that perform the actual ML. Example usage:

# Create a scaffold model schema in Elixir

  $ mix create basic_text_classifier

# After implementing data retrieval, vectorization, and labeling in the 
# created model, train the model

  $ mix train basic_text_classifier
 
# Inside your application's priv/ml/models.config, define a mapping 
# from each model to its schema, as well any metadata required for each
# specific model. For example, models.config could contain:

  {"models": [
     {"schema": "basic_text_classifier",
      "name": "initial_intent_extractor",
      "training_data": "intents.csv"},
      {"name": "single_word_extractor",
      "schema": "common_word_extractor",
      "num_words": 1}]}
      
# Once model is trained, it can be called from a running Elixir application:

  {:ok, result} = Mlem.ModelServer.classify("basic_text_classifier", transcription)

mlem's People

Contributors

sbrother avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar James Chainey 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.