{"id":25328434,"url":"https://github.com/f3fe-hash/cpp-ai-library","last_synced_at":"2025-04-08T02:49:43.553Z","repository":{"id":277166657,"uuid":"931546254","full_name":"f3fe-hash/Cpp-AI-library","owner":"f3fe-hash","description":"A C++ library for machine learning library","archived":false,"fork":false,"pushed_at":"2025-03-21T09:26:24.000Z","size":91,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T02:49:38.440Z","etag":null,"topics":["ai","cmake","cpp","math"],"latest_commit_sha":null,"homepage":"","language":"C++","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/f3fe-hash.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-12T13:13:02.000Z","updated_at":"2025-03-21T09:26:27.000Z","dependencies_parsed_at":"2025-02-12T17:45:42.688Z","dependency_job_id":"6fe8ea7b-9c75-49cb-a717-bdafdebc1a69","html_url":"https://github.com/f3fe-hash/Cpp-AI-library","commit_stats":null,"previous_names":["f3fe-hash/c-ai-library","f3fe-hash/cpp-ai-library"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3fe-hash%2FCpp-AI-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3fe-hash%2FCpp-AI-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3fe-hash%2FCpp-AI-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3fe-hash%2FCpp-AI-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f3fe-hash","download_url":"https://codeload.github.com/f3fe-hash/Cpp-AI-library/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247767253,"owners_count":20992541,"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":["ai","cmake","cpp","math"],"created_at":"2025-02-14T02:33:15.532Z","updated_at":"2025-04-08T02:49:43.548Z","avatar_url":"https://github.com/f3fe-hash.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"C++ AI Library\n\nThis library help create simple AIs with many different activations, and train them.\n\n| Supported activations               |\n|-------------------------------------|\n| tanh        (Hyperbolic tangent)    |\n| relu        (Rectified linear unit) |\n| sigmoid                             |\n| fsigmoid    (Fast sigmoid)          |\n\nFor this test, I am using the XOR dataset (down below) and a intel i3-12th generation processor, with the example.cpp file. The lower the score the better (the score is really just the error of the network)\n| Rounds        | Speed (seconds)                | Score      |\n|---------------|--------------------------------|------------|\n| 10            | 02.73728741                    | 0.15859183 |\n| 20            | 06.48548568                    | 0.11744884 |\n| 50            | 16.08952836                    | 0.15907739 |\n| 100           | 34.42355963                    | 0.16801754 |\n\n*Sometimes, the AI does worse when it is trained longer, othertimes it does worse when trained for shorter periods of time, it depends on the AI structure, settings, dataset, and how the networks are initialized.\n\nXOR dataset:\n\n| Input A | Input B | Output |\n|---------|---------|--------|\n| 0       | 0       | 0      |\n| 0       | 1       | 1      |\n| 1       | 0       | 1      |\n| 1       | 1       | 0      |\n\nInstallation\n------------\n\nTo install library, just run the install.sh script on Linux/Mac OS (Sorry Windows users, the library currently doesn't support easy installation, such as a install.sh file, you will have to cmake and install the files yourselves), and it will compile the file and install it on to your system, so when you use it, just add -lAI as a compiler flag.\n\ng++ example.cpp -o example -lAI\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff3fe-hash%2Fcpp-ai-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff3fe-hash%2Fcpp-ai-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff3fe-hash%2Fcpp-ai-library/lists"}