Evaluation Utils (radionets.evaluatuion.utils)#
Evaluation utils submodule of radionets.evaluation.
Reference/API#
radionets.evaluation.utils Module#
Functions#
|
Applies one of currently two normalization methods if the training was normalized |
|
Pads and applies symmetry to half images. |
|
Checks if there is already a predictions file in the evaluation folder |
|
Checks if a file with sampled images is located in the evaluation folder |
|
Check wether the absolute of the maxmimum or the minimum is bigger. |
|
Create a dataloader object, which feeds the data batch-wise |
|
Create a dataloader object, which feeds the data batch-wise |
|
Put model into eval mode and evaluate test images. |
|
Compute the inverse Fourier transformation |
|
Get n random test and truth images or mean, standard deviation and true images from an already sampled dataset. |
|
Load data set from a directory and return it as H5DataSet. |
|
Loads a previously saved model as pre-model. |
|
Load model architecture and pretrained weigths. |
|
Create nice colorbars with bigger label size for every axis in a subplot. |
|
|
|
Makes the necessary preprocessing for the evaluation methods analyzing the whole test dataset. |
|
Applies the normalization, gets and rescales a prediction and performs the inverse Fourier transformation. |
|
Parse the toml config file |
|
Read data saved with save_pred from h5 file. |
|
Rescale the prediction after normalized training |
|
Reshape 1d arrays into 2d ones. |
|
Samples for every pixel in Fourier space from a truncated Gaussian distribution based on the output of the network. |
|
Write test data and predictions to h5 file. |
|
Set the number of threads to use for parallel execution. |
|
Collate function for the DataLoader with source list |
|
Symmetry function to complete the images. |
|
|
|
A decorator that creates a NumPy ufunc object using Numba compiled code. |
Classes#
|
Data loader combines a dataset and a sampler, and provides an iterable over the given dataset. |
|
PurePath subclass that can make system calls. |
|
Class Inheritance Diagram#
