jactorch.train.monitor#
Functions
|
Compute the accuracy of binary classification. |
|
|
|
Compute the accuracy of N-way classification. |
|
Monitor the RMS of the gradients of the parameters of the given model. |
|
Monitor the ratio of the RMS of the gradients of the parameters of the given model. |
|
Monitor the RMS of the parameters of the given model. |
|
Monitor the saturation of the parameters of the given model. |
|
Monitor the RMS of the given values. |
|
Compute the accuracy of regression. |
Functions
- binary_classification_accuracy(pred, label, name='', saturation=True)[source]#
Compute the accuracy of binary classification.
- Parameters:
- Returns:
a dict of monitor values.
- Return type:
- classification_accuracy(pred, label, name='')[source]#
Compute the accuracy of N-way classification.
- monitor_param_gradrms(model)[source]#
Monitor the RMS of the gradients of the parameters of the given model.
- monitor_param_gradrms_ratio(model)[source]#
Monitor the ratio of the RMS of the gradients of the parameters of the given model.
- monitor_param_saturation(model)[source]#
Monitor the saturation of the parameters of the given model.
- monitor_rms(_dict, **values)[source]#
Monitor the RMS of the given values. This function takes either a dict or multiple keyword arguments.