{"id":29872700,"url":"https://github.com/cair/tsetlinmachinesubjecttaggingpilot","last_synced_at":"2025-07-30T21:42:06.219Z","repository":{"id":302054396,"uuid":"1011093347","full_name":"cair/TsetlinMachineSubjectTaggingPilot","owner":"cair","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-30T09:44:25.000Z","size":23155,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-30T10:41:09.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cair.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-06-30T09:40:21.000Z","updated_at":"2025-06-30T09:44:35.000Z","dependencies_parsed_at":"2025-06-30T10:51:15.332Z","dependency_job_id":null,"html_url":"https://github.com/cair/TsetlinMachineSubjectTaggingPilot","commit_stats":null,"previous_names":["cair/tsetlinmachinesubjecttaggingpilot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cair/TsetlinMachineSubjectTaggingPilot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cair%2FTsetlinMachineSubjectTaggingPilot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cair%2FTsetlinMachineSubjectTaggingPilot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cair%2FTsetlinMachineSubjectTaggingPilot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cair%2FTsetlinMachineSubjectTaggingPilot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cair","download_url":"https://codeload.github.com/cair/TsetlinMachineSubjectTaggingPilot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cair%2FTsetlinMachineSubjectTaggingPilot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267945914,"owners_count":24170223,"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-07-30T02:00:09.044Z","response_time":70,"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":"2025-07-30T21:42:05.522Z","updated_at":"2025-07-30T21:42:06.178Z","avatar_url":"https://github.com/cair.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# v1\n\n## AIMS:\n\n - Test Vanilla TM \n - Test Coalesced TM \n     - without much pre-processing. \n\n- Try only with “Komiteens tilråding”-part of the document.\n\n- Baseline :\n    - ALL the Data\n    - scikit-learn count vectorizer, Max n_grams = 2, binarized\n    - s = 1\n\n### Files:\n\n- v1/code/preprocessing/simple_bag_of_words.py\n\n```Creates present/absent features w.r.t. bag of words. Saves following in processed_data/simple_bag_of_words_features.pkl.gz\n\n{'featurized':converted data, \n'labels':labels as number,\n'idx_:_word': unique words with indices,\n'word_:_idx':reverse word map, \n'labels_:_labelnum':dict mapping of labels to numbers\n'train_test_split':not split into train-test}\n```\n\n- v1/code/preprocessing/countvectorizer_bag_of_words.py\n\n```Creates features w.r.t. CountVectorizer. Saves following in processed_data/countvectorizer_bag_of_words_features.pkl.gz\n\n{'featurized':converted data, \n'labels':labels as number,\n'idx_:_word': unique words with indices,\n'word_:_idx':reverse word map,\n'featurenames_vectorizer': feature names after calling CountVectorizer fit_transform,\n'labels_:_labelnum':dict mapping of labels to numbers\n'train_test_split':index of split for train-test}\n```\n\n- v1/code/vanillaTM.py\n\n```\nsample1 -\u003e [label1, label2]\n\nis converted to:\n\nsample1 -\u003e label1\nsample1 -\u003e label2\n\nFailing with following error:\n\nself.clause_bank[:, :, 0:self.number_of_state_bits_ta - 1] = np.uint32(~0)\nOverflowError: Python integer -1 out of bounds for uint32\n\nPossibly due to all labels not being represented in training data.\n```\n\n- v1/code/coalescedTM.py\n\n```\nFurther hyperparamter tuning required.\n\nCurrent Accuracy at 69.5.\n\n```\nClassification report for class-wise PRF in v1/results/classificationreport_simplebow_coalesced.txt\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcair%2Ftsetlinmachinesubjecttaggingpilot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcair%2Ftsetlinmachinesubjecttaggingpilot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcair%2Ftsetlinmachinesubjecttaggingpilot/lists"}