Merged PR 522: #2844: Added evaluation stage to Ray notebooks.

## Summary
Added evaluation stage to Training-an-RLLib-Agent and Training-an-RLLIB-MARL-System notebooks.

## Test process
Tested individual notebooks.
Ran all PrimAITE tests.

## Checklist
- [X] PR is linked to a **work item**
- [X] **acceptance criteria** of linked ticket are met
- [X] performed **self-review** of the code
- [ ] written **tests** for any new functionality added with this PR
- [ ] updated the **documentation** if this PR changes or adds functionality
- [ ] written/updated **design docs** if this PR implements new functionality
- [ ] updated the **change log**
- [X] ran **pre-commit** checks for code style
- [ ] attended to any **TO-DOs** left in the code

#2844: Added evaluation stage to Ray notebooks.

Related work items: #2844
This commit is contained in:
Nick Todd
2024-08-30 10:18:31 +00:00
2 changed files with 32 additions and 0 deletions

View File

@@ -82,6 +82,22 @@
"algo = config.build()\n", "algo = config.build()\n",
"results = algo.train()" "results = algo.train()"
] ]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Evaluate the results"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"eval = algo.evaluate()"
]
} }
], ],
"metadata": { "metadata": {

View File

@@ -74,6 +74,22 @@
"algo = config.build()\n", "algo = config.build()\n",
"results = algo.train()\n" "results = algo.train()\n"
] ]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Evaluate the results"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"eval = algo.evaluate()"
]
} }
], ],
"metadata": { "metadata": {