Passing key as an option doesn't work
krstopro opened this issue · comments
Runnning the example code
scholar/lib/scholar/cluster/k_means.ex
Lines 107 to 109 in c4780db
** (NimbleOptions.ValidationError) unknown options [:key], valid options are: [:num_clusters, :max_iterations, :num_runs, :tol, :weights, :init, :seed] (nimble_options 1.0.2) lib/nimble_options.ex:343: NimbleOptions.validate!/2 (scholar 0.1.0) lib/scholar/cluster/k_means.ex:137: Scholar.Cluster.KMeans.fit/2 #cell:s5a4sk2ajniowihy7hlnzwxvdc773h7d:3: (file)
Perhaps the way key option is declared
scholar/lib/scholar/cluster/k_means.ex
Lines 75 to 81 in c4780db
The key option only exists on main, not on the release v0.1.0. So you need to either use main or follow the docs for v0.1.0 :)
I see, thanks!