dreye.ReceptorEstimator.fit_adaptive#
- ReceptorEstimator.fit_adaptive(B=None, neutral_point=None, delta_norm1=0.0001, delta_radius=0.0001, adaptive_objective='unity', verbose=0, scale_w=1.0, **opt_kwargs)[source]#
Fit source intensities adaptively to fit capture values within the system’s hull.
- Parameters:
- Bndarray of shape (n_samples, n_filters)
Relative total capture points. If None, the registered B is used. Defaults to None.
- neutral_pointndarray of shape (n_filters), optional
The neutrality point to use as the center of the simplex plot for scaling each vector. If None, then the center is set to the adaptational state of equal capture for all filters. By default None.
- delta_norm1[type], optional
The maximum allowed difference in the intensity (l1-norm) metric between the target and the fit. By default 1e-5
- delta_radiusfloat, optional
The maximum allowed difference in the saturation-hue/s (radial) metric between the target and the fit. By default 1e-5
- adaptive_objectivestr, optional
- Adaptive objective to use:
‘unity’: Try to keep the values as close as possible to the original capture values.
‘max’: Maximize the scaling to fill as much of the system’s hull as possible.
By default “unity”.
- scaled_wfloat or ndarray of shape (2)
Relative importance put on l1-norm optimization versus radial optimization. By default 1 and thus equally weighted.
- verboseint, optional
Verbosity of the fitting procedure, by default 0.
- 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.
- scalesndarray of shape (2)
The intensity and radial scaling 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.