mvtsa.segmentation.FisherSegmenter#

class mvtsa.segmentation.FisherSegmenter(method='criterion', n_segments=3, criterion='E', window=30, segmentation='bottomup', n_eigenvectors=1, initial_size=10, Q=None, log_criterion=True, threshold=None)[source]#

Bases: BaseSegmenter

Segmentation of historical data by the information they carry on the parameters of a process model.

fit takes the sensitivities S (T, p) or (T, n_outputs, p) (computed from the model along the measured inputs, e.g. by finite_difference_sensitivities() or arx_sensitivities()), not the raw measurements.

Parameters:
method{“criterion”, “eigen”}

See the module documentation.

n_segmentsint, optional
criterion{“E”, “logD”, “A”, “Emin”}

OED criterion of the "criterion" method.

windowint

Moving window of the criterion series.

segmentation{“bottomup”, “paa”}

How the criterion series is segmented: bottom-up with the L2 cost, or PAA (equal-length frames) as in Dobos et al. (2009).

n_eigenvectorsint

Number of leading FIM eigenvectors compared by the "eigen" method.

initial_sizeint

Initial segment length of the bottom-up searches.

Qarray, optional

Output weighting (inverse measurement-error covariance).

log_criterionbool

Segment the logarithm of a positive criterion (E, A, Emin).

Attributes:
criterion_array (T,)

Evaluating time series ("criterion" method).

ranking_pandas.DataFrame

OED criteria of every segment, most informative first (by logD).

Examples

>>> rng = np.random.default_rng(1)
>>> u = np.r_[np.zeros(100), rng.normal(size=100), np.zeros(100)]
>>> S = np.column_stack([u, 0.1 * np.ones(300)])     # sensitivities
>>> seg = FisherSegmenter(n_segments=3, window=20).segment(S)
>>> seg.n_segments
3
rank_segments(segmentation=None)[source]#

OED criteria of every segment, most informative (largest logD) first.

Examples using mvtsa.segmentation.FisherSegmenter#

Informative segments for parameter estimation (MMA polymerization)

Informative segments for parameter estimation (MMA polymerization)

Grade transitions of a polymerization reactor

Grade transitions of a polymerization reactor