genericROM.OperatorCompressors.Regression module
- CompressOperator(collectionProblemData, regressors)[source]
Computes the offline operator compression stage using the method of POD on the snapshots and a regression on the coefficients
- Parameters:
collectionProblemData (CollectionProblemData) – definition of the training data in a CollectionProblemData object
regressors (list of regressor OperationCompressionData instances) – regressors defined in Containers/OperationCompressionData/Regressors
- ComputeOnline(onlineProblemData, solutionName)[source]
Compute the online stage using the method of POD on the snapshots and a regression on the coefficients
The parameters must have been initialized in onlineProblemData
- Parameters:
onlineProblemData (ProblemData) – definition of the testing configuration data in a CollectionProblemData object
solutionName (str) – names of the solution to be treated
- Returns:
onlineReducedCoordinates; dictionary with time indices as keys and a np.ndarray of size (numberOfModes,) containing the coefficients of the reduced solution
- Return type:
dict