Skip to content

Instantly share code, notes, and snippets.

warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
ok
vm.args needs to have either -name or -sname parameter.
+ uname
+ grep -q Darwin
++ readlink -f /usr/local/ourco/ourapp-1.1.3/releases/1.1.3/ourapp.sh
+ SCRIPT=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/ourapp.sh
++ dirname /usr/local/ourco/ourapp-1.1.3/releases/1.1.3/ourapp.sh
+ SCRIPT_DIR=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3
@dantswain
dantswain / dts_k_means.livemd
Created November 28, 2021 03:23
K-Means Clustering with Elixir NX

K-Means Clustering

The data

Mix.install([
  {:nx, "~> 0.1.0-dev", github: "elixir-nx/nx", sparse: "nx", override: true},
  {:vega_lite, "~> 0.1"},
  {:kino, "~> 0.3"}
])