Plugin

Module for the Plugin abstract class.

class Plugin[source]

Bases: ABC

The abstract Plugin class for ROM preprocessing and postprocessing.

All plugin classes should inherit from this class and override the methods corresponding to the stages where they need to intervene.

_abc_impl = <_abc._abc_data object>
fit_after_approximation(rom)[source]

Execute after the approximation step during fit.

Parameters:

rom (ReducedOrderModel) – The ROM instance.

fit_after_reduction(rom)[source]

Execute after the reduction step during fit.

Parameters:

rom (ReducedOrderModel) – The ROM instance.

fit_before_approximation(rom)[source]

Execute before the approximation step during fit.

Parameters:

rom (ReducedOrderModel) – The ROM instance.

fit_before_reduction(rom)[source]

Execute before the reduction step during fit.

Parameters:

rom (ReducedOrderModel) – The ROM instance.

fit_postprocessing(rom)[source]

Execute after the fit process completes.

Parameters:

rom (ReducedOrderModel) – The ROM instance.

fit_preprocessing(rom)[source]

Execute before the fit process begins.

Parameters:

rom (ReducedOrderModel) – The ROM instance.

predict_after_approximation(rom)[source]

Execute after the approximation step during prediction.

Parameters:

rom (ReducedOrderModel) – The ROM instance.

predict_after_expansion(rom)[source]

Execute after the expansion step during prediction.

Parameters:

rom (ReducedOrderModel) – The ROM instance.

predict_before_approximation(rom)[source]

Execute before the approximation step during prediction.

Parameters:

rom (ReducedOrderModel) – The ROM instance.

predict_before_expansion(rom)[source]

Execute before the expansion step during prediction.

Parameters:

rom (ReducedOrderModel) – The ROM instance.

predict_postprocessing(rom)[source]

Execute after the prediction process completes.

Parameters:

rom (ReducedOrderModel) – The ROM instance.

predict_preprocessing(rom)[source]

Execute before the prediction process begins.

Parameters:

rom (ReducedOrderModel) – The ROM instance.