testcomp
TestCompiler(n_features, testinputs)
Transforms abstract test inputs into executable test inputs.
Compatible with Flowcean models.
Attributes:
n_features: int Number of features in the dataset.
list
List of abstract test inputs.
Methods:
compute_executable_testinputs() Converts abstract test inputs into a polars DataFrame for execution.
Initializes the TestCompiler.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n_features
|
int
|
Number of features in the dataset. |
required |
testinputs
|
list
|
List of abstract test inputs. |
required |
Source code in src/flowcean/testing/generator/ddtig/domain/test_generator/testcomp.py
23 24 25 26 27 28 29 30 31 32 33 34 35 | |
compute_executable_testinputs(feature_names)
Convert abstract test inputs into a Polars DataFrame.
Thus, the result can be executed on Flowcean models.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
feature_names
|
list
|
List of feature names in order of their indices. |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
DataFrame where each column represents a feature |
DataFrame
|
and each row represents a test input. |
Source code in src/flowcean/testing/generator/ddtig/domain/test_generator/testcomp.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | |