Machine Learning in Elixir: Scholar.Clustering.KMeans.fit/2 is undefined (B1.0, Chapter 5, Page 109)

Hey @seanmor5,

On page 109:

model = Scholar.Clustering.KMeans.fit(train_inputs, num_clusters: 3)

results in an UndefinedFunctionError.

I believe it should be

model = Scholar.Cluster.KMeans.fit(train_inputs, num_clusters: 3)
  • Cluster instead of Clustering

Also, there’s a typo on the first paragraph after the Using Clustering header.

Perhaps the most common type of unsupervised leraning is clustering
  • learning is mispelled