Skip to content

Commit

Permalink
Merge pull request #38 from gramaziokohler/24-rename-inputoutputml-to…
Browse files Browse the repository at this point in the history
…-featurestargets

24 rename inputoutputml to featurestargets
  • Loading branch information
funkchaser committed May 6, 2024
2 parents 33d3164 + 5acce8d commit 85a1cc3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 18 deletions.
7 changes: 3 additions & 4 deletions docs/documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,11 @@ DataObjectsNames
:height: 24
:width: 24

Generates panels with list of names of data objects for all or selected data blocks. Data block names are: 'design_parameters','performance_attributes','inputML','outputML'.
Generates panels with list of names of data objects for all existing data blocks.


**Inputs**

- **datablock** *[List of (str)]* -- Name(s) of the datablock(s).
- **get_names** *(bool)* -- Set to True to run.

DataReal
Expand Down Expand Up @@ -266,8 +265,8 @@ Sets up an autoencoder model of the specified type with the given parameters.
**Inputs**

- **model_type** *(str)* -- Type of the autoencoder model. Options are: 'CAE' (conditional Autoencoder) and 'CVAE' (conditional Variational Autoencoder). Default: 'CAE'.
- **inputML** *[List of (str)]* -- List of variable names to be used as input to the model.
- **outputML** *[List of (str)]* -- List of variable names to be used as output from the model.
- **features** *[List of (str)]* -- List of variable names to be used as input to the model.
- **targets** *[List of (str)]* -- List of variable names to be used as output from the model.
- **latent_dim** *(int)* -- Dimension of the latent space.
- **hidden_layers** *[List of (int)]* -- Width of each hidden layer (list of int).
- **batch_size** *(int)* -- Size of the training batches
Expand Down
5 changes: 2 additions & 3 deletions src/aixd_ara/components/ara_DataObjectsNames/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,11 @@ def make_Panel(NickName, UserText, Pivot, Bounds):

errors = ""

if not datablock:
datablock = ["design_parameters", "performance_attributes", "inputML", "outputML"] # all datablock names
datablocks = ["design_parameters", "performance_attributes", "inputML", "outputML"] # all datablock names

if get_names:

for i, datablock_nickname in enumerate(datablock):
for i, datablock_nickname in enumerate(datablocks):
panel_title = datablock_nickname
response = get_dataobject_names_from_block(session_id(), datablock_nickname)
text_items = response["names"]
Expand Down
8 changes: 1 addition & 7 deletions src/aixd_ara/components/ara_DataObjectsNames/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,12 @@
"nickname": "DataObjectsNames",
"category": "ARA",
"subcategory": "1 Data",
"description": "Generates panels with list of names of data objects for all or selected data blocks. Data block names are: 'design_parameters','performance_attributes','inputML','outputML'. " ,
"description": "Generates panels with list of names of data objects for all existing data blocks." ,
"exposure": 4,
"ghpython": {
"isAdvancedMode": false,
"iconDisplay": 0,
"inputParameters": [
{
"name": "datablock",
"description": "Name(s) of the datablock(s).",
"typeHintID": "str",
"scriptParamAccess": 1
},
{
"name": "get_names",
"description": "Set to True to run.",
Expand Down
4 changes: 2 additions & 2 deletions src/aixd_ara/components/ara_ModelSetup/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

settings = {
"model_type": model_type,
"inputML": inputML,
"outputML": outputML,
"inputML": features,
"outputML": targets,
"latent_dim": latent_dim,
"hidden_layers": hidden_layers,
"batch_size": batch_size,
Expand Down
4 changes: 2 additions & 2 deletions src/aixd_ara/components/ara_ModelSetup/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
"scriptParamAccess": 0
},
{
"name": "inputML",
"name": "features",
"description": "List of variable names to be used as input to the model.",
"typeHintID": "str",
"scriptParamAccess": 1
},
{
"name": "outputML",
"name": "targets",
"description": "List of variable names to be used as output from the model.",
"typeHintID": "str",
"scriptParamAccess": 1
Expand Down
Binary file not shown.

0 comments on commit 85a1cc3

Please sign in to comment.