Skip to content

Commit

Permalink
#46 minor refinement of documentation and instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
funkchaser committed Sep 10, 2024
1 parent 5ef524f commit 40378be
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
24 changes: 12 additions & 12 deletions docs/documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ DataBool
:height: 24
:width: 24

Defines a boolean variable.
Defines a boolean variable (`True` or `False`).


**Inputs**
Expand All @@ -34,7 +34,7 @@ DataCategorical
:height: 24
:width: 24

Defines a categorical variable.
Defines a categorical variable (for example, represening labels or classes).


**Inputs**
Expand Down Expand Up @@ -128,8 +128,8 @@ DatasetGenerator
:height: 24
:width: 24

Provides instructions on how to generate random samples for the dataset.

Provides instructions on how to generate random samples for the dataset by harnessing the parametric model found in the current Grasshopper file.
See Tutorial for more information on how to prepare the inputs and outputs of the parametric model.

**Outputs**

Expand Down Expand Up @@ -161,7 +161,7 @@ DatasetOneSample
:width: 24

Retrieves one sample from the dataset (at a given or random index) and instantiates it in the parametric model.

Requires a dataset to be loaded.

**Inputs**

Expand All @@ -180,7 +180,7 @@ DatasetSummary
:width: 24

Provides a summary of the dataset.

Requires a dataset to be loaded.

**Inputs**

Expand All @@ -198,7 +198,7 @@ Generator
:width: 24

Runs a generation campaing to create new designs using the trained model.

Requires a dataset and a trained model to be loaded.

**Inputs**

Expand All @@ -221,7 +221,7 @@ ModelDimensions
:width: 24

Retrieves dimensions of the model's input and output layers.

Requires that a model has been set up or loaded.

**Inputs**

Expand All @@ -239,7 +239,7 @@ ModelLoad
:width: 24

Loads an existing, pre-traind neural network model from a checkpoint.

Requires a dataset to be loaded.

**Inputs**

Expand All @@ -260,7 +260,7 @@ ModelSetup
:width: 24

Sets up an autoencoder model of the specified type with the given parameters.

Requires a dataset to be loaded.

**Inputs**

Expand All @@ -285,7 +285,7 @@ ModelSummary
:width: 24

Provides a summary of the autoencoder model's architecture.

Requires that a model has been set up or loaded.

**Inputs**

Expand All @@ -304,7 +304,7 @@ ModelTrain
:width: 24

Runs a training campaign.

Requires that a model has been set up (to train from scratch) or loaded (to continue training).

**Inputs**

Expand Down
10 changes: 6 additions & 4 deletions src/aixd_ara/components/ara_DatasetGenerator/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
path = dataset_generator.__file__

txt = "INSTRUCTIONS\n------------\n"
txt += "How to generate random samples for the dataset.\n\n"
txt += "How to generate random samples for a dataset, by harnessing the parametric model defined in this Grasshopper file?\n\n"
txt += "Prepare the inputs and outputs to/from your parametric model as shown in the online documentation>tutorial at https://gramaziokohler.github.io/aixd_ara/latest/tutorial.html\n\n"
txt += "Close all other Grasshopper files in this Rhino app.\n\n"
txt += "Locate the 'dataset_generator.py' file in:\n\n"
txt += "{}\n\n".format(path)
txt += "In Rhino, open the Rhino Python Editor, open the file and run it.\n"
txt += "In Rhino, open the Rhino Python Editor, open 'dataset_generator.py' and run it.\n"
txt += "(Follow the prompts in the Rhino command line)\n\n"
txt += "Optionally, add a button to a Rhino toolbar to access the dataset generator more easily:\n"


txt += "\n------------\n\n"
txt += "Optionally, add a button to a Rhino toolbar to access the dataset generator more easily:\n"
txt += "> right-click on a toolbar > New Button... \n"
txt += "> in the pop-up window, in Command section, paste:\n\n"
txt += "'! _-RunPythonScript {}'".format(path)
Expand Down

0 comments on commit 40378be

Please sign in to comment.