identify_CR | R Documentation |
Function to find out, if the Task is Classification or Regression
identify_CR(df, target_var, classif_threshold = 6)
df |
input data frame |
target_var |
target variable |
classif_threshold |
max number of unique values for detecting a classification |
returns a string of 'regr' or 'classif'
identify_CR(mtcars, "mpg") identify_CR(iris, 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.