I wrote the Validator class. In the project, the presented code is located at the path ".../validator/init.py". It is needed for testing code in different virtual Conda environments, in the virtual environments PyTorch with the necessary versions are prepared in advance. The code works properly. But, I want to improve its reliability, readability, and extensibility.
In the logger settings, it is specified that the debug level is saved to a file. The Infoinfo level is output to the console.