{"id":18290786,"url":"https://github.com/unit8co/few-labels-webinar","last_synced_at":"2025-10-07T00:47:09.867Z","repository":{"id":48876834,"uuid":"379188589","full_name":"unit8co/few-labels-webinar","owner":"unit8co","description":"Demo for learning with few labels webinar","archived":false,"fork":false,"pushed_at":"2021-07-07T18:08:02.000Z","size":49,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-09T07:32:41.488Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/unit8co.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":"2021-06-22T07:59:39.000Z","updated_at":"2023-09-28T11:50:18.000Z","dependencies_parsed_at":"2022-09-01T17:02:23.970Z","dependency_job_id":null,"html_url":"https://github.com/unit8co/few-labels-webinar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/unit8co/few-labels-webinar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unit8co%2Ffew-labels-webinar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unit8co%2Ffew-labels-webinar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unit8co%2Ffew-labels-webinar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unit8co%2Ffew-labels-webinar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unit8co","download_url":"https://codeload.github.com/unit8co/few-labels-webinar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unit8co%2Ffew-labels-webinar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278703583,"owners_count":26031205,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-05T14:12:13.863Z","updated_at":"2025-10-07T00:47:09.836Z","avatar_url":"https://github.com/unit8co.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo: learning with few labeled data and many unlabeled\nDemo for learning with few labels webinar.\nThe idea is inspired from (but not the same) \n[Graph Agreement Models](https://proceedings.neurips.cc/paper/2019/file/4772c1b987f1f6d8c9d4ef0f3b764f7a-Paper.pdf).\n\n\n# How to run this\nGet elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/current/install-elasticsearch.html\nRun elasticsearch in a separate terminal. If you have mem issues run it like (for example with 1G mem):\n```\nES_JAVA_OPTS=\"-Xms1g -Xmx1g\" ./bin/elasticsearch\n```\n\nInstall requirements:\n```\npython3.8 -m venv venv\nsource venv/bin/activate\npip install -r requirements\n```\n\nTo train MLM:\n```\npython -m src.train_agree_add_loop --only_mlm 1\n```\n\nTo train on top default base model:\n```\npython -m src.train_agree_add_loop\n```\n\nTo train on top of your trained MLM:\n```\npython -m src.train_agree_add_loop --base_model_name models/nlu_evaluation_data/mlm/epoch_SOMENUMBER\n```\n\nTo run with fasttext as classifier for computing the baseline:\n```\npython -m src.train_agree_add_loop --use_fasttext 1\n```\n\n# Info\nFormatted with black!\n```\npip install black\nblack -l 80 -t py38 src/*\n```\n\nContributions from:\n* Mostafa Ajallooeian, mostafa.ajallooeian@unit8.co\n\nLicense: have fun and share!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funit8co%2Ffew-labels-webinar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funit8co%2Ffew-labels-webinar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funit8co%2Ffew-labels-webinar/lists"}