{ "info": { "author": "Edan Meyer", "author_email": "ejmejm98@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Ludus\n\nLudus is a reinforcement learning library for expediating development of RL applications and research. Ludus is still in an alpha development stage, so new algorithms and models are continuously being added with the growth of the framework. You can find many state-of-the-art algorithms implemented and ready to use. Additionly, the platform has ready to go integration with popular training environments like OpenAI's [gym](https://gym.openai.com/). The high level API of Ludus combined with easily accesible and well documented, open source code allows for both efficiency and control.\n\n## Getting Started\n\nThese instructions will help you quickly get Ludus up and running, ready for RL application. Ludus is built on Python 3, and there is no gaurantee it will work with Python 2.\n\n### Prerequisites\n\nLudus requires several libraries to get started. Anaconda 3 is recommended as it contains most of the required libraries, as well as many related libraries that may be useful. Nearly all prerequisites are installed when doing the standard pip installation as described below. The exeption is Tensorflow. While __GPU enabled Tensorflow is strongly recommended__ over the CPU version, it is not required. You can find a guide to installing GPU enabled Tensorflow [here](https://www.tensorflow.org/install/gpu), and CPU Tensorflow [here](https://www.tensorflow.org/install).\n\n### Installing\n\nThe recommended method of installation is with the command, `pip install ludus`.\n\nAlternatively, the package can be installed by cloning the repository and running, `pip setup.py install` in the root directory of the project.\n\n## Your First Ludus Agent\n\nTo get started, the [vpg_cartpole example](https://github.com/ejmejm/ludus/blob/master/examples/vpg_cartpole.ipynb) steps through the creation and training process for a simple agent. It is recommended that you use the notebook as an initial testing ground, and a template for other agents.\n\nIn Ludus, the process of creating an intelligent agent can be divided into 3 major steps. Performing the 1st step, and then repeating steps 2 and 3 in a training loop is the typical program flow:\n1. __Creating input networks__\nDepending on the type of trainer you wish to use to train your agent, a variety of different input neural networks may be required. The simplest form of this in Vanilla Policy Gradient (VPG / `VPGTrainer`), which requires only one network that maps observations to actions. Other, more complex methods like Proximal Policy Optimization (PPO / `PPOTrainer`) require two networks, one choosing actions and another estimating state values. If you are not familiar with these concepts, It is recommended that you thoroughly looking through the examples, as they are consice and easy to work with.\n\n2. __Environment simulation & data gathering__\nAn `EnvController` instance is created and used to gather data from the environment. By adujsting the `n_threads` argument to an integer greater than 1, you can run multiple environments in parallel. The `sim_episodes` function is used to simualte the environment and gather data. Because Ludus handles environment simulation and data collection for you, custom environments can easily be integrated into the environment so long as they conform to a specific format (more on this [here](#using-a-custom-game-environment)). Once data has been gathered through an instance of `EnvController`, retrieving the data can be done with a `get_data()` call to the instance.\n\n3. __Training__\n Training one epoch on the data is as simple as calling `network.train(ec.get_data())`, where network is an instance of a child of `BaseTrainer` (like `VPGTrainer`), and `ec` is an instance of `EnvController`. After a `get_data()` call, the training data memory buffer will be reset, unless otherwise in the function parameters.\n\n## Using a Custom Game Environemnt\n\nWhile this feature is supported and easy to implement, the documentation is not yet complete. For the time being, it is recommended that you examine OpenAI's [gym](https://gym.openai.com/). Creating an environment with the same `reset`, `step`, and initialization functions (the same input arguments and return values) will work with the Ludus framework.\n\n## Built With\n\n- [numpy](https://github.com/numpy/numpy) - Efficient mathematical operations\n- [opencv2](https://github.com/opencv/opencv) - Image manipulation in 2D environments\n- [Tensorflow](https://github.com/tensorflow/tensorflow) - Creating and training neural networks\n- [gym](https://gym.openai.com/) - Envronments for training agents\n\n## Documentation\n\nFurther, more in depth documentation is in the works, although not ready quite.\n\n## Authors\n- __Edan Meyer__ ([ejmejm](https://github.com/ejmejm)) is currently the lead and only developer for the project.\n\n## License\n\nThis project is licensed under the MIT License. Please see the attached license file for more details.\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ejmejm/ludus", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "ludus", "package_url": "https://pypi.org/project/ludus/", "platform": "", "project_url": "https://pypi.org/project/ludus/", "project_urls": { "Homepage": "https://github.com/ejmejm/ludus" }, "release_url": "https://pypi.org/project/ludus/0.1a3/", "requires_dist": [ "gym", "opencv-python", "gym[atari] ; extra == 'atari'", "tensorflow (>=1.10) ; extra == 'tf'", "tensorflow-gpu (>=1.10) ; extra == 'tf-gpu'" ], "requires_python": "", "summary": "Reinforcement learning library to expediate application and research", "version": "0.1a3" }, "last_serial": 4999905, "releases": { "0.1a1": [ { "comment_text": "", "digests": { "md5": "4cdf06da703de6dad3fd584cccce55f0", "sha256": "43b565e09a2819727914a1f0f32098ccc591f1d2613938f2bf666debb575ab60" }, "downloads": -1, "filename": "ludus-0.1a1-py3-none-any.whl", "has_sig": false, "md5_digest": "4cdf06da703de6dad3fd584cccce55f0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4036, "upload_time": "2019-02-26T23:51:07", "url": "https://files.pythonhosted.org/packages/98/8a/8612e83fdb950c6d6d2afde910178db88431af252b3df9eda5960a916f6f/ludus-0.1a1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cf72d44de651131e3a4e21d2e45cc67f", "sha256": "463e1ba9f8ee40d83b57ce1e2e64d1c47fa8657e24c8d71aa5ba8905a7165171" }, "downloads": -1, "filename": "ludus-0.1a1.tar.gz", "has_sig": false, "md5_digest": "cf72d44de651131e3a4e21d2e45cc67f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3306, "upload_time": "2019-02-26T23:51:09", "url": "https://files.pythonhosted.org/packages/48/db/f5cd6c8a6d97729072661c6e061710296f650194208f7ef279d882ff2866/ludus-0.1a1.tar.gz" } ], "0.1a2": [ { "comment_text": "", "digests": { "md5": "136870ee457bdb7e37169155e4c0a20e", "sha256": "6b19db2b1ffb7160017118f0cf44ecc6360bbf6fc00de1ea8f3a808271a56dad" }, "downloads": -1, "filename": "ludus-0.1a2-py3-none-any.whl", "has_sig": false, "md5_digest": "136870ee457bdb7e37169155e4c0a20e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12997, "upload_time": "2019-03-28T17:44:12", "url": "https://files.pythonhosted.org/packages/e0/97/050faff3809135e9ac2b24cde5acfd7be3df4cf397605c2b9f0517656ab6/ludus-0.1a2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "805b50c3e15ed5c6e8e0a059ea61e1ae", "sha256": "a7a511c44c5ca377f6288921ed4bd203849f29d8ce5ce9a15381d08a7a062817" }, "downloads": -1, "filename": "ludus-0.1a2.tar.gz", "has_sig": false, "md5_digest": "805b50c3e15ed5c6e8e0a059ea61e1ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12937, "upload_time": "2019-03-28T17:44:14", "url": "https://files.pythonhosted.org/packages/f8/99/633e01d7d7913a52e680093eae7b9b8a416defc2cc9ff71ae91d0fd8d18f/ludus-0.1a2.tar.gz" } ], "0.1a3": [ { "comment_text": "", "digests": { "md5": "6e2b5a9b6b4294be65660418022875f7", "sha256": "18118a489cc4361bfab481243e15819cb1a0506d7fcd5ff8daf870d92668764d" }, "downloads": -1, "filename": "ludus-0.1a3-py3-none-any.whl", "has_sig": false, "md5_digest": "6e2b5a9b6b4294be65660418022875f7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13287, "upload_time": "2019-03-28T19:53:23", "url": "https://files.pythonhosted.org/packages/9a/9d/2a5daaf0f32458a623fa37ee8aef44212839d17c1d33d2e5e2858e015daf/ludus-0.1a3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ea9a3b86d8694045fcfab7293e5cdd18", "sha256": "a65421b4e0bf8a6154247af10d7a6cbc21bdf4067817e6ed4261ba54efa96e0d" }, "downloads": -1, "filename": "ludus-0.1a3.tar.gz", "has_sig": false, "md5_digest": "ea9a3b86d8694045fcfab7293e5cdd18", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11054, "upload_time": "2019-03-28T19:53:24", "url": "https://files.pythonhosted.org/packages/2d/91/4b3715840198190ab3865cb69ea76f57ca152c95f129a241b223b40ba82f/ludus-0.1a3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6e2b5a9b6b4294be65660418022875f7", "sha256": "18118a489cc4361bfab481243e15819cb1a0506d7fcd5ff8daf870d92668764d" }, "downloads": -1, "filename": "ludus-0.1a3-py3-none-any.whl", "has_sig": false, "md5_digest": "6e2b5a9b6b4294be65660418022875f7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13287, "upload_time": "2019-03-28T19:53:23", "url": "https://files.pythonhosted.org/packages/9a/9d/2a5daaf0f32458a623fa37ee8aef44212839d17c1d33d2e5e2858e015daf/ludus-0.1a3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ea9a3b86d8694045fcfab7293e5cdd18", "sha256": "a65421b4e0bf8a6154247af10d7a6cbc21bdf4067817e6ed4261ba54efa96e0d" }, "downloads": -1, "filename": "ludus-0.1a3.tar.gz", "has_sig": false, "md5_digest": "ea9a3b86d8694045fcfab7293e5cdd18", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11054, "upload_time": "2019-03-28T19:53:24", "url": "https://files.pythonhosted.org/packages/2d/91/4b3715840198190ab3865cb69ea76f57ca152c95f129a241b223b40ba82f/ludus-0.1a3.tar.gz" } ] }