> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TrainingPlanBase Struct Reference

Part of [MOP training plan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__training__plan)

TrainingPlan assigns a in a set of sample each sample a status on how the sample is to be treated during the training of a model.

## Public Member Functions

| Type | Name |
| - | - |
| virtual std::vector\< string > | [getInputNames](#a15234ce024e1b13e596ff9c38df3be71) (::data\_handler::DataHandlerBase datahandler)=0 Returns the input names from the datahandler. |
| virtual [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [getInputs](#a6e262334d7e27b9f05121454531fa5b6) (::data\_handler::DataHandlerBase datahandler)=0 Returns the inputs fitting the training plan from the datahandler. |
| virtual string | [getMOPIdent](#a5df8016765ccb017b2ff5778e3e81558) ()=0 Returns the [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) ident the TrainingPlan is created for. |
| virtual std::vector\< string > | [getOutputNames](#a32c9c6dc56f9b1b5ad2aa3e686d172c7) (::data\_handler::DataHandlerBase datahandler)=0 Returns the output names from the datahandler. |
| virtual [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [getOutputs](#a8de106670ace9e349ee9c149741b8e44) (::data\_handler::DataHandlerBase datahandler)=0 Returns the outputs fitting the training plan from the datahandler. |
| virtual [SampleUsage](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__training__plan#gafce529ac7282fd94c419e8bea8492268) | [getSampleUsageInSet](#a1c4be324fc1e91c3039a49631f6e2cc9) (uint64\_t i, uint64\_t j)=0 getSampleUsageInSet accessor of the j-th sample in the i-th training set |
| virtual [SampleUsage](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__training__plan#gafce529ac7282fd94c419e8bea8492268) | [getSampleUsageInSetRef](#af67b70402c8a7610ce4a99c252f53681) (uint64\_t i, uint64\_t j)=0 getSampleUsageInSetRef non- accessor of the j-th sample in the i-th training set |
| virtual [ParameterImportance](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__common#gad5ca470fd07552bf1da82219827c4ec0) | [inputImportance](#ab9acd4287a8208fa9a32867cafaf8e46) (uint64\_t i)=0 parameter returns the ParameterImportance for the i-th parameter |
| virtual [ParameterImportance](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__common#gad5ca470fd07552bf1da82219827c4ec0) | [inputImportanceInSubspace](#a60399ab71c2fcf3a21c9a613997c4822) (uint64\_t i, uint64\_t j, uint64\_t o)=0 inputImportanceInSubspace returns true if the input j is in the subspace i. |
| virtual bool | [isValid](#aed20b1ee85452a87a9e10f39077b94a3) (::data\_handler::DataHandlerBase)=0 Checks if the training plan is valid for the give datahandler. |
| virtual uint64\_t | [numInputs](#a5c973e14b896504b0522fc953bb3b2dc) ()=0 numInputs returns the number of inputs used and defined in this training plan |
| virtual uint64\_t | [numOutputs](#aad28bd2bb818cf6c433e22e22768086c) ()=0 numOutputs returns the number of outputs used in this training plan |
| virtual uint64\_t | [numSamplesInSet](#a0ef7e16a9a52c22ecb59f6148accae62) (uint64\_t i)=0 numSamplesInSet returns the number of elements (samples) in the training set |
| virtual uint64\_t | [numSets](#ad536b0ba37fa27e95a51c0aa3afc96da) ()=0 numSets returns the number of training sets in the training plan |
| virtual uint64\_t | [numSubspaces](#a44682836a8190246e4db84f997a003cc) (uint64\_t o)=0 numSubspaces returns the number of filtered subspaces available in the Training Plan to the i-th output in the output matrix |
| virtual uint64\_t | [numTestSamplesInSet](#a88109fe981a2b192eb8e09a87ae563ed) (uint64\_t i)=0 numTestSamplesInSet returns the number of elements (samples) in the training set that are labeled SampleUsage::Test |
| virtual uint64\_t | [numTrainingSamplesInSet](#a13261fec66c7bbac8c07123619300275) (uint64\_t i)=0 numTrainingSamplesInSet returns the number of elements (samples) in the training set that are labeled SampleUsage::Training |
| virtual uint64\_t | [output](#a3e0dff9e7373d9800e8abe6a61af4c16) (uint64\_t i)=0 parameter returns the index of the i-th output in the output matrix |

## Detailed Description

TrainingPlan assigns a in a set of sample each sample a status on how the sample is to be treated during the training of a model.

## Member Function Documentation

### getInputNames()

```cpp theme={null}
virtual std::vector<string> getInputNames(::data_handler::DataHandlerBase datahandler)
```

`pure virtual`

Returns the input names from the datahandler.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler to get the data from |

**Returns**

The input data names

Implemented in [SimpleTrainingPlan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_simple_training_plan.md#a4f95e721a51d6482217b85546b69b3f9).

### getInputs()

```cpp theme={null}
virtual Matrix getInputs(::data_handler::DataHandlerBase datahandler)
```

`pure virtual`

Returns the inputs fitting the training plan from the datahandler.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler to get the data from |

**Returns**

The (scalar) input data

Implemented in [SimpleTrainingPlan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_simple_training_plan.md#afc52921c8d133bb463c1dfa5a8b7ef22).

### getMOPIdent()

```cpp theme={null}
virtual string getMOPIdent()
```

`pure virtual`

Returns the [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) ident the TrainingPlan is created for.

**Returns**

The ident for the [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md)

Implemented in [SimpleTrainingPlan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_simple_training_plan.md#a255c5ecec66209c6f30d3d5f15177859).

### getOutputNames()

```cpp theme={null}
virtual std::vector<string> getOutputNames(::data_handler::DataHandlerBase datahandler)
```

`pure virtual`

Returns the output names from the datahandler.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler to get the data from |

**Returns**

The output data names

Implemented in [SimpleTrainingPlan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_simple_training_plan.md#a9f69089e282ffa01fd21080139b05f8f).

### getOutputs()

```cpp theme={null}
virtual Matrix getOutputs(::data_handler::DataHandlerBase datahandler)
```

`pure virtual`

Returns the outputs fitting the training plan from the datahandler.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler to get the data from |

**Returns**

The (scalar) output data

Implemented in [SimpleTrainingPlan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_simple_training_plan.md#a11f9260c1f6f8527fb75fa5950f52dfa).

### getSampleUsageInSet()

```cpp theme={null}
virtual SampleUsage getSampleUsageInSet(
    uint64_t i,
    uint64_t j
)
```

`pure virtual`

getSampleUsageInSet accessor of the j-th sample in the i-th training set

**Parameters**

| Name | Description |
| - | - |
| i | Index of the training set |
| j | Index of the sample in training set i |

**Returns**

The sample at the given indices

Implemented in [SimpleTrainingPlan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_simple_training_plan.md#a2b8e899313418568acbb9ed5b2ce6ade).

### getSampleUsageInSetRef()

```cpp theme={null}
virtual SampleUsage getSampleUsageInSetRef(
    uint64_t i,
    uint64_t j
)
```

`pure virtual`

getSampleUsageInSetRef non- accessor of the j-th sample in the i-th training set

**Parameters**

| Name | Description |
| - | - |
| i | Index of the training set |
| j | Index of the sample in training set i |

**Returns**

The sample at the given indices

Implemented in [SimpleTrainingPlan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_simple_training_plan.md#a6c419ba361cd6d96b71e12bf657d940b).

### inputImportance()

```cpp theme={null}
virtual ParameterImportance inputImportance(uint64_t i)
```

`pure virtual`

parameter returns the ParameterImportance for the i-th parameter

**Parameters**

| Name | Description |
| - | - |
| i | The index of the parameter |

**Returns**

The ParameterUsage of parameter i

Implemented in [SimpleTrainingPlan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_simple_training_plan.md#a7afbd5f5b1743bc2423ca855fe2603ab).

### inputImportanceInSubspace()

```cpp theme={null}
virtual ParameterImportance inputImportanceInSubspace(
    uint64_t i,
    uint64_t j,
    uint64_t o
)
```

`pure virtual`

inputImportanceInSubspace returns true if the input j is in the subspace i.

**Parameters**

| Name | Description |
| - | - |
| i | Index of the subspace |
| j | Index of the input parameter |
| o | The o-th output the input is important to |

**Returns**

ParameterImportance of input j is in subspace i for the given output

Implemented in [SimpleTrainingPlan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_simple_training_plan.md#aa2ae62e6cab293f7c236e9bf273768f1).

### isValid()

```cpp theme={null}
virtual bool isValid(::data_handler::DataHandlerBase)
```

`pure virtual`

Checks if the training plan is valid for the give datahandler.

**Returns**

true iff the training plan is valid

Implemented in [SimpleTrainingPlan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_simple_training_plan.md#ad4450a95cde865da632771935f1c57b3).

### numInputs()

```cpp theme={null}
virtual uint64_t numInputs()
```

`pure virtual`

numInputs returns the number of inputs used and defined in this training plan

**Returns**

The number of parameters the training plan is defined on

Implemented in [SimpleTrainingPlan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_simple_training_plan.md#aae989fb2bbddfd907494bed60516e03d).

### numOutputs()

```cpp theme={null}
virtual uint64_t numOutputs()
```

`pure virtual`

numOutputs returns the number of outputs used in this training plan

**Returns**

The number of outputs the training plan is defined on

Implemented in [SimpleTrainingPlan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_simple_training_plan.md#a762eb06ef18a50d3041ce79215855763).

### numSamplesInSet()

```cpp theme={null}
virtual uint64_t numSamplesInSet(uint64_t i)
```

`pure virtual`

numSamplesInSet returns the number of elements (samples) in the training set

**Parameters**

| Name | Description |
| - | - |
| i | The index of the training set |

**Returns**

The number of elements in set i

Implemented in [SimpleTrainingPlan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_simple_training_plan.md#ad3ec25fce42515bda59cd6e7154a8258).

### numSets()

```cpp theme={null}
virtual uint64_t numSets()
```

`pure virtual`

numSets returns the number of training sets in the training plan

**Returns**

The number of training sets

Implemented in [SimpleTrainingPlan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_simple_training_plan.md#a76d26675967b395d8924915b06fd44f9).

### numSubspaces()

```cpp theme={null}
virtual uint64_t numSubspaces(uint64_t o)
```

`pure virtual`

numSubspaces returns the number of filtered subspaces available in the Training Plan to the i-th output in the output matrix

**Parameters**

| Name | Description |
| - | - |
| o | The index of the output |

**Returns**

The number of Subspaces for the given output

Implemented in [SimpleTrainingPlan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_simple_training_plan.md#a52bd33805e42f83fcad54b402b9d4ced).

### numTestSamplesInSet()

```cpp theme={null}
virtual uint64_t numTestSamplesInSet(uint64_t i)
```

`pure virtual`

numTestSamplesInSet returns the number of elements (samples) in the training set that are labeled SampleUsage::Test

**Parameters**

| Name | Description |
| - | - |
| i | The index of the training set |

**Returns**

The number of elements in set i

Implemented in [SimpleTrainingPlan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_simple_training_plan.md#aacc683995d55549d854c2d2420aef90c).

### numTrainingSamplesInSet()

```cpp theme={null}
virtual uint64_t numTrainingSamplesInSet(uint64_t i)
```

`pure virtual`

numTrainingSamplesInSet returns the number of elements (samples) in the training set that are labeled SampleUsage::Training

**Parameters**

| Name | Description |
| - | - |
| i | The index of the training set |

**Returns**

The number of elements in set i

Implemented in [SimpleTrainingPlan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_simple_training_plan.md#ad37730c1466388aa53eaeccc3be698d8).

### output()

```cpp theme={null}
virtual uint64_t output(uint64_t i)
```

`pure virtual`

parameter returns the index of the i-th output in the output matrix

**Parameters**

| Name | Description |
| - | - |
| i | The index of the parameter |

**Returns**

The index of output i in the output matrix

Implemented in [SimpleTrainingPlan](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_simple_training_plan.md#a233e0c56c9d1e12b9bc6503a37bc3d8c).
