ESI Loss Functions#
- class spatialize.gs.esi.lossfunction.OperationalErrorLoss(dyn_range=None, use_cube=False)#
This is a class for creating functions (callable instances) that belong to a family of functions indexed by a given
dynamic range.Methods
__call__(estimation, esi_samples)Call self as a function.
- spatialize.gs.esi.lossfunction.loss(agg_function)#
Decorator to apply a loss function to the ESI samples.
- spatialize.gs.esi.aggfunction.MAP(samples)#
Computes the mode of the samples.
- class spatialize.gs.esi.aggfunction.Percentile(q=75)#
Computes the percentile of the samples.
Methods
__call__(samples)Call self as a function.
- class spatialize.gs.esi.aggfunction.WeightedAverage(normalize=False, weights=None, force_resample=True)#
Computes the weighted average of the samples.
Methods
__call__(samples)Call self as a function.
- spatialize.gs.esi.aggfunction.bilateral_filter(samples)#
Applies a bilateral filter to the samples.
- spatialize.gs.esi.aggfunction.identity(samples)#
Returns the samples as they are
- spatialize.gs.esi.aggfunction.mean(samples)#
Computes the mean of the samples.
- spatialize.gs.esi.aggfunction.median(samples)#
Computes the median of the samples.