HeatmapComparison#
- class HeatmapComparison[source]#
Check if the average image brightness (or bbox location if applicable) is similar between train and test set.
The check computes the average grayscale image per dataset (train and test) and compares the resulting images. Additionally, in case of an object detection task, the check will compare the average locations of the bounding boxes between the datasets.
- Parameters
- n_samplesOptional[int] , default10000
Number of samples to use for the check. If None, all samples will be used.
- __new__(*args, **kwargs)#
Methods
|
Add new condition function to the check. |
Remove all conditions from this check instance. |
|
|
Create the average images and display them. |
Run conditions on given result. |
|
|
Return check configuration (conditions' configuration not yet supported). |
|
Return check object from a CheckConfig object. |
|
Deserialize check instance from JSON string. |
|
Initialize run. |
|
Return check metadata. |
Name of class in split camel case. |
|
|
Return parameters to show when printing the check. |
Plot a row of heatmaps for train and test images. |
|
Remove given condition by index. |
|
|
Run check. |
|
Serialize check instance to JSON string. |
|
Perform update on batch for train or test counters and histograms. |