ml.mlp¶
Functions for the multi-layer perceptron classifier.
Functions
|
A function to build the DataLoaders from the data split. |
|
|
|
A function to evaluate the model on test data. |
General plotting parameters for the Kulik Lab. |
|
|
A function to train on the entire dataset for one epoch. |
|
Load data from CSV files for each mimo in the given list. |
|
|
|
Plot confusion matrices for distance and charge features. |
|
Plot the average charge and distance data for the given MIMO types. |
|
Plot the ROC curve for the test data of the charge and distance features. |
|
Plot the train and validation losses as a function of epoch number. |
|
Split train and test based on the given test and validation fractions. |
|
|
|
Plot SHAP dot plots for each mimichrome to identify importance |
|
A function to train and validate the model over all epochs. |
|
|
|
A function to validate on the validation dataset for one epoch. |
Classes
|
|
|