Mordicus.OperatorCompressors.Regression

CompressOperator(collectionProblemData, regressors, paramGrids)[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 (dict of objects satisfying the scikit-learn regressors API) – input regressor to be fitted

  • paramGrids (dict) – of dict with key: hyperparameter names and values: hyperparameter values to test

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