PyTorch Lightning

https://pytutorial.marcoinacio.com/sections/pytorch_lightning/

Let's start by generating some random data

Let's scale our data to help the neural network training process.

Defining main classes

Classification example

Let's check the cross entropy error performance on a Extra Trees classifier as simple baseline for our models

Now, we train a neural network with fixed hyperparameters

Hyperparameters optimization using Optuna

Let's optimize the hyperparameters using Optuna library

Let's compare the results with our previous model:

Let's summarize the results:

Regression