ProductPromotion
Logo

Elixir

made by https://0x3d.site

GitHub - mrdimosthenis/emel: A simple and functional machine learning library for the Erlang ecosystem
A simple and functional machine learning library for the Erlang ecosystem - mrdimosthenis/emel
Visit Site

GitHub - mrdimosthenis/emel: A simple and functional machine learning library for the Erlang ecosystem

GitHub - mrdimosthenis/emel: A simple and functional machine learning library for the Erlang ecosystem

emel

Turn data into functions! A simple and functional machine learning library, (re)implemented in Gleam for the Erlang ecosystem.

Installation

  • For Erlang projects, add the dependency into rebar.config:
{deps, [
    {emel, "1.0.1"}
]}.
  • For Elixir projects, add the dependency into mix.exs:
defp deps do
  [
    {:emel, "~> 1.0.1"}
  ]
end
  • For Gleam projects, run gleam add emel.

Examples

Erlang

Data = [
  {[7.0, 7.0], "bad"},
  {[7.0, 4.0], "bad"},
  {[3.0, 4.0], "good"},
  {[1.0, 4.0], "good"}
],
F = emel@ml@k_nearest_neighbors:classifier(Data, 3),
F([3.0, 7.0]). % "good"

Elixir

data = [
  {[1.794638, 15.15426], 0.510998918},
  {[3.220726, 229.6516], 105.6583692},
  {[5.780040, 3480.201], 1776.99}
]
f = :emel@ml@linear_regression.predictor(data)
f.([3.0, 230.0]) # 106.74114058686602

Gleam

import emel/ml/neural_network as nn
let data = [
  #([0.8, 0.0, 0.0], "x"),
  #([0.0, 0.9, 0.0], "y"),
  #([0.0, 0.0, 0.8], "z"),
]
let f = nn.classifier(
    data,
    [4],           // hidden layers
    0.01,          // learning rate
    0.1,           // error threshold
    1000           // maximum iterations
)
f([0.0, 0.8, 0.0]) // "y"

Documentation

The documentation describes all the public functions. Gleam developers can pay attention to the type annotations. Erlang and Elixir devs may take a look at the examples which are written in Erlang.

Implemented Algorithms

Mathematics

For the documentation of the previous version (0.3.0), click here.

Articles
to learn more about the elixir concepts.

Resources
which are currently available to browse on.

mail [email protected] to add your project or resources here 🔥.

FAQ's
to know more about the topic.

mail [email protected] to add your project or resources here 🔥.

Queries
or most google FAQ's about Elixir.

mail [email protected] to add more queries here 🔍.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory