Dala.ML (dala v0.1.0)

Copy Markdown View Source

Public API for machine learning operations.

This module delegates to Dala.Ml.Ml for ML functionality.

Summary

Functions

Check if running on Android.

Get available ML backends.

Run benchmark.

Check if running on iOS.

Check if running on iOS device.

Check if running on iOS simulator.

Run prediction.

Setup ML framework.

Get ML status.

Verify ML setup.

Functions

android?()

@spec android?() :: boolean()

Check if running on Android.

available_backends()

@spec available_backends() :: [atom()]

Get available ML backends.

benchmark(opts)

@spec benchmark(keyword()) :: map()

Run benchmark.

ios?()

@spec ios?() :: boolean()

Check if running on iOS.

ios_device?()

@spec ios_device?() :: boolean()

Check if running on iOS device.

ios_simulator?()

@spec ios_simulator?() :: boolean()

Check if running on iOS simulator.

predict(model_id, input)

@spec predict(String.t(), map()) :: {:ok, map()} | {:error, term()}

Run prediction.

setup()

@spec setup() :: :ok

Setup ML framework.

status()

@spec status() :: map()

Get ML status.

verify()

@spec verify() :: {:ok, map()} | {:error, term()}

Verify ML setup.