{"id":15064031,"url":"https://github.com/392781/scikit-ntk","last_synced_at":"2025-09-26T14:23:13.941Z","repository":{"id":55064234,"uuid":"505207653","full_name":"392781/scikit-ntk","owner":"392781","description":"Neural Tangent Kernel (NTK) module for the scikit-learn library","archived":false,"fork":false,"pushed_at":"2024-10-07T23:21:15.000Z","size":63,"stargazers_count":25,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-17T16:36:22.772Z","etag":null,"topics":["kernel-methods","machine-learning","neural-tangent-kernel","ntk","scikit","scikit-learn"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/scikit-ntk/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/392781.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-06-19T20:02:54.000Z","updated_at":"2025-03-24T19:01:42.000Z","dependencies_parsed_at":"2024-09-29T09:20:59.795Z","dependency_job_id":"1eaa681c-7077-4262-a935-6b8228c85f90","html_url":"https://github.com/392781/scikit-ntk","commit_stats":{"total_commits":66,"total_committers":3,"mean_commits":22.0,"dds":"0.12121212121212122","last_synced_commit":"c7c202ed56ef893af3d5a87d13ddece3bda73fc4"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/392781/scikit-ntk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/392781%2Fscikit-ntk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/392781%2Fscikit-ntk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/392781%2Fscikit-ntk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/392781%2Fscikit-ntk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/392781","download_url":"https://codeload.github.com/392781/scikit-ntk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/392781%2Fscikit-ntk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276229736,"owners_count":25606950,"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","status":"online","status_checked_at":"2025-09-21T02:00:07.055Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["kernel-methods","machine-learning","neural-tangent-kernel","ntk","scikit","scikit-learn"],"created_at":"2024-09-25T00:10:35.553Z","updated_at":"2025-09-26T14:23:13.922Z","avatar_url":"https://github.com/392781.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Neural Tangent Kernel for `scikit-learn` Gaussian Processes\n\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/392781/scikit-ntk/CI.yml?branch=master\u0026label=Lint%2C%20Build%2C%20Install%2C%20Test\u0026style=flat-square) ![PyPI](https://img.shields.io/pypi/v/scikit-ntk?style=flat-square) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/scikit-ntk?style=flat-square) ![PyPI - Downloads](https://img.shields.io/pypi/dm/scikit-ntk?style=flat-square) [![Bibtex citation](https://img.shields.io/badge/bibtex-citation-lightgrey?style=flat-square)](#citation)\n\n**scikit-ntk** is implementation of the neural tangent kernel (NTK) for the `scikit-learn` machine learning library as part of \"An Empirical Analysis of the Laplace and Neural Tangent Kernels\" master's thesis (found at [http://hdl.handle.net/20.500.12680/d504rr81v](http://hdl.handle.net/20.500.12680/d504rr81v) and [https://arxiv.org/abs/2208.03761](https://arxiv.org/abs/2208.03761)).  This library is meant to directly integrate with [`sklearn.gaussian_process`](https://scikit-learn.org/stable/modules/classes.html#module-sklearn.gaussian_process) module.  This implementation of the NTK can be used in combination with other kernels to train and predict with Gaussian process regressors and classifiers. \n\n## Installation\n\n### Dependencies\n\nscikit-ntk requires:\n* Python (\u003e=3.8)\n* scikit-learn (\u003e=1.0.1)\n\n\n### User installation\nIn terminal using `pip` run:\n\n```bash\npip install scikit-ntk\n```\n\n### Usage\nUsage is described in [`examples/usage.py`](https://github.com/392781/scikit-ntk/blob/master/example/usage.py); however, to get started simply import the `NeuralTangentKernel` class:\n\n```py\nfrom skntk import NeuralTangentKernel as NTK\n\nkernel_ntk = NTK(D=3, bias=0.01, bias_bounds=(1e-6, 1e6))\n```\nOnce declared, usage is the same as other `scikit-learn` kernels.\n\n## Building\nPython Poetry (\u003e=1.2) is required if you wish to build `scikit-ntk` from source.  In order to build follow these steps:\n\n1. Clone the repository\n```bash\ngit clone git@github.com:392781/scikit-ntk.git\n```\n2. Enable a Poetry virtual environment\n```bash\npoetry shell\n```\n3. Build and install\n```bash\npoetry build\npoetry install --with dev\n```\n\n## Citation\n\nIf you use scikit-ntk in your scientific work, please use the following citation alongside the scikit-learn citations found at [https://scikit-learn.org/stable/about.html#citing-scikit-learn](https://scikit-learn.org/stable/about.html#citing-scikit-learn):\n\n```\n@mastersthesis{lencevicius2022laplacentk,\n  author  = \"Ronaldas Paulius Lencevicius\",\n  title   = \"An Empirical Analysis of the Laplace and Neural Tangent Kernels\",\n  school  = \"California State Polytechnic University, Pomona\",\n  year    = \"2022\",\n  month   = \"August\",\n  note    = {\\url{http://hdl.handle.net/20.500.12680/d504rr81v}}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F392781%2Fscikit-ntk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F392781%2Fscikit-ntk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F392781%2Fscikit-ntk/lists"}