This class provides a method to calculate the Loss function of a given attribute. The method implements two sort of loss functions: Info Gain (type=1) for classified covariates MSE (type=2)for continuous covariates. Pseudo-Huber Loss function (type=3). Cost function on misclassification (type=4) for classification problems. Gini index (type=5).

More Loss functions can be added in the future.