{"id":15686480,"url":"https://github.com/code-hex/algorithm-naivebayes-randomforest","last_synced_at":"2025-09-01T03:05:16.980Z","repository":{"id":71652905,"uuid":"68225831","full_name":"Code-Hex/Algorithm-NaiveBayes-RandomForest","owner":"Code-Hex","description":"RandomForest with Algorithm::NaiveBayes in perl","archived":false,"fork":false,"pushed_at":"2016-09-15T07:06:01.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T13:20:04.760Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Code-Hex.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","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}},"created_at":"2016-09-14T17:00:43.000Z","updated_at":"2018-01-21T09:50:40.000Z","dependencies_parsed_at":"2023-04-26T19:47:30.646Z","dependency_job_id":null,"html_url":"https://github.com/Code-Hex/Algorithm-NaiveBayes-RandomForest","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"3dc4beadaeba8c22347c729d2a204140a906a571"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2FAlgorithm-NaiveBayes-RandomForest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2FAlgorithm-NaiveBayes-RandomForest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2FAlgorithm-NaiveBayes-RandomForest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2FAlgorithm-NaiveBayes-RandomForest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Code-Hex","download_url":"https://codeload.github.com/Code-Hex/Algorithm-NaiveBayes-RandomForest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246310495,"owners_count":20756946,"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-03T17:40:25.828Z","updated_at":"2025-03-30T11:26:42.075Z","avatar_url":"https://github.com/Code-Hex.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nAlgorithm::NaiveBayes::RandomForest - RandomForest using Algorithm::NaiveBayes\n\n# SYNOPSIS\n\n    use Algorithm::NaiveBayes::RandomForest;\n\n    # 'max_processes' assignment child processes.\n    # This number is used as the number of trees.\n    my $nb = Algorithm::NaiveBayes::RandomForest-\u003enew(purge =\u003e 0, max_processes =\u003e 4);\n    \n    # If you have 'save_file', you can use this method\n    # my $nb = Algorithm::NaiveBayes::RandomForest-\u003enew-\u003erestore_state('save_file'); \n\n    $nb-\u003eadd_instance(\n        attributes =\u003e {\n            Like =\u003e 0.875,\n            Nice =\u003e 0.322,\n            Thanks   =\u003e 0.3234\n        },\n        label =\u003e 'positive',\n    );\n    $nb-\u003eadd_instance(\n        attributes =\u003e {\n            Unlike =\u003e 0.583,\n            Bad =\u003e 0.294\n        },\n        label =\u003e 'negative',\n    );\n\n    $nb-\u003etrain;\n\n    use Data::Dumper;\n    say Dumper $nb-\u003epredict(\n        attributes =\u003e {\n            Unlike =\u003e 0.332,\n            Like   =\u003e 0.553,\n            Nice   =\u003e 0.872\n        }\n    );\n\n# DESCRIPTION\n\nAlgorithm::NaiveBayes::RandomForest is inheritance by [Algorithm::NaiveBayes](https://metacpan.org/pod/Algorithm::NaiveBayes).  \nSo, you can use same method as Algorithm::NaiveBayes.\n\n# SEE ALSO\n\n[Algorithm::NaiveBayes](https://metacpan.org/pod/Algorithm::NaiveBayes)\n\n# LICENSE\n\nCopyright (C) Kei Kamikawa(Code-Hex).\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n\n# AUTHOR\n\nKei Kamikawa \u003cx00.x7f@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-hex%2Falgorithm-naivebayes-randomforest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-hex%2Falgorithm-naivebayes-randomforest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-hex%2Falgorithm-naivebayes-randomforest/lists"}