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
Chris McCarthy
2d1a1e6db7
#1631 - Added the DEFCON 703 header to all possible files
2023-07-17 19:28:43 +01:00
SunilSamra
257be9532f
#901 - Changed num_eval_steps back to 1 in ppo_seeded_training_config.yaml
2023-07-17 15:54:15 +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
SunilSamra
9df8d132fc
#901 - added to config.rst and added new ACL main config options
2023-07-17 10:08:12 +01:00
Marek Wolan
2bb71623fa
Fix types according to mypy
2023-07-14 16:38:55 +01:00
SunilSamra
1b6244d13f
#901 - amended comment in training_config_main.yaml
2023-07-14 15:49:18 +01:00
Marek Wolan
31fedb945e
Add typehints
2023-07-14 14:43:47 +01:00
Chris McCarthy
f9c7cafe87
#901 - Dropped temp_primaite_sessiion_2 from conftest.py.
...
- Re-added the hard-coded mean rewards per episode values from a rpe-trained agent to the deterministic test in test_seeding_and_deterministic_session.py
- Partially tidies up some tests in test_observation_space.py; Still some work to be done on this at a later date.
2023-07-14 14:13:11 +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
558223e8b6
901 - removed print statements and merged with dev
2023-07-13 17:14:59 +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
6b59ce960d
Merge remote-tracking branch 'origin/dev' into feature/1566-configure_episode-steps-learn-eval
...
# Conflicts:
# src/primaite/config/training_config.py
2023-07-11 11:39:21 +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
SunilSamra
4371ca13fc
1566 - added train_episodes, train_steps, eval_episodes and eval_steps to training_config_main.yaml
2023-07-06 11:12:51 +01:00
Marek Wolan
e174db5d9e
Rescaled default rewards by a factor of 1/10000
2023-07-06 10:51:34 +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
cda9819e72
Add blank lines at the end of file.
2023-07-05 09:22:49 +01:00
Marek Wolan
eac79e0941
Add missing module level docstrings.
2023-07-05 09:19:58 +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
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
Chris McCarthy
820f436f8e
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
# src/primaite/main.py
# src/primaite/transactions/transaction.py
# src/primaite/transactions/transactions_to_file.py
2023-07-03 19:51:52 +01:00
Chris McCarthy
7816e94f83
#917 - Synced with dev (at the point of random red agent)
2023-07-03 17:25:21 +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
Marek Wolan
12c18adeb1
Merge remote-tracking branch 'origin/dev' into feature/1558-flatten-spaces
2023-07-03 15:03:10 +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
Marek Wolan
975ebd6de2
revert unnecessary changes.
2023-06-30 13:16:30 +01:00