Commit 09b09b8
feat: decorator for custom_experiments (#154)
* feat: add OPEN_CATEGORICAL_VARIABLE_TYPE
* test: update to new exception msg
* refactor: isSubDomain method
It was getting long and complex.
Create one function for each domain type that checks if another domain is a sub-domain of a domain of that type.
* chore: simplification
* feat: update open categorical types in entityspace
Since the entityspace is fixed on creation strictly it can't have an open categorical dimension. We convert it to categorical with the values passed which will always be a sub-domain of the experiments open-categorical domain.
* chore: doc strings
* feat: custom_experiments as decorated functions as plugins
Just decorate a python function with @custom_experiments to add it
- No need for YAML
- No need for ado_actuators namespace
* feat: agent interface
* refactor: update optimization_test_functions
To use new decorator
* refactor: update optimization_test_functions
To use new decorator
* refactor: further updates for using decorator
* docs: temporarily change included file
* fix: minor
* fix: can't store function
As it can't be serialized
* feat: enhanced inference of domain
also refactor code into more primitive functions
* test: decoration functions
* docs(website): Update custom experiment docs
* fix: comment for future
* feat: Add ExperimentModuleConf for clarity
* refactor: change parameter name
to output_property_identifiers
* docs(website): improvements
* feat: new module type
* refactor: to new parameter name
* chore: fix import
* chore: typing
* fix: not creating correct model
* fix: incorrect anchor
* fix: Handle exceptions from custom functions
* fix: Handle exceptions from submit()
* chore: spelling
* test: execution of custom experiment
* test: check and infer function properties
* refactor: remove unused methods
* test: check behaviour if optional property given
* fix: Not using reference which may be parameterized
* chore: black
* chore: fix comment
* Apply suggestions from code review
Co-authored-by: Alessandro Pomponio <[email protected]>
Signed-off-by: Michael Johnston <[email protected]>
* refactor: change parameter name
* refactor: reorder parameters
* refactor: reorder parameters
* fix: test
---------
Signed-off-by: Michael Johnston <[email protected]>
Co-authored-by: Alessandro Pomponio <[email protected]>1 parent dee913e commit 09b09b8
File tree
16 files changed
+1113
-324
lines changed- examples/optimization_test_functions/custom_experiments
- ado_actuators/optimization_test_functions
- optimization_test_functions
- orchestrator
- cli/core
- modules
- actuators
- operators
- utilities
- tests/actuators
- website/docs/actuators
16 files changed
+1113
-324
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 0 additions & 45 deletions
This file was deleted.
Lines changed: 81 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 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 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
0 commit comments