Exploratory
  • Introduction
  • Product Features
    • Summary View
    • Table View
    • Row Filter
    • Column Filter
    • Dashboard
    • Dashboard (日本語)
    • Note
    • Note (日本語)
    • Steps (Right-hand side)
    • Branch
    • Parameter
    • Parameter (日本語)
    • Export
    • Share
      • Share Type
      • Chart / Analytics
      • Data
      • Report (Note / Dashboard)
      • Notification
      • Version History
      • Restore Older Version
      • CSV API
    • Share (日本語)
      • 共有のタイプ
      • チャート / アナリティクス
      • データ
      • レポート (ノート / ダッシュボード)
      • 通知
      • バージョンの履歴
      • 古いバージョンの復元
      • CSV API
    • Schedule
      • Manage Schedules
      • Notification
      • Scheduling History
    • Schedule (日本語)
      • スケジュールの設定
      • 通知
      • スケジュールの履歴
    • Team
      • Manage Teams
    • Team (日本語)
      • チームの設定
    • Project
      • Import
      • Export
      • Search
  • Data Import
    • File Data
      • CSV / Delimited File
      • Amazon S3
      • Google Drive
      • Google Cloud Storage
      • Excel
      • JSON
      • Log File
      • Microsoft Azure
      • Stats - SAS / SPSS / STATA
      • RData / RDS
      • Parquet File
      • EDF - Exploratory
    • Database Data
      • SQL Troubleshooting
      • Create Connection
      • Amazon Athena
      • Amazon Aurora
      • Amazon Redshift
      • Amazon Redshift (日本語)
      • Google BigQuery
      • HP Vertica
      • MariaDB / MySQL DB
      • MariaDB / MySQL DB (日本語)
      • Microsoft Access
      • MongoDB
      • ODBC
      • Oracle
      • PostgreSQL
      • PostgreSQL (日本語)
      • Presto
      • Snowflake
      • SQLServer (DSN)
      • SQLServer
      • Teradata
      • Treasure Data
    • Cloud Apps Data
      • Create Connection
      • FRED - Federal Reserve of Economic Data
      • Github Issues
      • Google Analytics
      • Google Analytics (日本語)
      • Google Spreadsheet
      • Google Cloud Storage
      • Salesforce
      • Twitter Search
      • Stripe
      • Weather Data
      • Stock Price Data
    • Write R Script as Data
      • Currency Exchange Rate
    • Write R Script as Data (日本語)
    • Web Page Scraping
    • Text Input Data
    • Data Source Extension
      • Quandl
      • Holiday
      • RSS Data
    • Create Custom Data Source
  • Data Wrangling
    • Command Line mode for faster and more flexible data interaction in Exploratory
    • Select / Remove Columns
    • Reorder Columns
    • Create New Calculation
    • Create New Calculation for Multiple Columns
    • Summarize (Aggregate)
    • Group
    • Filter
    • Rename
    • Arrange (Sort)
    • Top / Bottom N
    • Join
    • Merge
    • Gather
    • Spread
    • Pivot
    • Expand
    • Complete
    • Separate
    • Unite
    • Bind Rows
    • Bind Columns
    • Keep Only Unique Rows
    • Keep Only Duplicated Rows
    • Slice
    • Drop NA
    • Sample
    • Impute NA
    • Fill
    • Create Buckets
    • Assign New Values to Existing Values - Recode
    • Assign New Values by Setting Conditions - Case When
    • Work with Categories
    • Data Type Conversion
    • Row as header
    • Ungroup
    • Unnest
    • Separate List Items into Columns (Unnest Wider)
    • Separate List Items into Rows (Unnest Longer)
    • Separate Address (Japan)
    • Hoist
    • Remove Empty Rows
    • Remove Empty Columns
    • Clean Column Names
    • Window Calculation
    • Window Calculation (日本語)
    • Add Row
    • Text Wrangling
    • Regular Expression Cheat Sheet
    • Regular Expression Cheat Sheet (日本語)
  • Visualization
    • Types
      • Pivot
      • Summarize Table
      • Table
      • Bar
      • Line
      • Area
      • Pie/Ring
      • Radar
      • Histogram
      • Density Plot
      • Scatter (No Aggregation)
      • Scatter (With Aggregation)
      • Boxplot
      • Violin
      • Error Bar
      • Error Bar (Summarized Data)
      • Map - Standard
      • Map - Extension
      • Map - Long/Lat
      • Map - Heatmap
      • Heatmap
      • Contour
      • Number
      • Word Cloud
      • Word Cloud (日本語)
    • Features
      • Trend Line
      • Reference Line
      • Repeat By
      • Window Calculation
      • Date/Time Aggregation
      • Show Range
      • Highlight
      • Change Marker
      • Multiple Y-Axis Columns
      • Layout Configuration
      • Column Configuration
      • Column Configuration Dialog
      • Color and Group Setting
      • Color and Group Setting (日本語)
      • Color Setting
      • User Color Palette Setting
      • Pin
      • Save as PNG/SVG
      • Save as Exploratory Data File
      • Share/Schedule
      • URL Link
      • Category (Binning)
      • Highlight
      • Limit Values
      • 'Others' Group
      • Edit Display Name
      • Missing Value Handling
      • Rename Column Names
      • Axis Setting
      • Axis Formatting
      • Show Detail
      • Fit to Screen (Table)
      • Number of Unique Values Check
      • Number of Unique Values Check (日本語)
  • Analytics
    • Correlation
    • Distance
    • K-Means Clustering
    • Principal Component Analysis
    • Factor Analysis
    • Correspondence Analysis
    • Linear Regression Analysis
    • Logistic Regression Analysis
    • Generalized Linear Models
    • Survival Curve
    • Cox Regression
    • Random Survival Forest
    • Decision Tree
    • Random Forest
    • XGBoost
    • Time Series Forecasting (Prophet)
    • Time Series Forecasting (ARIMA)
    • Time Series Clustering
    • Anomaly Detection
    • Word Count
    • Text Clustering with Topic Model (LDA)
    • Market Basket Analysis
    • T Test
    • T Test (Aggregated Data)
    • ANOVA
    • Wilcoxon Test
    • Kruskal-Wallis Test
    • Chi-Square Test
    • A/B Test
    • Normality Test
    • Prediction
    • Dictionaries for Text Analysis
  • Statistics
    • Correlation
    • Distance
    • Cosine Similarity
    • SVD
    • Multi Dimensional Scaling
    • T-test
    • F-test
    • Chi-square test
    • A/B Test (Bayesian)
  • Machine Learning
    • Linear Regression
    • Logistic Regression
    • GLM
    • Multinomial Logistic Regression
    • K-means Clustering
    • Random Forest
    • XGBoost
    • Forecasting
    • Time Series Clustering
    • Anomaly Detection
    • Survival Curve
    • Survival Model (Cox Regression)
    • Market Basket
    • Causal Impact
    • Evaluate Prediction - Regression
    • Evaluate Prediction - Binary
    • Calculate ROC
    • Evaluate Prediction - Multiclass
    • Prediction
    • Prediction - Binary Classification
    • Prediction - Survival Model
    • Simulate Survival Curve
    • Extract Summary of Fit
    • Extract Parameter Estimates
    • Run ANOVA Test
    • Fix Imbalanced Data (SMOTE)
  • Text Analysis
    • Tokenize Text
    • Create N-gram Tokens
    • Calculate tf-idf
    • Count Text Pairs
  • Extend with R
    • R Package Install
    • Custom R Script
    • Custom Model Function
  • Setup
    • Disable McAfee virus scan
    • Change Repository Location
    • Change Repository Location (日本語)
    • Holidays Data for Forecast
    • Possible Reasons for Install Error
    • Upgrade Microsoft .NET Framework
  • Diagnostics
    • Log file for debugging
    • Log file for debugging (日本語)
    • Startup Log file for debugging
    • Startup Log file for debugging (日本語)
    • Check version of Exploratory Desktop
    • How to Recover the History Data
  • Keyboard shortcuts
Powered by GitBook
On this page
  • Introduction
  • How to Access?
  • How to Use?
  • Column Selection
  • Train Test Split
  • Regression
  • Binary Classification
  • Multiclass Classification

Was this helpful?

  1. Machine Learning

Random Forest

PreviousK-means ClusteringNextXGBoost

Last updated 3 years ago

Was this helpful?

Introduction

Create random forest model for regression, binary classification and multiclass classification.

How to Access?

There are two ways to access. One is to access from 'Add' (Plus) button.

Another way is to access from a column header menu.

How to Use?

Column Selection

There are two ways to set what you want to predict by what variables.

If you are on "Select Columns" tab, you can set them by column selector.

If you are on "Custom" tab, you can type a formula directly.

Train Test Split

You can split the data into training and test to evaluate the performance of the model. You can set

  • Test Data Set Ratio - Ratio of test data in the whole data.

  • Random Seed to Split Training/Test - You can change random seed to try other training and test data combination.

Regression

Parameters

  • A Vector to Subset Data (Optional) - Logical column to subset data.

  • How to treat NA? (Optional) - The default is "Omit". This changes the behaviour of NA data. Can be one of the following.

    • Omit

    • Fail

    • Exclude

    • Pass

    • Null

  • Number of Trees (Optional) - The default is 500. Number of trees to grow.

  • Number of Variables to Sample (Optional) - The default is 1/3 of number of variables. Number of variables randomly sampled as candidates at each split.

  • Sample with Replacement (Optional) - The default is TRUE. Whether sampling is done with replacement.

  • Variable for Stratified Sampling (Optional) - A (factor) variable that is used for stratified sampling.

  • Size of Sample to Draw (Optional) - Size of sample to draw.

  • Minimum Size of Terminal Nodes (Optional) - The default is 5. Minimum size of terminal nodes.

  • Assess Importance (Optional) - The default is FALSE. Whether importance of predictors is assessed.

  • Compute Casewise Importance (Optional) - The default is FALSE. Whether casewise importance measure is computed.

  • Measure Proximity (Optional) - The default is FALSE. Whether proximity measure among the rows is calculated.

  • Proximity on Out-of-Bag Data (Optional) - The default is same as "Measure Proximity". Whether proximity is calculated only on "out-of-bag" data.

  • Keep Forest (Optional) - The default is TRUE. Whether the forest is retained in the output object.

  • Perform Bias Correction (Optional) - The default is FALSE. If bias correction for regression is performed.

  • Keep In-Bag (Optional) - The default is FALSE. Whether an n by ntree matrix be returned that keeps track of which samples are “in-bag” in which trees.

How to Read Summary

Summary of Fit

  • Mean of Mean Square Error - Mean of mean square errors vector.

  • Mean of R Square - Mean of pseudo R-squared.

Feature Importance

  • Term - The term in the linear model being estimated and tested.

  • Mean Decrease in Mean Square Error - Mean of square error decrease by the term.

Binary Classification

Parameters

  • A Vector to Subset Data (Optional) - Logical column to subset data.

  • How to treat NA? (Optional) - The default is "Omit". This changes the behaviour of NA data. Can be one of the following.

    • Omit

    • Fail

    • Exclude

    • Pass

    • Null

  • Number of Trees (Optional) - The default is 500. Number of trees to grow.

  • Number of Variables to Sample (Optional) - The default is square root of number of variables. Number of variables randomly sampled as candidates at each split.

  • Sample with Replacement (Optional) - The default is TRUE. Whether sampling is done with replacement.

  • Priors of Classes (Optional) - Priors of the classes.

  • A Vector for Cutoff (Optional) - A vector of length equal to number of classes. The ‘winning’ class for an observation is the one with the maximum ratio of proportion of votes to cutoff. Default is 1/k where k is the number of classes.

  • Variable for Stratified Sampling (Optional) - A (factor) variable that is used for stratified sampling.

  • Size of Sample to Draw (Optional) - Size of sample to draw.

  • Minimum Size of Terminal Nodes (Optional) - The default is 1. Minimum size of terminal nodes.

  • Assess Importance (Optional) - The default is FALSE. Whether importance of predictors is assessed.

  • Compute Casewise Importance (Optional) - The default is FALSE. Whether casewise importance measure is computed.

  • Number of Permutation (Optional) - The default is FALSE. Number of times the OOB data are permuted per tree for assessing variable importance.

  • Measure Proximity (Optional) - The default is FALSE. Whether proximity measure among the rows is calculated.

  • Proximity on Out-of-Bag Data (Optional) - The default is same as proximity. Whether proximity is calculated only on "out-of-bag" data.

  • Normalize Votes (Optional) - The default is TRUE. Whether the final result of votes are expressed as fractions. If FALSE, raw vote counts are returned (useful for combining results from different runs).

  • Keep Forest (Optional) - The default is TRUE. Whether the forest is retained in the output object.

  • Perform Bias Correction (Optional) - The default is FALSE. If bias correction for regression is performed.

  • Keep In-Bag (Optional) - The default is FALSE. Whether an n by ntree matrix be returned that keeps track of which samples are “in-bag” in which trees.

How to Read Summary

Evaluation of Training Data

  • F Score - Harmonic mean of Precision and Recall. 2 * Precision * Recall / (Precision + Recall)

  • Accuracy Rate - Ratio of correct classification in training data.

  • Missclassification Rate - Ratio of incorrect classification in training data.

  • Precision - How many relevant items are selected.

  • Recall - How many selected items are relevant.

Feature Importance

  • Term - The term in the linear model being estimated and tested.

  • Mean Decrease Gini - Mean of Gini index decrease by the term.

Multiclass Classification

Parameters

  • A Vector to Subset Data (Optional) - Logical column to subset data.

  • How to treat NA? (Optional) - The default is "Omit". This changes the behaviour of NA data. Can be one of the following.

    • Omit

    • Fail

    • Exclude

    • Pass

    • Null

  • Number of Trees (Optional) - The default is 500. Number of trees to grow.

  • Number of Variables to Sample (Optional) - The default is square root of number of variables. Number of variables randomly sampled as candidates at each split.

  • Sample with Replacement (Optional) - The default is TRUE. Whether sampling is done with replacement.

  • Priors of Classes (Optional) - Priors of the classes.

  • A Vector for Cutoff (Optional) - A vector of length equal to number of classes. The ‘winning’ class for an observation is the one with the maximum ratio of proportion of votes to cutoff. Default is 1/k where k is the number of classes.

  • Variable for Stratified Sampling (Optional) - A (factor) variable that is used for stratified sampling.

  • Size of Sample to Draw (Optional) - Size of sample to draw.

  • Minimum Size of Terminal Nodes (Optional) - The default is 1. Minimum size of terminal nodes.

  • Assess Importance (Optional) - The default is FALSE. Whether importance of predictors is assessed.

  • Compute Casewise Importance (Optional) - The default is FALSE. Whether casewise importance measure is computed.

  • Number of Permutation (Optional) - The default is FALSE. Number of times the OOB data are permuted per tree for assessing variable importance.

  • Measure Proximity (Optional) - The default is FALSE. Whether proximity measure among the rows is calculated.

  • Proximity on Out-of-Bag Data (Optional) - The default is same as proximity. Whether proximity is calculated only on "out-of-bag" data.

  • Normalize Votes (Optional) - The default is TRUE. Whether the final result of votes are expressed as fractions. If FALSE, raw vote counts are returned (useful for combining results from different runs).

  • Keep Forest (Optional) - The default is TRUE. Whether the forest is retained in the output object.

  • Perform Bias Correction (Optional) - The default is FALSE. If bias correction for regression is performed.

  • Keep In-Bag (Optional) - The default is FALSE. Whether an n by ntree matrix be returned that keeps track of which samples are “in-bag” in which trees.

How to Read Summary

Evaluation of Training Data

  • Class - Label of the class.

  • F Score - Harmonic mean of Precision and Recall. 2 * Precision * Recall / (Precision + Recall)

  • Accuracy Rate - Ratio of correct classification in training data.

  • Missclassification Rate - Ratio of incorrect classification in training data.

  • Precision - How many relevant items are selected.

  • Recall - How many selected items are relevant.

  • Data Size - Number of Data

Feature Importance

  • Term - The term in the linear model being estimated and tested.

  • Mean Decrease Gini - Mean of Gini index decrease by the term.

Take a look at the for the 'randomForest' function from randomForest package for more details on the parameters.

reference document