Marek Wolan
c5f612889e
Merge remote-tracking branch 'origin/dev' into feature/901-change-functionality-acl-rules
2023-07-18 10:55:31 +01:00
Marek Wolan
a2ef4328dd
Remove redundant 'if TYPE_CHECKING' statements
2023-07-18 10:21:06 +01:00
Marek Wolan
3d0e50823a
Merge branch 'dev' into feature/1623-typehints
2023-07-18 10:03:48 +01:00
Chris McCarthy
81295a4fc4
#1631 - Updated the copyright statement to comply with DEFCON 703 Edition 08/13
2023-07-17 19:57:34 +01:00
SunilSamra
da20c0e9e6
#901
...
- Removed bool apply_implicit_rule
- Set default implicit_rule to EXPLICIT DENY
- Added position to ACLs in laydown configs
- Removed apply_implicit_rule from training configs
2023-07-17 13:00:58 +01:00
SunilSamra
707d8f6189
#901
...
- Added check in access_control_list.py which sets implicit permission to NA if boolean is False
- Changed the defaults in training_config.py so that each scenario has an EXPLICIT ALLOW rule as default implicit rule
- Updated the test_seeding_and_deterministic_session.py because of change no2 adds an extra rule to that scenario
2023-07-17 10:27:56 +01:00
Marek Wolan
2bb71623fa
Fix types according to mypy
2023-07-14 16:38:55 +01:00
Marek Wolan
31fedb945e
Add typehints
2023-07-14 14:43:47 +01:00
SunilSamra
e743b2380c
901 - fixed test_observation_space.py, added test fixture for test_seeding_and_deterministic_session.py and increased default max number of acls
2023-07-14 12:29:50 +01:00
SunilSamra
77f717c649
Merge remote-tracking branch 'origin/dev' into feature/901-change-functionality-acl-rules
2023-07-13 16:48:02 +01:00
Marek Wolan
36e48dc8e9
Continue Adding Typehints
2023-07-13 12:25:54 +01:00
SunilSamra
0ab4dab72a
901 - fixed test_single_action_space.py test
2023-07-13 11:45:23 +01:00
SunilSamra
f8cb18c654
901 - changed acl current obs from list to numpy.array, changed default ACL list in training_config.py to FALSE, and tried to make test_seeding_and_deterministic_session.py test without fixed reward results
2023-07-13 11:04:11 +01:00
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
SunilSamra
350b3db3f6
901 - changed implicit_acl_rule from str to enum name
2023-07-11 12:36:22 +01:00
SunilSamra
563ff72fd6
1566 - fixed the test_training_config.py test file by removing num_steps from init
2023-07-10 13:24:34 +01:00
Chris McCarthy
40381833d3
#1566 - Refactored the test_train_eval_episode_steps.py to sue TempPrimaiteSession.
...
- Fixed all errors that were caused b fixing the above.
- Some tests still fail, these are for SS to fix.
- Dropped the old run_generic stuff from conftest.py
2023-07-07 15:50:14 +01:00
SunilSamra
35b481a2f3
Merge remote-tracking branch 'origin/dev' into feature/901-change-functionality-acl-rules
2023-07-07 15:14:05 +01:00
Chris McCarthy
d49f73f139
Merge remote-tracking branch 'origin/dev' into 1566-configure-episode-steps-learn-eval
...
# Conflicts:
# src/primaite/agents/rllib.py
2023-07-07 14:34:20 +01:00
SunilSamra
e03c29b921
1566 - added test file and edited configs to include types of num steps and modifed agents to use correct step and episode counts
2023-07-07 14:13:47 +01:00
Marek Wolan
7e0eee5d73
Merge remote-tracking branch 'origin/dev' into feature/1572-fix-docs-formatting
2023-07-07 10:30:11 +01:00
Marek Wolan
f4b98542b6
Standardise docstring summary line placement.
2023-07-07 10:28:00 +01:00
Czar Echavez
04e52453b1
Merge branch 'dev' into feature/1386-enable-a-repeatable-or-deterministic-baseline-test
2023-07-06 22:22:37 +01:00
Marek Wolan
86725064ec
Added docstrings to class intialisers
2023-07-06 16:08:51 +01:00
Marek Wolan
c5d7d55747
Change reward to float and divide by 10000
2023-07-06 12:52:14 +01:00
Czar Echavez
713225b432
#1386 : remove unneeded configs + setting the seed globally + temp test
2023-07-05 15:02:41 +01:00
SunilSamra
f121b0e21c
901 - merged with dev
2023-07-05 11:34:15 +01:00
Marek Wolan
5e270c7673
Format docstrings
2023-07-04 11:11:52 +01:00
Czar Echavez
410afc1d40
Merge branch 'dev' into feature/1386-enable-a-repeatable-or-deterministic-baseline-test
2023-07-04 09:41:07 +01:00
Czar Echavez
a883e45bbf
Merge branch 'dev' into feature/1386-enable-a-repeatable-or-deterministic-baseline-test
2023-07-03 16:56:44 +01:00
Chris McCarthy
d2764d53cc
Merge remote-tracking branch 'origin/dev' into feature/917_Integrate_with_RLLib
...
# Conflicts:
# src/primaite/config/_package_data/training/training_config_main.yaml
# src/primaite/environment/primaite_env.py
2023-07-03 15:07:09 +01:00
Czar Echavez
0943e9511b
#1522 : refactor red_agent_identifier -> random_red_agent so that it is a boolean + documentation
2023-07-03 12:18:58 +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
27ca53878a
#917 - Fixed the RLlib integration
...
- Dropped support for overriding the num_episodes and num_steps at the agent level. It's just not needed and will add complexity when overriding and writing output files.
2023-06-30 16:52:57 +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
498e6a7ac1
Merge remote-tracking branch 'origin/dev' into feature/917_Integrate_with_RLLib
...
# Conflicts:
# src/primaite/config/training_config.py
# src/primaite/main.py
2023-06-28 10:11:03 +01:00
Marek Wolan
be7d0e1745
Cosmetic changes to satisfy pre-commit
2023-06-27 13:06:10 +01:00
Czar Echavez
fb50b8becf
#1386 : Apply suggestions from code review - make seed an optional variable
2023-06-23 07:57:31 +00:00
Brian Kanyora
e0f3d61f65
feature\1522:
...
Create random red agent behaviour.
2023-06-22 15:34:13 +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
SunilSamra
df42a791c9
901 - changed ACL instantiation and changed acl t private _acl (list not dict) attribute, added laydown_ACL.yaml for testing, fixed encoding of acl rules to integers for obs space, added ACL position to node action space and added generic test where agents adds two ACL rules.
2023-06-20 11:47:20 +01:00
Czar Echavez
db67a829d5
#1386 : added documentation + dealing with pre-commit checks
2023-06-20 11:19:05 +01:00
Czar Echavez
0ab4520904
#1386 : added the ability to set deterministic and seeding RNG when training and evaluating + the fix provided in #1535
2023-06-20 10:41:30 +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
SunilSamra
c6a947fbaf
901 - started testing for observation space
2023-06-13 16:23:32 +01:00
SunilSamra
5b59642695
901 - added max_acl_rules, implicit_acl_rule and apply_implicit rule to main_config, changed observations.py for ACLs to match the action space for ACLs, added position of acl rule to ACL action type
2023-06-13 14:51:55 +01:00
SunilSamra
cf64990cff
901 - added changes back to ticket
2023-06-13 09:45:45 +01:00