{"id":18786505,"url":"https://github.com/tetsuok/kernel-pa","last_synced_at":"2025-08-20T00:15:23.615Z","repository":{"id":11271279,"uuid":"13676973","full_name":"tetsuok/kernel-pa","owner":"tetsuok","description":"An implementation of kernelized passive-aggressive algorithm (PA-I)","archived":false,"fork":false,"pushed_at":"2016-05-23T02:43:01.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-14T19:48:26.915Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tetsuok.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}},"created_at":"2013-10-18T12:03:46.000Z","updated_at":"2017-03-30T12:47:09.000Z","dependencies_parsed_at":"2022-09-19T09:11:40.109Z","dependency_job_id":null,"html_url":"https://github.com/tetsuok/kernel-pa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tetsuok/kernel-pa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetsuok%2Fkernel-pa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetsuok%2Fkernel-pa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetsuok%2Fkernel-pa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetsuok%2Fkernel-pa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tetsuok","download_url":"https://codeload.github.com/tetsuok/kernel-pa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetsuok%2Fkernel-pa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271242217,"owners_count":24724995,"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-08-19T02:00:09.176Z","response_time":63,"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-07T20:51:45.808Z","updated_at":"2025-08-20T00:15:23.531Z","avatar_url":"https://github.com/tetsuok.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"kernel-pa\n=========\n\nAn implementation of kernelized passive-aggressive algorithm (PA-I) [1] for \nbinary classification. This tool is created particularly for natural language \nprocessing applications.\n\n## Features\n\n- Fast kernel-based training (using the PKI method [2])\n- Practical accuracy with online kernel passive-aggressive algorithm\n- Compact design, written in C++ with STL\n- Support learning with polynomial kernel function.\n\nNote that we do not support shuffling the training data. Users may\nwant to shuffle the data before using this tool.\n\n## Software Requirements\n\n- GNU C++ compiler or Apple's Clang\n\nWe have tested our code on Ubuntu Linux 12.04 (x86_64) and OS X 10.8.5.\n\n## Compilation\n\n    $ make\n\n## Training\n\n    $ ./kernel_pa [-C FLOAT] [-d INT] [-t INT] [-o FILE] train_file\n\nThe data format of the training and test data is the same as [SVMLight](http://svmlight.joachims.org/).\n\n### Options\n\n- -C hyperparameter of passive-aggressive algorithm\n- -d the degree of polynomial kernel function. We support: d = 1, 2, 3, and 4.\n- -t the number of iterations\n- -o model file\n\n## Testing\n\n    $ ./kernel_pa_classify test_file model_file\n\n## References\n\n[1] Koby Crammer, Ofer Dekel, Joseph Keshet, Shai Shalev-Shwartz, and Yoram Singer. Online passive-aggressive algorithms. Journal of Machine Learning Research, 7:551–585.\n\n[2] Taku Kudo and Yuji Matsumoto. Fast methods for kernel-based text analysis. In Proceedings of the 41st Annual Meeting of the Association for Computational Linguistics (ACL). 2003. pages 24-31.\n\n## Acknowledgements\n\nThanks for Daisuke Okanohara. His online learning toolkit, [oll](https://code.google.com/p/oll/) is a good resource to make sure implemented code works fine.\n\n## License\n\nThis code is distributed under the New BSD License. See the file LICENSE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftetsuok%2Fkernel-pa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftetsuok%2Fkernel-pa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftetsuok%2Fkernel-pa/lists"}