dreye.ReceptorEstimator.minimize_variance#

ReceptorEstimator.minimize_variance(B=None, Epsilon=None, batch_size=1, verbose=0, l2_eps=0.0001, L1=None, l1_eps=0.01, norm=None, **opt_kwargs)[source]#

Minimize the variance of capture values given the fitted intensities.

Parameters:
Bndarray of shape (n_samples, n_filters)

Relative total capture points. If None, the registered B is used. Defaults to None.

Epsilonndarray of shape (n_filters, n_sources), optional

The capture-base variance of each source-filter combination. If None, the previously calculated value will be used. By default None.

batch_sizeint, optional

Batch size used to simultaneously fit multiple samples, by default 1.

verboseint, optional

Verbosity of the fitting procedure, by default 0.

l2_epsfloat, optional

Allowable error in the l2-norm of the difference between target and fitted capture values. By default 1e-4.

L1ndarray of shape (n_samples), optional

Overall source intensities (L1-norm) that needs to be achieved. If None, this constraint is ignored. By default None.

l1_eps[type], optional

The +- range acceptable for the overall source intensities, by default 1e-2.

normndarray of shape (n_samples), optional

Precalculated L2-norm of the difference between the target and best fitted capture values. If None, these will be calculated internally. By default None.

Returns:
selfobject

The ReceptorEstimator object. This is the only thing returned if B is None.

Xndarray of shape (n_samples, n_sources)

Fitted intensity values. Returned if B is not None.

Bndarray of shape (n_samples, n_filters)

Capture values calculated using the fitted intensity values. Returned if B is not None.

Bvarndarray of shape (n_samples, n_filters)

Variance of capture values calculated using the fitted intensity values. Returned if B is not None.