{"id":20106240,"url":"https://github.com/himkt/chainer_util","last_synced_at":"2026-06-05T18:32:05.877Z","repository":{"id":52700781,"uuid":"210795565","full_name":"himkt/chainer_util","owner":"himkt","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-20T18:39:08.000Z","size":21,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T05:08:54.987Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/himkt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-25T08:35:19.000Z","updated_at":"2019-09-25T14:07:14.000Z","dependencies_parsed_at":"2022-08-22T07:20:53.168Z","dependency_job_id":null,"html_url":"https://github.com/himkt/chainer_util","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Fchainer_util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Fchainer_util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Fchainer_util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Fchainer_util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/himkt","download_url":"https://codeload.github.com/himkt/chainer_util/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241549089,"owners_count":19980475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T17:49:30.059Z","updated_at":"2026-06-05T18:32:05.831Z","avatar_url":"https://github.com/himkt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chainer Util\n\n## Retrieve the best epoch from a log\n\n```python\nfrom chainer_util import retrieve_best_epoch\n\n\n# `output_dir` is a directory chainer.training.Trainer creates\n# Note that Trainer needs to extend chainer.training.logReport\nretrieve_best_epoch({\"metric\": \"validation/main/loss\"}, output_dir)\n# -\u003e (24, 0.04) (just an example)\nretrieve_best_epoch({\"metric\": \"validation/main/fscore\"}, output_dir)\n# -\u003e (32, 0.87)\n```\n\n\n## Fix random state\n\n```python\nfrom chainer_util import set_seed\n\n\nset_seed(42)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimkt%2Fchainer_util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhimkt%2Fchainer_util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimkt%2Fchainer_util/lists"}