-
Ensure that the
wavelength.csvfile is in the same directory as themain.pyscript. -
Run the
main.pyscript from the command line:python main.py -
The script will:
- Load the data from
wavelength.csv. - Train an MLP classifier model.
- Evaluate the model performance using different combinations of optimizers and activation functions.
- Print the best performing optimizer and activation function combination, with its average accuracy.
- Prompt the user to enter red, green, and blue channel wavelength values for a material.
- Predict the material class based on the input wavelengths.
- Load the data from
The script requires user input for the red, green, and blue channel wavelength values (at 8mM concentration) to predict the material class. The user will be prompted to enter these values after the model training and evaluation are complete.
The script provides the following output:
- The best combination of optimizer and activation function that yields the highest R-squared score.
- The predicted material class for the user-provided input wavelengths.
- The average accuracy across the R-squared Scores
Daniella Fenster