/PlayingWithNx

Playing around with Nx

Primary LanguageElixir

PlayingWithNx

TODO: Add description

Quick tensors

x_tensor_linear = Nx.tensor([1, 2, 3, 4, 5, 6])
y_tensor_linear = Nx.tensor([3.2, 4.9, 7.3, 9.1, 10.5, 13.2])

Notes

Linear

When doing linear regression the values returned are on the form:

Y = alpha + beta * x

Installation

If available in Hex, the package can be installed by adding playing_with_nx to your list of dependencies in mix.exs:

def deps do
  [
    {:playing_with_nx, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/playing_with_nx.