# An Introduction to OptimClassifier

## OptimClassifier explained in one Minute π

OptimClassifier provides a set of tools for creating models, selecting the best parameters combination for a model, and select the best threshold for your binary classification. The package contains tools for:

• Linear Model (LM)
• Generalized Linear Model (GLM)
• Linear Mixed Model (LMM)
• Classification And Regression Tree (CART)
• Discriminant Analysis (DA)
• Neural Networks (NN)
• Support Vector Machines (SVM)

## Take a quick look at functions

The main function could summarize in this table:
Optim.
Method
Threshold optimization β β β βοΈ* βοΈ* β β
Parameter Optimization β β β β* β* β β
What parameter or option? Transformations Family & Links Random variable Linear or Quadratic CP Hidden layers Kernels

*These models are natively classifiers.

## Installation

### Install this package from Github (development version):

For this, you can choose different packages such as:

### What is optimization?

Optimization is the process of modifying your parameters on your train model to improve the quality of your classification model. Based on your goals, optimization can involve ad implementation improvements or changes to your classification model. This package is focused in two questions, the threshold and several options.

### Why optimize your classification model?

Optimizing your classification model is important when you want to completely achieve their potential. Through optimization, you can help improve the root mean square error (RMSE), grow the success rate, or accomplish others of your other goals (minimizing type I error or minimizing type II error).

### How does Optim.LM optimize a Linear Model?

Optim.LM makes transformations of the response variable to improve the precision of the linear model. Then the function searches the best threshold to obtain the best result as possible to your goal.

Transformation included:

• Linear Model without transformation (LM)
• Square root Linear Model (SQRT.LM)
• Logarithmic Linear Model (LOG.LM)

### How does Optim.GLM optimize a Generalized Linear Model?

Optim.GLM tries to change around different types of error distributions (it called family in R) and several transformations of data (it called link in R). Then the function searches the best threshold to obtain the best result as possible to your goal.

Models trained with this functions:

• gaussian family with identity link
• binomial family with:
• poisson family with:

### How does Optim.LMM optimize a Linear Mixed Model?

Optim.LMM searches which one of the variables can use as a random variable improving the model precision. Then the function searches the best threshold to obtain the best result as possible to your goal.

### How does Optim.DA optimize a Discriminant Analysis?

Optim.DA tries to train a Quadratic and Linear Discriminant Analysis because sometimes it does not possible trains a QDA for data characteristics.

### How does Optim.CART optimize a Decision Tree?

Optim.CART focuses on the pruning progress and compares several levels of pruning, for this progress uses a complexity parameter that It is the amount by which splitting that node improved the relative error.

### How does Optim.NN optimize a Neural Network?

Optim.NN searches which the number of hidden layers improves the model precision. Then the function searches the best threshold to obtain the best result as possible to your goal.

### How does Optim.SVM optimize a Support Vector Machine?

Optim.SVM tries to change around different types of kernels to improve the precision.Then the function searches the best threshold to obtain the best result as possible to your goal.

Kernels trained with this functions:

• sigmoid kernel