January 2020
Intermediate to advanced
346 pages
9h 8m
English
Let's start with a Python class that encapsulates the MLP classifier's accuracy evaluation for the Iris dataset. The class is called MlpLayersTest and can be found in the mlp_layers_test.py file, which is located at https://github.com/PacktPublishing/Hands-On-Genetic-Algorithms-with-Python/blob/master/Chapter09/mlp_layers_test.py.
The main functionality of this class is highlighted as follows:
if round(params[1]) ...
Read now
Unlock full access