SunilSamra
06c20f6984
Merge remote-tracking branch 'origin/dev' into feature/901-change-functionality-acl-rules
...
# Conflicts:
# src/primaite/acl/access_control_list.py
2023-07-12 10:45:03 +01:00
Marek Wolan
86725064ec
Added docstrings to class intialisers
2023-07-06 16:08:51 +01:00
SunilSamra
f651937759
901 - changed how acl rules are added to access control list and added structure to AccessControlList observation
2023-07-06 11:07:21 +01:00
SunilSamra
f121b0e21c
901 - merged with dev
2023-07-05 11:34:15 +01:00
Marek Wolan
38a3666e8e
Move class docstrings out of init function.
2023-07-05 10:14:16 +01:00
Marek Wolan
cda9819e72
Add blank lines at the end of file.
2023-07-05 09:22:49 +01:00
SunilSamra
3f440c0a28
901 - updated observations.py to change and add new mapping of ACL rules to represent no rule present in list
2023-07-05 09:08:03 +01:00
Marek Wolan
0756e61e5d
add module level docstrings
2023-07-04 13:11:06 +01:00
Marek Wolan
5e270c7673
Format docstrings
2023-07-04 11:11:52 +01:00
Chris McCarthy
16534237e0
#917 - Dropped VerboseLevel in enums.py and changed OutputVerboseLevel to SB3OutputVerboseLevel
2023-06-30 17:09:50 +01:00
Chris McCarthy
73015802ec
#917 - Integrated the PrimaiteSession into all tests.
...
- Ran a full pre-commit hook and thus encountered tons of fixes required
2023-06-30 09:08:13 +01:00
Chris McCarthy
7482192046
#917 - Synced with dev and added better logging
2023-06-28 12:01:01 +01:00
Chris McCarthy
a2cc4233b5
#917 -Finished integrating all agents to either train (policy agents) or evaluate (hard-coded agents). Still some fixing up to do, tidying up, loading etc. also docs. But this is all now working.
2023-06-20 16:06:55 +01:00
Chris McCarthy
03ae4884e0
#917 - Almost there. All output files being writen for SB3/RLLIB PPO & A2C. Just need to bring in the hardcoded agents then update the testa and docs.
2023-06-19 21:53:25 +01:00
Chris McCarthy
23bafde457
#917 - Integrated both SB3 and RLlib agents into PrimaiteSession
2023-06-19 20:27:08 +01:00
Chris McCarthy
c2c396052f
#917 - Got RLlib fully training in PrimAITE. Started integrating the the other agents into the Session class
2023-06-18 22:40:56 +01:00
Chris McCarthy
eb3368edd6
temp commit
2023-06-13 09:42:54 +01:00
SunilSamra
cdd7183d85
901 - merged dev into my branch
2023-06-13 08:54:33 +01:00
Chris McCarthy
785409e12a
Synced with dev
2023-06-12 16:59:31 +01:00
Chris McCarthy
a08ec8844a
Merge remote-tracking branch 'origin/dev' into feature/915_PRI-31_Packaging_Deployment
...
# Conflicts:
# docs/source/about.rst
# src/primaite/main.py
# src/primaite/nodes/node.py
2023-06-12 16:42:26 +01:00
Chris McCarthy
8f86bda4d2
Merge remote-tracking branch 'origin/dev' into feature/898-Fix-the-functionality-of-resetting-a-node
2023-06-12 14:20:16 +01:00
SunilSamra
29ba64462a
901 - changed name of enum in enums.py and added class attriubutes in access_control_list.py
2023-06-09 15:45:13 +01:00
SunilSamra
afc133cbc5
901 - added ACL list to observations.py as its own observation space with the ACL attributes and the position of the ACL rule in the ACL list, added ImplicitFirewallRule to enums.py and added acl_implicit_rule, max_acl_list to primaite_env.py
2023-06-09 15:17:20 +01:00
Chris McCarthy
0dbd89e5cb
Merge remote-tracking branch 'origin/dev' into feature/915_PRI-31_Packaging_Deployment
...
# Conflicts:
# docs/source/about.rst
# docs/source/config.rst
# src/primaite/common/config_values_main.py
# src/primaite/environment/primaite_env.py
# src/primaite/main.py
# tests/config/multidiscrete_obs_space_laydown_config.yaml
# tests/config/obs_tests/laydown.yaml
# tests/conftest.py
# tests/test_observation_space.py
2023-06-09 13:41:05 +01:00
Chris McCarthy
9b4ed1199b
Merge remote-tracking branch 'origin/dev' into feature/915_PRI-31_Packaging_Deployment
...
# Conflicts:
# tests/conftest.py
# tests/test_observation_space.py
# tests/test_reward.py
2023-06-09 10:35:14 +01:00
Marek Wolan
b917b65d49
Merge remote-tracking branch 'origin/dev' into feature/1468-observations-class
2023-06-09 09:01:54 +01:00
Chris McCarthy
273876873e
#915 - Created app dirs and set as constants in the top-level init.
...
- renamed _config_values_main to training_config.py and renamed the ConfigValuesMain class to TrainingConfig.
Moved training_config.py to src/primaite/config/training_config.py
- Renamed all training config yaml file keys to make creating an instance of TrainingConfig easier.
Moved action_type and num_steps over to the training config.
- Decoupled the training config and lay down config.
- Refactored main.py so that it can be ran from CLI and can take a training config path and a lay down config path.
- refactored all outputs so that they save to the session dir.
- Added some necessary setup scripts that handle creating app dirs, fronting example config files to the user, fronting demo notebooks to the user, performing clean-up in between installations etc.
- Added functions that attempt to retrieve the file path of users example config files that have been fronted by the primaite setup.
- Added logging config and a getLogger function in the top-level init.
- Refactored all logs entries logged to use a logger using the primaite logging config.
- Added basic typer CLI for doing things like setup, viewing logs, viewing primaite version, running a basic session.
- Updated test to use new features and config structures.
- Began updating docs. More to do here.
2023-06-07 22:40:16 +01:00
Marek Wolan
9417cd85ab
Apply suggestions from code review.
2023-06-07 15:25:11 +01:00
SunilSamra
17d036302f
Merge remote-tracking branch 'origin/dev' into feature/893-node-acl-into-one-action-space
2023-06-06 11:56:52 +01:00
Brian Kanyora
051cd7da2b
Merge branch 'dev' into feature/898-Fix-the-functionality-of-resetting-a-node
2023-06-02 14:56:31 +01:00
Brian Kanyora
e5b60c2f95
feature\898:
2023-06-02 14:54:23 +01:00
SunilSamra
d854773e84
893 - added ANY to enums.py
2023-06-02 09:51:15 +01:00
Marek Wolan
375e20a67b
Configure observation type MULTIDISCRETE
2023-05-30 15:11:41 +01:00
SunilSamra
dc011a489c
1429 - added code from ADSP branch to primaite_env.py and added NONE = 0 to NodePOLType in enums.py
2023-05-26 14:29:02 +01:00
SunilSamra
9d3d8d5945
1429 - created new branch from dev, added enums to enums.py, created agents package and utils.py file, added option to primaite_env.py for ANY action type and changed the action spaces are defined using ADSP branch
2023-05-26 10:17:45 +01:00
Chris McCarthy
05ebd15053
#1355 - Renamed the NodeType custom type in custom_typing.py as it clased with the NodeType enum in enums.py
2023-05-26 09:43:37 +01:00
Chris McCarthy
6245ad9298
#1355 - Carried out full renaming in node.py, active_node.py, passive_node.py, and service_node.py to make params and variable names explicit.
...
- Made the same renaming in the yaml laydown config files.
- Added Type hints wherever I've been.
- Added a custom NodeType in custom_typing.py to encompass the Union of ActiveNode, PassiveNode, ServiceNode.
2023-05-25 21:03:11 +01:00
Chris McCarthy
71f33ed44e
Ran pre-commit hook on all files and performed changes to fix flake8 failures
2023-05-25 11:42:19 +01:00
Chris McCarthy
9bd7aade43
Package restructuring
2023-05-25 10:31:37 +01:00