{"id":34086928,"url":"https://github.com/mgjho/xrfit","last_synced_at":"2026-04-07T11:32:07.958Z","repository":{"id":274855438,"uuid":"924280870","full_name":"mgjho/xrfit","owner":"mgjho","description":"Model Based Fitting on Xarray","archived":false,"fork":false,"pushed_at":"2026-04-06T19:32:24.000Z","size":290,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-06T21:23:03.987Z","etag":null,"topics":["fitting","regression","regression-analysis"],"latest_commit_sha":null,"homepage":"","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/mgjho.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-29T18:19:10.000Z","updated_at":"2025-03-17T04:51:01.000Z","dependencies_parsed_at":"2025-01-29T19:32:59.252Z","dependency_job_id":"d401f5f9-b9d2-4478-91e3-863301fc48a1","html_url":"https://github.com/mgjho/xrfit","commit_stats":null,"previous_names":["mgjho/xfit","mgjho/xrfit"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/mgjho/xrfit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgjho%2Fxrfit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgjho%2Fxrfit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgjho%2Fxrfit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgjho%2Fxrfit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgjho","download_url":"https://codeload.github.com/mgjho/xrfit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgjho%2Fxrfit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31511595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["fitting","regression","regression-analysis"],"created_at":"2025-12-14T13:34:53.536Z","updated_at":"2026-04-07T11:32:07.952Z","avatar_url":"https://github.com/mgjho.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xrfit\n\n[![Supported Python Versions](https://img.shields.io/pypi/pyversions/xrfit?logo=python\u0026logoColor=white)](https://pypi.org/project/xrfit/)\n[![PyPi](https://img.shields.io/pypi/v/xrfit?logo=pypi\u0026logoColor=white)](https://pypi.org/project/xrfit/)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/mgjho/xrfit/main.svg)](https://results.pre-commit.ci/latest/github/mgjho/xrfit/main)\n[![Codecov Coverage](https://img.shields.io/codecov/c/github/mgjho/xrfit?logo=codecov\u0026logoColor=white)](https://codecov.io/gh/mgjho/xrfit)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n\n## Overview 🎯\n\n[*xrfit*](https://github.com/mgjho/xrfit) provides Model-based, Multidimensional regression/analysis methods. By Integrating,\n\n1. [*xarray*](https://xarray.pydata.org/) to handle multivariate data by utilizing coordinate-aware structure of DataArray.\n\n2. [*lmfit*](https://lmfit.github.io/lmfit-py/) to deal complex regression problems using the composite-model based approach.\n\n## Features ✨\n1. __Model based regression__\n    ```python\n    model = Model_1() + Model_2()\n    guess = data.fit.guess(model=model)\n    result = data.fit(model=model, params=guess)\n    ```\n2. __Parameter handling__ (e.g. Sorting and Smoothing parameters)\n    ```python\n    sorted_result = result.params.sort(\"params_name\")\n    smoothened_result = sorted_result.params.smoothen(\"params_name\")\n    new_result = data.fit(model=model, params=smoothened_result.parmams)\n    ```\n3. __Interactive visualization__\n    ```python\n    result.display()\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgjho%2Fxrfit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgjho%2Fxrfit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgjho%2Fxrfit/lists"}