mlokFunctions was created with intentions to accelerate common calculations made for predictive modeling performance, as well as for cleansing data (for a variety of purposes).
Creates a correlation matrix visualization for all numeric variables in a matrix or dataframe. Example
Name <- c('Otis', 'Michael', 'Sharon', 'Robin' )
Height <- c(207, 178, 164, 180)
Weight <- c(250, 156, 132, 149)
Profile <- data.frame(Name, Height, Weight)
mlokCorMat(Profile)
Parses strings and converts into numeric data type. Useful when cleansing standardized fields that are manually inputted (eg. salaries/wages, zipcodes) Example
## vector with nonstandard "salary" field. Be wary of the output and how to interpret it, though.
salaries <- c('$45,000','5,000 per month','$95,438/yr')
str(salaries)
mlokNumericize(salaries)
str(salaries)
Takes a list or vector and applies min/max normalization.
With inputs of two vectors or lists, the actual classifications and predicted classifications, mlokPerform will allow you to calculate the confusion matrix, accuracy, RMSE, MAE, and sensitivity/specificity.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.