ScalarMOP Struct Reference
Last update: 12.07.2023This is only a sketch of the possible ScalarMOPApproximate API Implementation shall be refined if more information is available. More...
Public Member Functions | |
| Matrix | activeVariables (::data_handler::DataHandlerBase datahandler, uint64_t output) |
| Return the the variable active for the selected output. More... | |
| Matrix | constantInputs (::data_handler::DataHandlerBase datahandler) |
| Return the the variables inactive for all outputs (the constant inputs) More... | |
| Matrix | copInputs (::data_handler::DataHandlerBase datahandler) |
| Compute the individual CoPs of second order for each input of given order for all outputs from the ScalarMOP in the datahandler. More... | |
| Matrix | copInputs (::data_handler::DataHandlerBase datahandler, uint64_t output) |
| Compute the individual CoPs of second order for each input of given order for a single output from the ScalarMOP in the datahandler. More... | |
| Matrix | copInputsFirstOrder (::data_handler::DataHandlerBase datahandler) |
| Compute the individual CoPs of first order for each input of given order for all outputs from the ScalarMOP in the datahandler. More... | |
| Matrix | copInputsFirstOrder (::data_handler::DataHandlerBase datahandler, uint64_t output) |
| Compute the individual CoPs of given order for each input of given order for a single output from the ScalarMOP in the datahandler. More... | |
| Matrix | copTotal (::data_handler::DataHandlerBase datahandler) |
| Return the total CoP from the ScalarMOP in the given datahandler. More... | |
| number | copTotal (::data_handler::DataHandlerBase datahandler, uint64_t output) |
| Return the total CoP of the given output the ScalarMOP in the datahandler. More... | |
| Matrix | crossValidation (::data_handler::DataHandlerBase datahandler) |
| Returns the cross validation values. More... | |
| Matrix | crossValidation (::data_handler::DataHandlerBase datahandler, uint64_t output) |
| Matrix | evaluate (::data_handler::DataHandlerBase datahandler, Matrix values) |
| Evaluate the ScalarMOP in the datahandler on the given values with bounds check. More... | |
| Matrix | evaluate (::data_handler::DataHandlerBase datahandler, Matrix values, uint64_t output) |
| Evaluate the ScalarMOP in the datahandler on the given values. Only evaluate the given output. With bounds check. More... | |
| Matrix | evaluateExtrapolate (::data_handler::DataHandlerBase datahandler, Matrix values) |
| Evaluate the ScalarMOP in the datahandler on the given values no bounds check. More... | |
| Matrix | evaluateExtrapolate (::data_handler::DataHandlerBase datahandler, Matrix values, uint64_t output) |
| Evaluate the ScalarMOP in the datahandler on the given values. Only evaluate the given output. No bounds check. More... | |
| std::vector< string > | filterActiveSampleIds (::data_handler::DataHandlerBase datahandler, std::vector< string > sample_ids, uint64_t model) |
| Return the the samples id active for the selected output from the given list of sample_ids. More... | |
| std::vector< string > | filterConstantInputNames (::data_handler::DataHandlerBase datahandler, std::vector< string > input_names) |
| Filter the list of input names such that only the constant ones are returned The Input names need to be in the order as given on the training of the MOP. More... | |
| bool | isValid (::data_handler::DataHandlerBase datahandler) |
| checks the settings More... | |
| string | modelDescription (::data_handler::DataHandlerBase datahandler, std::size_t output) |
| Return the description of the model computing the output for the SclarMOP in the datahandler. More... | |
| string | modelName (::data_handler::DataHandlerBase datahandler, uint64_t output) |
| Return the name of the model computing the output for the SclarMOP in the datahandler. More... | |
| Matrix | predictionError (::data_handler::DataHandlerBase datahandler) |
| Estimate the prediction error for ScalarMOP in the datahandler on the given values. More... | |
| number | predictionError (::data_handler::DataHandlerBase datahandler, uint64_t output) |
| Estimate the prediction error for ScalarMOP in the datahandler on the given values for the given output. More... | |
| Matrix | qualityMeasureTotal (::data_handler::DataHandlerBase datahandler, ::quality_measure::QualityMeasureBase quality_measure) |
| Return the total quality measure w.r.t. the expected responses from the ScalarMOP in the given datahandler. More... | |
| number | qualityMeasureTotal (::data_handler::DataHandlerBase datahandler, ::quality_measure::QualityMeasureBase quality_measure, uint64_t output) |
| Return the total quality measure w.r.t. the expected responses for the given output from the ScalarMOP in the given datahandler. More... | |
| Matrix | sampleStatus (::data_handler::DataHandlerBase datahandler) |
| Return the the samples active/inactive for all models. More... | |
| Matrix | sampleStatus (::data_handler::DataHandlerBase datahandler, uint64_t model) |
| Return the the samples id active for the selected output from the given list of sample_ids. More... | |
| ScalarMOP (string mop_ident=handler::defaultMOPIdent) | |
Detailed Description
This is only a sketch of the possible ScalarMOPApproximate API Implementation shall be refined if more information is available.
Member Function Documentation
◆ activeVariables()
| Matrix activeVariables | ( | ::data_handler::DataHandlerBase | datahandler, |
| uint64_t | output | ||
| ) |
Return the the variable active for the selected output.
- Parameters
-
datahandler The database to take the ScalarMOP from output The selected output
- Returns
- A vector of bools specifying for each input if it is active
◆ constantInputs()
| Matrix constantInputs | ( | ::data_handler::DataHandlerBase | datahandler | ) |
Return the the variables inactive for all outputs (the constant inputs)
- Parameters
-
datahandler The database to take the ScalarMOP from
- Returns
- A vector of bools specifying for each input if it is constant
◆ copInputs() [1/2]
| Matrix copInputs | ( | ::data_handler::DataHandlerBase | datahandler | ) |
Compute the individual CoPs of second order for each input of given order for all outputs from the ScalarMOP in the datahandler.
- Parameters
-
datahandler The datahandler
◆ copInputs() [2/2]
| Matrix copInputs | ( | ::data_handler::DataHandlerBase | datahandler, |
| uint64_t | output | ||
| ) |
Compute the individual CoPs of second order for each input of given order for a single output from the ScalarMOP in the datahandler.
- Parameters
-
datahandler The datahandler output The output to compute for
◆ copInputsFirstOrder() [1/2]
| Matrix copInputsFirstOrder | ( | ::data_handler::DataHandlerBase | datahandler | ) |
Compute the individual CoPs of first order for each input of given order for all outputs from the ScalarMOP in the datahandler.
- Parameters
-
datahandler The datahandler
◆ copInputsFirstOrder() [2/2]
| Matrix copInputsFirstOrder | ( | ::data_handler::DataHandlerBase | datahandler, |
| uint64_t | output | ||
| ) |
Compute the individual CoPs of given order for each input of given order for a single output from the ScalarMOP in the datahandler.
- Parameters
-
datahandler The datahandler output The output to compute for
◆ copTotal() [1/2]
| Matrix copTotal | ( | ::data_handler::DataHandlerBase | datahandler | ) |
◆ copTotal() [2/2]
| number copTotal | ( | ::data_handler::DataHandlerBase | datahandler, |
| uint64_t | output | ||
| ) |
◆ crossValidation()
| Matrix crossValidation | ( | ::data_handler::DataHandlerBase | datahandler | ) |
◆ evaluate() [1/2]
◆ evaluate() [2/2]
◆ evaluateExtrapolate() [1/2]
◆ evaluateExtrapolate() [2/2]
◆ filterActiveSampleIds()
| std::vector<string> filterActiveSampleIds | ( | ::data_handler::DataHandlerBase | datahandler, |
| std::vector< string > | sample_ids, | ||
| uint64_t | model | ||
| ) |
Return the the samples id active for the selected output from the given list of sample_ids.
- Parameters
-
datahandler The database to take the ScalarMOP from sample_ids A list of sample ids corresponding to the used samples model The selected model
- Returns
- A vector of strings representing the ids of the active samples
◆ filterConstantInputNames()
| std::vector<string> filterConstantInputNames | ( | ::data_handler::DataHandlerBase | datahandler, |
| std::vector< string > | input_names | ||
| ) |
Filter the list of input names such that only the constant ones are returned The Input names need to be in the order as given on the training of the MOP.
- Parameters
-
datahandler The database to take the ScalarMOP from input_names The names of the inputs in the order of the training
- Returns
- A list of input names representing the constant inputs
◆ isValid()
| bool isValid | ( | ::data_handler::DataHandlerBase | datahandler | ) |
checks the settings
- Parameters
-
datahandler The datahandler we refer to
- Returns
- true iff the datahandler may be accessed
◆ modelDescription()
| string modelDescription | ( | ::data_handler::DataHandlerBase | datahandler, |
| std::size_t | output | ||
| ) |
Return the description of the model computing the output for the SclarMOP in the datahandler.
- Parameters
-
datahandler The datahandler output The output under consideration
- Returns
- A string containing the description of the model
◆ modelName()
| string modelName | ( | ::data_handler::DataHandlerBase | datahandler, |
| uint64_t | output | ||
| ) |
Return the name of the model computing the output for the SclarMOP in the datahandler.
- Parameters
-
datahandler The datahandler output The output under consideration
- Returns
- A string containing the name of the model
◆ predictionError() [1/2]
| Matrix predictionError | ( | ::data_handler::DataHandlerBase | datahandler | ) |
◆ predictionError() [2/2]
| number predictionError | ( | ::data_handler::DataHandlerBase | datahandler, |
| uint64_t | output | ||
| ) |
◆ qualityMeasureTotal() [1/2]
| Matrix qualityMeasureTotal | ( | ::data_handler::DataHandlerBase | datahandler, |
| ::quality_measure::QualityMeasureBase | quality_measure | ||
| ) |
Return the total quality measure w.r.t. the expected responses from the ScalarMOP in the given datahandler.
- Parameters
-
datahandler The datahandler quality_measure The quality measure
- Returns
- The total quality measure of all outputs w.r.t. the expected responses
◆ qualityMeasureTotal() [2/2]
| number qualityMeasureTotal | ( | ::data_handler::DataHandlerBase | datahandler, |
| ::quality_measure::QualityMeasureBase | quality_measure, | ||
| uint64_t | output | ||
| ) |
Return the total quality measure w.r.t. the expected responses for the given output from the ScalarMOP in the given datahandler.
- Parameters
-
datahandler The datahandler quality_measure The quality measure output The output to compute for
- Returns
- The total quality measure of all outputs w.r.t. the expected responses
◆ sampleStatus() [1/2]
| Matrix sampleStatus | ( | ::data_handler::DataHandlerBase | datahandler | ) |
Return the the samples active/inactive for all models.
- Parameters
-
datahandler The database to take the ScalarMOP from
- Returns
- A matrix of bools specifying for each sample/model if it is active/inactive
◆ sampleStatus() [2/2]
| Matrix sampleStatus | ( | ::data_handler::DataHandlerBase | datahandler, |
| uint64_t | model | ||
| ) |
Return the the samples id active for the selected output from the given list of sample_ids.
- Parameters
-
datahandler The database to take the ScalarMOP from model The selected model
- Returns
- A vector of bools specifying for each samples if it is active/inactive for the model