ModelFox for Elixir

The ModelFox Elixir library makes it easy to make predictions with your ModelFox machine learning model from Elixir.


Add the modelfox package to your mix.exs.

model = ModelFox.load_model_from_path("heart_disease.modelfox")

input = %{
  :age => 63.0,
  :gender => "male",
  # ...

output = ModelFox.predict(model, input)

For more information, read the docs.

Platform Support

ModelFox for Elixir is currently supported on Linux, macOS, and Windows with ARM64 and AMD64 CPUs. Are you interested in another platform? Open an issue or send us an email at


The source for this package contains a number of examples in the examples directory. Each example has a explaining how to run it.