View source: R/information_theory.R
infor_magic | R Documentation |
It retrieves the same as var_rank_info
but receiving two vectors.
Metrics are: entropy (en), mutual information (mi), information gain (ig) and gain ratio (gr).
infor_magic(input, target)
input |
vector to be evaluated against the variable defined in 'target' parameter |
target |
vector containing the output variable. |
Matrix of 1 row and 4 columns, where each column represent the mentioned metrics
infor_magic(data_golf$outlook, data_golf$play_golf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.