{"id":26707470,"url":"https://github.com/ceholden/pysmoothspl","last_synced_at":"2026-04-25T16:33:42.396Z","repository":{"id":68741904,"uuid":"93456536","full_name":"ceholden/pysmoothspl","owner":"ceholden","description":"Python wrapper around R's lovely `smooth.spline`","archived":false,"fork":false,"pushed_at":"2017-10-20T13:41:24.000Z","size":724,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T06:33:06.309Z","etag":null,"topics":["cython-wrapper","python","r","scikit-learn-api","splines"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ceholden.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":"2017-06-05T23:41:14.000Z","updated_at":"2019-08-09T12:52:00.000Z","dependencies_parsed_at":"2023-03-04T01:45:15.352Z","dependency_job_id":null,"html_url":"https://github.com/ceholden/pysmoothspl","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ceholden/pysmoothspl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceholden%2Fpysmoothspl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceholden%2Fpysmoothspl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceholden%2Fpysmoothspl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceholden%2Fpysmoothspl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ceholden","download_url":"https://codeload.github.com/ceholden/pysmoothspl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceholden%2Fpysmoothspl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32269459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cython-wrapper","python","r","scikit-learn-api","splines"],"created_at":"2025-03-27T06:29:20.052Z","updated_at":"2026-04-25T16:33:42.389Z","avatar_url":"https://github.com/ceholden.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pysmoothspl\nPython wrapper around R's lovely `smooth.spline`\n\n## Example\n\n``` python\nimport matplotlib.pyplot as plt\nimport numpy as np\nfrom pysmoothspl import SmoothSpline\n\nn = 1000\nx = np.arange(n).astype(np.float)\ny = 100 + 50 * np.sin(2 * np.pi * x / 365.0) + np.random.normal(0, 25, n)\n\nspl = SmoothSpline(spar=0.2).fit(x, y)\nyhat = spl.predict(x)\nspl_smoother = SmoothSpline(spar=0.5).fit(x, y)\nyhat_smoother = spl_smoother.predict(x)\n\nfig, ax = plt.subplots(1, figsize=(16, 9))\nax.plot(x, y, 'ro', label='Points')\nax.plot(x, yhat, 'g-', label='Less smooth')\nax.plot(x, yhat_smoother, 'b-', label='Smoother')\nax.legend()\nfig.show()\n```\n![Example](./docs/media/example_splines.png)\n\n## Install\n\nYou will need `Cython` (unless/until this repo includes the `*.c` files) and\n`numpy`.\n\n### Anaconda\n\nThere are two Conda `environment.yaml` files to help guide the installation:\n\n1. `environment.yaml` contains just the needed packages for installation\n2. `tests/environment.yaml` contains the packages needed to install and test\n   this package\n\n## Tests\n\nThis package uses `py.test` to run tests, and you will also need `pandas`:\n\n``` bash\npy.test tests/\n```\n\nIf `rpy2` is installed, the tests will actually calculate the expected values\nof calculations using the copy of R it is installed against. For users without\n`rpy2`, the test data also contains \"cached\" answers calculated using R code.\n\n## TODO\n\n* [x] Object oriented sklearn-esque estimator\n* [ ] For function inputs: typed memory views \u003e NumPy buffers\n* [ ] Kill the GIL\n* [ ] CI service tests\n    * [ ] Code coverage checks with CI\n* [x] Check output against literal R output via rpy2\n* [ ] Implement more features\n    * [ ] Cross validation\n    * [ ] Derivatives (hint: check `bvalue` code for commented out)\n* [ ] Work back from fresh copy of R code...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceholden%2Fpysmoothspl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceholden%2Fpysmoothspl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceholden%2Fpysmoothspl/lists"}