# Tangram for Elixir

- [Watch the Video](
- [Read the Docs](

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

## Usage

Add the `tangram` package to your `mix.exs`.

model = Tangram.load_model_from_path("heart_disease.tangram")

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

output = Tangram.predict(model, input)

For more information, [read the docs](

## Platform Support

Tangram 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 [](

## Examples

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

### Notes

- On Alpine Linux, Tangram for Elixir requires the `libgcc` library to be installed. It is not installed by default in the Alpine Linux docker image, but will very likely be a dependency of software you are already using. If not, you can run `apk add libgcc` to install it. We have opened [this issue]( with Rust to hopefully eliminate this requirement in the future.