Isolation Forest is located under Machine Learning () in Anomaly Detection, in the left task pane. Use the drag-and-drop method (or double-click on the node) to use the algorithm in the canvas. Click the algorithm to view and select different properties for analysis.
Refer to Properties of Isolation Forest.
The available properties of the Isolation Forest are as shown in the figure given below.
The table given below describes the different fields present on the properties pane of Isolation Forest.
Field | Description | Remark | |
Run | It allows you to run the node | - | |
Explore | It allows you to explore the successfully executed node. | - | |
Vertical Ellipses | The available options are
| - | |
Task Name | It is the name of the task selected on the workbook canvas. | You can click the text field to edit or modify the name of the task as required. | |
Dependent Variable | It allows you to select the dependent variable. |
| |
Independent variables | It allows you to select the experimental or predictor variable(s). |
| |
Advanced | No of Estimators | It allows you to select the number of base estimators in the ensemble. |
|
Maximum Samples | It allows you to select the maximum number of samples. |
| |
Contamination | It allows you to enter the proportion of outliers in the data set. |
| |
Maximum Features | It allows you to select the minimum number of features. |
| |
Bootstrap | It allows you to select a bootstrap value of either True or False. |
| |
Dimensionality Reduction | It allows you to select the dimensionality reduction technique. Principal Component Analysis (PCA) maps the data linearly to a lower-dimensional space to maximize the variance of the data in the low-dimensional representation. |
| |
Variance | It allows you to enter the variance value. |
|
Consider a Credit Card dataset with 400 records. A snippet of input data is shown in the figure given below.
In the Properties pane of Isolation Forest, the values selected are given in the table below.
Property | Value |
Dependent Variable | Student |
Independent Variables | Age and Balance |
No. of Estimators | 100 |
Maximum Samples | auto |
Contamination | 0.1 |
Maximum Features | 1 |
Bootstrap | False |
Dimensionality Reduction | None |
The Result page of the Isolation Forest is shown in the figure given below.
The Result page initially displays the Cluster Plot based on the default combination of features in the X-axis and Y-axis data fields. To plot a Cluster Plot for different combinations of features, select the respective features from the X-axis and Y-axis drop-downs.
Note: | If you try to plot the Cluster Plot with the same features in the X-axis and Y-axis data fields, then Rubiscape gives an error. |
You can also view the Confusion Matrix based on the Event of Interest states of the selected dependent variable. Here, the dependent variable selected is Student, and its Event of Interest states are No and Yes.
To view the Confusion Matrix,
The Confusion Matrix is displayed on the right-hand side of the Result page.
The coloured boxes in the Confusion Matrix represent the predicted values, while the white boxes represent the error values.
Notes: |
|
The output Data page displays one additional column of Label along with the existing 13 features in the Isolation forest result. A snippet of the output data of 14 columns, displayed on the Data page, is shown in the figure below.
Notes: |
|
The figure given below shows the Cluster Plot on the Isolation Forest Result page.
Some of the key observations from the Cluster Plot are listed below.
The figure given below shows the Confusion Matrix displayed on the Isolation Forest Result page.
Some of the key observations from the Confusion Matrix evaluated for the selected dataset (of 400 data points) are listed below.
The table below briefly explains what the values in each of the quadrants of the Confusion Matrix
Quadrant | Quadrant Value | Description |
First (blue) | 32 | The predicted values of No out of the actual No values (360). |
Second (white) | 8 | The error values of Yes out of the actual Yes values (40). |
Third (white) | 328 | The error values of No out of the actual No values (360). |
Fourth (blue) | 32 | The predicted values of Yes out of the actual Yes values (40). |
Notes: |
|
You can click Publish in the top-right to publish the isolation Forest task as a model. The model can be reused in a workbook for training and experimenting or used in a workflow for production.
For more information on publishing a task, refer to Publishing Models.