powered by
Create setting for logistics regression model with python
setLRTorch(w_decay = c(5e-04, 0.005), epochs = c(20, 50, 100), seed = NULL, class_weight = 0, autoencoder = FALSE, vae = FALSE)
The l2 regularisation
The number of epochs
A seed for the model
The class weight used for imbalanced data: 0: Inverse ratio between positives and negatives -1: Focal loss
First learn stakced autoencoder for input features, then train LR on the encoded features.
First learn stakced varational autoencoder for input features, then train LR on the encoded features.
# NOT RUN { model.lrTorch <- setLRTorch() # }
Run the code above in your browser using DataLab