Skip to content
Snippets Groups Projects
Unverified Commit 822b03fd authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

add `inbreeding inspect`

parent 64e446f7
No related branches found
No related tags found
1 merge request!125add `inbreeding inspect` to look at the cache
Pipeline #5299 passed
use consts.nu
use path.nu [ "remove-cache-prefix" ]
def get-seeds [] [ nothing -> list<string> ] {
$consts.CACHE | path join '*' | into glob | ls $in | get name | each { path split | last }
}
export def main [seed: int@get-seeds]: [
nothing -> table<
seed: string,
timestamp: string,
env: string,
strategy: string,
k: string,
n: string,
nb_bytes: string,
m: int,
>
] {
$consts.CACHE
| path join ($seed | into string) '*'
| into glob
| ls $in
| insert m { ls $in.name | length }
| select name m
| update name {
remove-cache-prefix
| parse $consts.FULL_EXPERIMENT_FORMAT
}
| flatten --all name
}
export use build.nu
export use run.nu
export use inspect.nu
export use load.nu
export use plot.nu
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment