{"id":16359317,"url":"https://github.com/gaborvecsei/somnium-doctrina","last_synced_at":"2025-12-31T02:30:28.312Z","repository":{"id":84266173,"uuid":"148332569","full_name":"gaborvecsei/Somnium-Doctrina","owner":"gaborvecsei","description":null,"archived":false,"fork":false,"pushed_at":"2018-09-20T10:32:49.000Z","size":9,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-29T17:16:59.102Z","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/gaborvecsei.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-11T14:42:42.000Z","updated_at":"2020-02-13T05:44:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"6779aaec-a6e3-4319-bad2-cf2faccda67d","html_url":"https://github.com/gaborvecsei/Somnium-Doctrina","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/gaborvecsei%2FSomnium-Doctrina","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaborvecsei%2FSomnium-Doctrina/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaborvecsei%2FSomnium-Doctrina/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaborvecsei%2FSomnium-Doctrina/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gaborvecsei","download_url":"https://codeload.github.com/gaborvecsei/Somnium-Doctrina/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239726007,"owners_count":19687085,"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-10-11T02:08:05.257Z","updated_at":"2025-12-31T02:30:28.239Z","avatar_url":"https://github.com/gaborvecsei.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Somnium Doctrina - Learning in Dreams\n\nIn this repo we will try to teach an abstract representation of the world (we referr to this as the *dream*) to our agent and then\ntry to make it learn inside the dream.\n\n## Grund integration and minimal documentation\n\nThe environment, which we are trying to learn is Match from grund.\n\nTo access it, grund has to be installed:\n\n```\npip3 install https://github.com/csxeba/grund\n```\n\nA minimally configured Match environment can be set up and used to produce random states and rewards:\n\n```python\nimport cv2\nfrom grund.match import MatchConfig, Match\n\ncfg = MatchConfig(\n    canvas_size=[240, 180],\n    players_per_side=3\n)\n\nenv = Match(cfg)\n\nfor states, rewards in (env.random_state(batch_size=32) for _ in range(10)):\n    for state, reward in zip(states, rewards):\n        cv2.imshow(\"States\", state)\n        cv2.waitKey(100)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaborvecsei%2Fsomnium-doctrina","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaborvecsei%2Fsomnium-doctrina","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaborvecsei%2Fsomnium-doctrina/lists"}