SPSS Modeler supports the languages R and Apache Spark
(with Python).
Several Extension nodes are available to enable expert users to input their own R scripts or
Python for Spark scripts to carry out data processing, model building, and model scoring. These
Extension nodes complement SPSS Modeler and its data mining abilities.
The Extension Import node is available under
Import on the Node Palette. See Extension Import node.
The Extension Model node is available under
Modeling on the Node Palette. See Extension Model node.
The Extension Output node is available under
Outputs on the Node Palette. See Extension Output node.
The Extension Export node is available under
Export on the Node Palette. See Extension Export node.
Before you begin
Copy link to section
You can load R and Python libraries to use with the extension nodes. To run R or Python scripts,
you must first install any packages that your scripts require. To install packages, you must include
the following scripts in an Extension Output node, connect it to a User Input node, and then run the
Extension Output node to start the installation process.
Tip: You can also insert these
scripts in front of other scripts if you want the installation and your task-related scripts to run
together.
To verify that the package was installed successfully, run the following
command:
packageVersion("$PACKAGE_NAME")
Copy to clipboardCopied to clipboard
For
example:
packageVersion("Sequential")
Copy to clipboardCopied to clipboard
Note: If the R package isn't available in your repository, the installation may fail. In such a
case, you can try the same installation command from the R command line environment (not from R
Studio).
About cookies on this siteOur websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising.For more information, please review your cookie preferences options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.