As discussed, I've generalized the plotting method for all the clustering algorithms.
It may not be exactly done as discussed yesterday, but it is pretty close and works as expected.
I had to pass the algo_name parameter through the method call form the model because I couldn't get it otherwise.
I'll soon add a method to plot dendograms for the hierarchical clustering algorithms (which can use a scatter plot too).
As discussed, I've generalized the plotting method for all the clustering algorithms. It may not be exactly done as discussed yesterday, but it is pretty close and works as expected. I had to pass the
algo_name
parameter through the method call form themodel
because I couldn't get it otherwise.I'll soon add a method to plot dendograms for the hierarchical clustering algorithms (which can use a scatter plot too).