Navigation Menu

Skip to content

IBMPredictiveAnalytics/K_Means_with_MLlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K-means Clustering with MLlib

K-means clustering is a very popular algorithm used for clustering data. This extension uses the PySpark MLlib implementation of this algorithm. In order to run K-means clustering, you need to specify the number of clusters you want. This can be determined using domain knowledge about your dataset or through trial and error of evaluating different cluster parameters.

Learn more about this implementation from the MLlib Documentation

Stream


Requirements

More information here: IBM Predictive Extensions


Installation Instructions

Initial one-time set-up for PySpark Extensions

If using v18.0 of SPSS Modeler, navigate to the options.cfg file (Windows default path: C:\Program Files\IBM\SPSS\Modeler\18.0\config). Open this file in a text editor and paste the following text at the bottom of the document:

eas_pyspark_python_path, "C:/Users/IBM_ADMIN/Anaconda/python.exe"

  • The italicized path should be replaced with the path to your python.exe from your Anaconda installation.

Extension Hub Installation

  1. Go to the Extension menu in Modeler and click "Extension Hub"
  2. In the search bar, type the name of this extension and press enter
  3. Check the box next to "Get extension" and click OK at the bottom of the screen
  4. The extension will install and a pop-up will show what palette it was installed to

Manual Installation

  1. Save the .mpe file to your computer
  2. In Modeler, click the Extensions menu, then click Install Local Extension Bundle
  3. Navigate to where the .mpe was saved and click open
  4. The extension will install and a pop-up will show what palette it was installed

License

Apache 2.0


Contributors

About

SPSS Modeler Extension to execute PySpark MLlib implementation of K-Means Clustering

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages