{"id":13655959,"url":"https://github.com/fukuball/fuku-ml","last_synced_at":"2025-10-05T13:14:41.140Z","repository":{"id":3489882,"uuid":"49729482","full_name":"fukuball/fuku-ml","owner":"fukuball","description":"Simple machine learning library / 簡單易用的機器學習套件","archived":false,"fork":false,"pushed_at":"2025-08-07T10:29:26.000Z","size":3626,"stargazers_count":282,"open_issues_count":14,"forks_count":73,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-09-25T12:20:21.786Z","etag":null,"topics":["classification","decision-trees","linear-regression","logistic-regression","machine-learning","neural-network","perceptron","regression","support-vector-machines","svm"],"latest_commit_sha":null,"homepage":"https://github.com/fukuball/FukuML-Tutorial","language":"Python","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/fukuball.png","metadata":{"files":{"readme":"README.rst","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":"2016-01-15T16:05:53.000Z","updated_at":"2025-09-18T03:46:57.000Z","dependencies_parsed_at":"2022-09-19T07:00:27.066Z","dependency_job_id":null,"html_url":"https://github.com/fukuball/fuku-ml","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/fukuball/fuku-ml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fukuball%2Ffuku-ml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fukuball%2Ffuku-ml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fukuball%2Ffuku-ml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fukuball%2Ffuku-ml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fukuball","download_url":"https://codeload.github.com/fukuball/fuku-ml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fukuball%2Ffuku-ml/sbom","scorecard":{"id":413388,"data":{"date":"2025-08-11","repo":{"name":"github.com/fukuball/fuku-ml","commit":"d628a3cbd254b79142ae533a523f070dcd605d90"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"name":"Maintained","score":5,"reason":"7 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/24 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-870 / GHSA-8rh6-h94m-vj54","Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: GHSA-6p56-wp2h-9hxr","Warn: Project is vulnerable to: PYSEC-2019-108 / GHSA-9fq2-x9r6-wfmf","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2017-1 / GHSA-frgw-fgh6-9g52","Warn: Project is vulnerable to: PYSEC-2020-107 / GHSA-jjw5-xxj6-pcv5","Warn: Project is vulnerable to: PYSEC-2024-110 / GHSA-jw8x-6495-233v","Warn: Project is vulnerable to: PYSEC-2020-108","Warn: Project is vulnerable to: PYSEC-2023-102","Warn: Project is vulnerable to: PYSEC-2023-114"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T23:14:30.172Z","repository_id":3489882,"created_at":"2025-08-18T23:14:30.172Z","updated_at":"2025-08-18T23:14:30.172Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278459376,"owners_count":25990337,"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-05T02:00:06.059Z","response_time":54,"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":["classification","decision-trees","linear-regression","logistic-regression","machine-learning","neural-network","perceptron","regression","support-vector-machines","svm"],"created_at":"2024-08-02T04:00:43.353Z","updated_at":"2025-10-05T13:14:41.134Z","avatar_url":"https://github.com/fukuball.png","language":"Python","funding_links":[],"categories":["Python","Uncategorized"],"sub_categories":["General-Purpose Machine Learning","Uncategorized"],"readme":"`FukuML`_\n=========\n.. _FukuML: http://www.fukuball.com/fuku-ml/\n\n.. image:: https://travis-ci.org/fukuball/fuku-ml.svg?branch=master\n    :target: https://travis-ci.org/fukuball/fuku-ml\n\n.. image:: https://codecov.io/github/fukuball/fuku-ml/coverage.svg?branch=master\n    :target: https://codecov.io/github/fukuball/fuku-ml?branch=master\n\n.. image:: https://badge.fury.io/py/FukuML.svg\n    :target: https://badge.fury.io/py/FukuML\n\n.. image:: https://api.codacy.com/project/badge/grade/afc87eff27ab47d6b960ea7b3088c469\n    :target: https://www.codacy.com/app/fukuball/fuku-ml\n\n.. image:: https://img.shields.io/badge/made%20with-%e2%9d%a4-ff69b4.svg\n    :target: http://www.fukuball.com\n\nSimple machine learning library / 簡單易用的機器學習套件\n\nInstallation\n============\n\n.. code-block:: bash\n\n    $ pip install FukuML\n\nTutorial\n============\n\n- Lesson 1: `Perceptron Binary Classification Learning Algorithm`_\n\n- Appendix 1: `Play With Your Own Dataset`_\n\n- Appendix 2: `iNDIEVOX Open Data/API 智慧音樂應用：An Introduce to iNDIEVOX Open Data/API and the intelligent music application`_\n\n.. _Perceptron Binary Classification Learning Algorithm: https://github.com/fukuball/FukuML-Tutorial/blob/master/Perceptron%20Binary%20Classification%20Learning%20Algorithm%20Tutorial.ipynb\n\n.. _Play With Your Own Dataset: https://github.com/fukuball/FukuML-Tutorial/blob/master/Play%20With%20Your%20Own%20Dataset%20Tutorial.ipynb\n\n.. _iNDIEVOX Open Data/API 智慧音樂應用：An Introduce to iNDIEVOX Open Data/API and the intelligent music application: https://speakerdeck.com/fukuball/api-and-the-intelligent-music-application\n\nAlgorithm\n============\n\n- Perceptron\n    - Perceptron Binary Classification Learning Algorithm\n    - Perceptron Multi Classification Learning Algorithm\n    - Pocket Perceptron Binary Classification Learning Algorithm\n    - Pocket Perceptron Multi Classification Learning Algorithm\n- Regression\n    - Linear Regression Learning Algorithm\n    - Linear Regression Binary Classification Learning Algorithm\n    - Linear Regression Multi Classification Learning Algorithm\n    - Ridge Regression Learning Algorithm\n    - Ridge Regression Binary Classification Learning Algorithm\n    - Ridge Regression Multi Classification Learning Algorithm\n    - Kernel Ridge Regression Learning Algorithm\n    - Kernel Ridge Regression Binary Classification Learning Algorithm\n    - Kernel Ridge Regression Multi Classification Learning Algorithm\n- Logistic Regression\n    - Logistic Regression Learning Algorithm\n    - Logistic Regression Binary Classification Learning Algorithm\n    - Logistic Regression One vs All Multi Classification Learning Algorithm\n    - Logistic Regression One vs One Multi Classification Learning Algorithm\n    - L2 Regularized Logistic Regression Learning Algorithm\n    - L2 Regularized Logistic Regression Binary Classification Learning Algorithm\n    - Kernel Logistic Regression Learning Algorithm\n- Support Vector Machine\n    - Primal Hard Margin Support Vector Machine Binary Classification Learning Algorithm\n    - Dual Hard Margin Support Vector Machine Binary Classification Learning Algorithm\n    - Polynomial Kernel Support Vector Machine Binary Classification Learning Algorithm\n    - Gaussian Kernel Support Vector Machine Binary Classification Learning Algorithm\n    - Soft Polynomial Kernel Support Vector Machine Binary Classification Learning Algorithm\n    - Soft Gaussian Kernel Support Vector Machine Binary Classification Learning Algorithm\n    - Polynomial Kernel Support Vector Machine Multi Classification Learning Algorithm\n    - Gaussian Kernel Support Vector Machine Multi Classification Learning Algorithm\n    - Soft Polynomial Kernel Support Vector Machine Multi Classification Learning Algorithm\n    - Soft Gaussian Kernel Support Vector Machine Multi Classification Learning Algorithm\n    - Probabilistic Support Vector Machine Learning Algorithm\n    - Least Squares Support Vector Machine Binary Classification Learning Algorithm\n    - Least Squares Support Vector Machine Multi Classification Learning Algorithm\n    - Support Vector Regression Learning Algorithm\n- Decision Tree\n    - Decision Stump Binary Classification Learning Algorithm\n    - AdaBoost Stump Binary Classification Learning Algorithm\n    - AdaBoost Decision Tree Classification Learning Algorithm\n    - Gradient Boost Decision Tree Regression Learning Algorithm\n    - Decision Tree Classification Learning Algorithm\n    - Decision Tree Regression Learning Algorithm\n    - Random Forest Classification Learning Algorithm\n    - Random Forest Regression Learning Algorithm\n- Neural Network\n    - Neural Network Learning Algorithm\n    - Neural Network Binary Classification Learning Algorithm\n- Accelerator\n    - Linear Regression Accelerator\n- Feature Transform\n    - Polynomial Feature Transform\n    - Legendre Feature Transform\n- Validation\n    - 10 Fold Cross Validation\n- Blending\n    - Uniform Blending for Classification\n    - Linear Blending for Classification\n    - Uniform Blending for Regression\n    - Linear Blending for Regression\n\nUsage\n============\n\n.. code-block:: py\n\n    \u003e\u003e\u003e import numpy as np\n    # we need numpy as a base libray\n\n    \u003e\u003e\u003e import FukuML.PLA as pla\n    # import FukuML.PLA to do Perceptron Learning\n\n    \u003e\u003e\u003e your_input_data_file = '/path/to/your/data/file'\n    # assign your input data file, please check the data format: https://github.com/fukuball/fuku-ml/blob/master/FukuML/dataset/pla_binary_train.dat\n\n    \u003e\u003e\u003e pla_bc = pla.BinaryClassifier()\n    # new a PLA binary classifier\n\n    \u003e\u003e\u003e pla_bc.load_train_data(your_input_data_file)\n    # load train data\n\n    \u003e\u003e\u003e pla_bc.set_param()\n    # set parameter\n\n    \u003e\u003e\u003e pla_bc.init_W()\n    # init the W\n\n    \u003e\u003e\u003e W = pla_bc.train()\n    # train by Perceptron Learning Algorithm to find best W\n\n    \u003e\u003e\u003e test_data = 'Each feature of data x separated with spaces. And the ground truth y put in the end of line separated by a space'\n    # assign test data, format like this '0.97681 0.10723 0.64385 ........ 0.29556 1'\n\n    \u003e\u003e\u003e prediction = pla_bc.prediction(test_data)\n    # prediction by trained W\n\n    \u003e\u003e\u003e print prediction['input_data_x']\n    # print test data x\n\n    \u003e\u003e\u003e print prediction['input_data_y']\n    # print test data y\n\n    \u003e\u003e\u003e print prediction['prediction']\n    # print the prediction, will find out prediction is the same as pla_bc.test_data_y\n\nFor detail, please check https://github.com/fukuball/fuku-ml/blob/master/doc/sample_code.rst\n\nTests\n=========\n\n.. code-block:: shell\n\n   # Run comprehensive test suite\n   python test_fuku_ml.py\n   \n   # Run individual algorithm tests\n   python tests/test_pla_binary_classifier.py\n   python tests/test_linear_regression.py\n\nCode Style\n==========\n\n.. code-block:: shell\n\n   python -m pycodestyle FukuML/*.py --ignore=E501\n\nDonate\n=========\n\nIf you find fuku-ml useful, please consider a donation. Thank you!\n\n- bitcoin: 1BbihQU3CzSdyLSP9bvQq7Pi1z1jTdAaq9\n- eth: 0x92DA3F837bf2F79D422bb8CEAC632208F94cdE33\n\n\nLicense\n=========\nThe MIT License (MIT)\n\nCopyright (c) 2016 fukuball\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffukuball%2Ffuku-ml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffukuball%2Ffuku-ml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffukuball%2Ffuku-ml/lists"}