1
0
Fork 0
mirror of https://gitlab.rlp.net/mobitar/ReCo.jl.git synced 2025-09-02 09:02:35 +00:00

mean_kappa documentation

This commit is contained in:
Mo8it 2022-02-08 23:16:38 +01:00
parent 539029c3a1
commit 54f8a1bfaf
3 changed files with 20 additions and 7 deletions

View file

@ -6,7 +6,18 @@ using ReCo: ReCo
include("../src/Visualization/common_CairoMakie.jl")
function plot_mean_kappa(; rl_dir::String, n_last_episodes::Int64)
"""
plot_mean_κ(; rl_dir::String, n_last_episodes::Int64)
Plot the mean of `κ` of the learning process at the directory `rl_dir`.
`κ` is the ratio of the eigenvalues of the gyration tensor. `n_last_episodes` is the number of the last episodes of the learning process to average over.
The output is `rl_dir/mean_kappa.pdf`.
Return `nothing`.
"""
function plot_mean_κ(; rl_dir::String, n_last_episodes::Int64)
dir_content = readdir(rl_dir; join=true, sort=true)
n_content = length(dir_content)