mewtax


Namemewtax JSON
Version 0.0.1 PyPI version JSON
download
home_pageNone
SummaryDifferentiable minimization in jax using Newton's method.
upload_time2024-06-14 19:52:51
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseMIT License Copyright (c) 2024 Martin F. Schubert Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords jax differentiable optimization metalearning
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Differentiable minimization in jax using Newton's method
`v0.0.1`

This project essentially repackages code from the [implicit layers tutorial](https://implicit-layers-tutorial.org/implicit_functions/) to provide a `minimize_newton` function.

Given a function `fn(params, z)`, it finds the `z_star` which minimizes `fn` for given `params`. Further, the gradient of the solution with respect to `params` can be computed; this is done using a custom vjp rule, as shown in the tutorial.

## Installation

mewtax can be installed via pip:
```
pip install mewtax
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "mewtax",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "Martin Schubert <mfschubert@gmail.com>",
    "keywords": "jax, differentiable optimization, metalearning",
    "author": null,
    "author_email": "Martin Schubert <mfschubert@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/08/49/7d5883333d201caed32d898ef58821f8a2c51c9bbb492ca2b37be855d926/mewtax-0.0.1.tar.gz",
    "platform": null,
    "description": "# Differentiable minimization in jax using Newton's method\n`v0.0.1`\n\nThis project essentially repackages code from the [implicit layers tutorial](https://implicit-layers-tutorial.org/implicit_functions/) to provide a `minimize_newton` function.\n\nGiven a function `fn(params, z)`, it finds the `z_star` which minimizes `fn` for given `params`. Further, the gradient of the solution with respect to `params` can be computed; this is done using a custom vjp rule, as shown in the tutorial.\n\n## Installation\n\nmewtax can be installed via pip:\n```\npip install mewtax\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Martin F. Schubert  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Differentiable minimization in jax using Newton's method.",
    "version": "0.0.1",
    "project_urls": null,
    "split_keywords": [
        "jax",
        " differentiable optimization",
        " metalearning"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8ae4d745634168cd43df9bdea7269c91d7edae67cd0752dda8d2c4281981a144",
                "md5": "7ad4de87043586981a1a608b2873decc",
                "sha256": "2c42d16d257137d06c4f5a02dd3b144c18cd53f2cc5592fa5c2b2e069a3004fe"
            },
            "downloads": -1,
            "filename": "mewtax-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7ad4de87043586981a1a608b2873decc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 5490,
            "upload_time": "2024-06-14T19:52:49",
            "upload_time_iso_8601": "2024-06-14T19:52:49.873454Z",
            "url": "https://files.pythonhosted.org/packages/8a/e4/d745634168cd43df9bdea7269c91d7edae67cd0752dda8d2c4281981a144/mewtax-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "08497d5883333d201caed32d898ef58821f8a2c51c9bbb492ca2b37be855d926",
                "md5": "92ddd43669d2d1b34fb0b973fef576fb",
                "sha256": "601d9acb23b979403ce1a954cdff20fa485dc99434f8e0d2560eac5de8cff396"
            },
            "downloads": -1,
            "filename": "mewtax-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "92ddd43669d2d1b34fb0b973fef576fb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 6678,
            "upload_time": "2024-06-14T19:52:51",
            "upload_time_iso_8601": "2024-06-14T19:52:51.350526Z",
            "url": "https://files.pythonhosted.org/packages/08/49/7d5883333d201caed32d898ef58821f8a2c51c9bbb492ca2b37be855d926/mewtax-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-14 19:52:51",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "mewtax"
}
        
Elapsed time: 0.30852s