{ "info": { "author": "CyberZHG", "author_email": "CyberZHG@users.noreply.github.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6" ], "description": "# Keras Lookahead\n\n[![Travis](https://travis-ci.org/CyberZHG/keras-lookahead.svg)](https://travis-ci.org/CyberZHG/keras-lookahead)\n[![Coverage](https://coveralls.io/repos/github/CyberZHG/keras-lookahead/badge.svg?branch=master)](https://coveralls.io/github/CyberZHG/keras-lookahead)\n[![Version](https://img.shields.io/pypi/v/keras-lookahead.svg)](https://pypi.org/project/keras-lookahead/)\n![Downloads](https://img.shields.io/pypi/dm/keras-lookahead.svg)\n![License](https://img.shields.io/pypi/l/keras-lookahead.svg)\n\n![](https://img.shields.io/badge/keras-tensorflow-blue.svg)\n![](https://img.shields.io/badge/keras-theano-blue.svg)\n![](https://img.shields.io/badge/keras-tf.keras-blue.svg)\n![](https://img.shields.io/badge/keras-tf.keras/eager-blue.svg)\n![](https://img.shields.io/badge/keras-tf.keras/2.0_beta-blue.svg)\n\n\\[[\u4e2d\u6587](https://github.com/CyberZHG/keras-lookahead/blob/master/README.zh-CN.md)|[English](https://github.com/CyberZHG/keras-lookahead/blob/master/README.md)\\]\n\nUnofficial implementation of the [lookahead mechanism](https://arxiv.org/pdf/1907.08610v1.pdf) for optimizers.\n\n## Install\n\n```bash\npip install keras-lookahead\n```\n\n## External Links\n\n- [tensorflow/addons:LookAhead](https://github.com/tensorflow/addons/blob/master/tensorflow_addons/optimizers/lookahead.py)\n\n## Usage\n\nArguments:\n\n* `optimizer`: Original optimizer.\n* `sync_period`: the `k` in the paper. The synchronization period.\n* `slow_step`: the `\u03b1` in the paper. The step size of slow weights.\n\n```python\nfrom keras_lookahead import Lookahead\n\noptimizer = Lookahead('adam', sync_period=5, slow_step=0.5)\n```\n\nCustom optimizers can also be used:\n\n```python\nfrom keras_radam import RAdam\nfrom keras_lookahead import Lookahead\n\noptimizer = Lookahead(RAdam())\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/CyberZHG/keras-lookahead", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "keras-lookahead", "package_url": "https://pypi.org/project/keras-lookahead/", "platform": "", "project_url": "https://pypi.org/project/keras-lookahead/", "project_urls": { "Homepage": "https://github.com/CyberZHG/keras-lookahead" }, "release_url": "https://pypi.org/project/keras-lookahead/0.9.0/", "requires_dist": null, "requires_python": "", "summary": "Lookahead mechanism for optimizers in Keras", "version": "0.9.0" }, "last_serial": 5873775, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "141cebd1c0a4b0032391ec5d86684bca", "sha256": "09563fcb1666a7964111b81d2a9e2fe8babb2dee562cf013882158897f93f7ce" }, "downloads": -1, "filename": "keras-lookahead-0.1.0.tar.gz", "has_sig": false, "md5_digest": "141cebd1c0a4b0032391ec5d86684bca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3895, "upload_time": "2019-09-11T13:26:49", "url": "https://files.pythonhosted.org/packages/37/76/f217ddfe0b120fa82acaafa038b2c15c092a8b2e4646eaefc44cdd0961d8/keras-lookahead-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "849dca02bc9dd0164b7e15919a8ddeb8", "sha256": "39b2e51090ba681509ce9161507fc569dd34144704712cfbfc6d00ba20fc9aba" }, "downloads": -1, "filename": "keras-lookahead-0.2.0.tar.gz", "has_sig": false, "md5_digest": "849dca02bc9dd0164b7e15919a8ddeb8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4143, "upload_time": "2019-09-12T03:58:02", "url": "https://files.pythonhosted.org/packages/6e/46/d89bdb7201b1534ae54fb9582c06a0c04820b9ba4f93b7e68f29a37eac1f/keras-lookahead-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "dc2f6942bb368080dd65c40bc6f767cc", "sha256": "f613a90fd67a0fde4ad783982d28941d76ce61b600dc11fb6514d5de7f61f52a" }, "downloads": -1, "filename": "keras-lookahead-0.3.0.tar.gz", "has_sig": false, "md5_digest": "dc2f6942bb368080dd65c40bc6f767cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4289, "upload_time": "2019-09-12T08:42:29", "url": "https://files.pythonhosted.org/packages/f9/6d/5b607ad6341aa70ff5593df63ec683bc01902254cb6add183692aa7e5971/keras-lookahead-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "214455adb8d259915c6c6e4dbedd18b3", "sha256": "37ef521d4c77816ed83ab35bc222d7840662edd17daa474459dba98431ca9aae" }, "downloads": -1, "filename": "keras-lookahead-0.4.0.tar.gz", "has_sig": false, "md5_digest": "214455adb8d259915c6c6e4dbedd18b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4292, "upload_time": "2019-09-13T01:42:43", "url": "https://files.pythonhosted.org/packages/b6/42/3bf88839547d30758e908444b80d5d081e6279bb9931db2f2d098ce606af/keras-lookahead-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "cf07c87778c9e0a013d8f7b7ebf6debe", "sha256": "3b11d9cf8ada09d153532724e9c7ca182a972bb40811d420a54bfcab408aa8fa" }, "downloads": -1, "filename": "keras-lookahead-0.5.0.tar.gz", "has_sig": false, "md5_digest": "cf07c87778c9e0a013d8f7b7ebf6debe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4838, "upload_time": "2019-09-13T02:41:47", "url": "https://files.pythonhosted.org/packages/11/38/eaaa568b815116f60a1cf4c0d45c8b85c4efccc116c7d175f0f25df82c87/keras-lookahead-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "ab8de8532590957250e543c4241f7213", "sha256": "51215d5e503ee18f331a0f11f288967f339ca8dedf43e7fde59dc8f87e129993" }, "downloads": -1, "filename": "keras-lookahead-0.6.0.tar.gz", "has_sig": false, "md5_digest": "ab8de8532590957250e543c4241f7213", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5055, "upload_time": "2019-09-23T07:48:16", "url": "https://files.pythonhosted.org/packages/17/ee/675f6bcb4bc3051f94b198665095369d077cc96777ad1926fc97266c0693/keras-lookahead-0.6.0.tar.gz" } ], "0.9.0": [ { "comment_text": "", "digests": { "md5": "a31a35d9b0c48d942d0ddf4ad0ca2dfd", "sha256": "753e7a97e035662e2cda08f6ced646d69b59aaa412176168b8879c17ae035d16" }, "downloads": -1, "filename": "keras-lookahead-0.9.0.tar.gz", "has_sig": false, "md5_digest": "a31a35d9b0c48d942d0ddf4ad0ca2dfd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5301, "upload_time": "2019-09-23T14:00:18", "url": "https://files.pythonhosted.org/packages/dc/02/eef1b468c2b294ac37afc00d3ec21242af9935fdc30c4ce909e8d31d0132/keras-lookahead-0.9.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a31a35d9b0c48d942d0ddf4ad0ca2dfd", "sha256": "753e7a97e035662e2cda08f6ced646d69b59aaa412176168b8879c17ae035d16" }, "downloads": -1, "filename": "keras-lookahead-0.9.0.tar.gz", "has_sig": false, "md5_digest": "a31a35d9b0c48d942d0ddf4ad0ca2dfd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5301, "upload_time": "2019-09-23T14:00:18", "url": "https://files.pythonhosted.org/packages/dc/02/eef1b468c2b294ac37afc00d3ec21242af9935fdc30c4ce909e8d31d0132/keras-lookahead-0.9.0.tar.gz" } ] }