{"id":13655948,"url":"https://github.com/simpleai-team/simpleai","last_synced_at":"2025-04-23T17:30:42.305Z","repository":{"id":4068162,"uuid":"5172439","full_name":"simpleai-team/simpleai","owner":"simpleai-team","description":"simple artificial intelligence utilities","archived":false,"fork":false,"pushed_at":"2023-11-06T02:52:07.000Z","size":3328,"stargazers_count":968,"open_issues_count":13,"forks_count":250,"subscribers_count":106,"default_branch":"master","last_synced_at":"2024-11-06T12:08:11.289Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/simpleai-team.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2012-07-24T23:12:50.000Z","updated_at":"2024-10-20T19:10:23.000Z","dependencies_parsed_at":"2024-01-06T13:08:43.298Z","dependency_job_id":"a1abd01b-986a-4d47-a0e8-d9abfb087d7f","html_url":"https://github.com/simpleai-team/simpleai","commit_stats":{"total_commits":605,"total_committers":16,"mean_commits":37.8125,"dds":"0.19504132231404958","last_synced_commit":"cf59ead2b8733e680178614384b3cc6d458ad143"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleai-team%2Fsimpleai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleai-team%2Fsimpleai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleai-team%2Fsimpleai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleai-team%2Fsimpleai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simpleai-team","download_url":"https://codeload.github.com/simpleai-team/simpleai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223931590,"owners_count":17227256,"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-08-02T04:00:42.625Z","updated_at":"2024-11-10T08:30:41.910Z","avatar_url":"https://github.com/simpleai-team.png","language":"Python","funding_links":[],"categories":["Python","Uncategorized"],"sub_categories":["General-Purpose Machine Learning","Uncategorized"],"readme":"Simple AI\n=========\n\nProject home: http://github.com/simpleai-team/simpleai\n\nThis lib implements many of the artificial intelligence algorithms described on the book \"Artificial Intelligence, a Modern Approach\", from Stuart Russel and Peter Norvig. We strongly recommend you to read the book, or at least the introductory chapters and the ones related to the components you want to use, because we won't explain the algorithms here.\n\nThis implementation takes some of the ideas from the Norvig's implementation (the `aima-python \u003chttps://code.google.com/p/aima-python/\u003e`_ lib), but it's made with a more \"pythonic\" approach, and more emphasis on creating a stable, modern, and maintainable version. We are testing the majority of the lib, it's available via pip install, has a standard repo and lib architecture, well documented, respects the python pep8 guidelines, provides only working code (no placeholders for future things), etc. Even the internal code is written with readability in mind, not only the external API.\n\nAt this moment, the implementation includes:\n\n* Search\n    * Traditional search algorithms (not informed and informed)\n    * Local Search algorithms\n    * Constraint Satisfaction Problems algorithms\n    * Interactive execution viewers for search algorithms (web-based and terminal-based)\n* Machine Learning\n    * Statistical Classification \n\n\nInstallation\n============\n\nJust get it:\n\n.. code-block::\n\n    pip install simpleai\n\n\nAnd if you want to use the interactive search viewers, also install:\n\n.. code-block::\n\n    pip install pydot flask\n\n\nYou will need to have pip installed on your system. On linux install the \npython-pip package, on windows follow `this \u003chttp://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows\u003e`_.\nAlso, if you are on linux and not working with a virtualenv, remember to use\n``sudo`` for both commands (``sudo pip install ...``).\n\n\nExamples\n========\n\nSimple AI allows you to define problems and look for the solution with\ndifferent strategies. Another samples are in the ``samples`` directory, but\nhere is an easy one.\n\nThis problem tries to create the string \"HELLO WORLD\" using the A* algorithm:\n\n.. code-block:: python\n\n\n    from simpleai.search import SearchProblem, astar\n\n    GOAL = 'HELLO WORLD'\n\n\n    class HelloProblem(SearchProblem):\n        def actions(self, state):\n            if len(state) \u003c len(GOAL):\n                return list(' ABCDEFGHIJKLMNOPQRSTUVWXYZ')\n            else:\n                return []\n\n        def result(self, state, action):\n            return state + action\n\n        def is_goal(self, state):\n            return state == GOAL\n\n        def heuristic(self, state):\n            # how far are we from the goal?\n            wrong = sum([1 if state[i] != GOAL[i] else 0\n                        for i in range(len(state))])\n            missing = len(GOAL) - len(state)\n            return wrong + missing\n\n    problem = HelloProblem(initial_state='')\n    result = astar(problem)\n\n    print(result.state)\n    print(result.path())\n\n\nMore detailed documentation\n===========================\n\nYou can read the docs online `here \u003chttp://simpleai.readthedocs.org/en/latest/\u003e`_. Or for offline access, you can clone the project code repository and read them from the ``docs`` folder.\n\n\nHelp and discussion\n===================\n\nJoin us at the Simple AI `google group \u003chttp://groups.google.com/group/simpleai\u003e`_.\n\n    \nAuthors\n=======\n\n* Many people you can find on the `contributors section \u003chttps://github.com/simpleai-team/simpleai/graphs/contributors\u003e`_.\n* Special acknowledgements to `Machinalis \u003chttp://www.machinalis.com/\u003e`_ for the time provided to work on this project. Machinalis also works on some other very interesting projects, like `Quepy \u003chttp://quepy.machinalis.com/\u003e`_ and `more \u003chttps://github.com/machinalis\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpleai-team%2Fsimpleai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimpleai-team%2Fsimpleai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpleai-team%2Fsimpleai/lists"}