{"id":26694751,"url":"https://github.com/nhey/lm","last_synced_at":"2025-10-17T09:50:01.442Z","repository":{"id":160981452,"uuid":"366665468","full_name":"nhey/lm","owner":"nhey","description":"Fit linear models in Futhark with a robustness towards ill-conditioned problems. Output is very close to that of lm in the R language","archived":false,"fork":false,"pushed_at":"2021-05-26T06:55:47.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T18:56:39.290Z","etag":null,"topics":["fortran","futhark","gpu","r","sequential"],"latest_commit_sha":null,"homepage":"","language":"Futhark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nhey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-05-12T09:40:48.000Z","updated_at":"2021-05-26T06:55:38.000Z","dependencies_parsed_at":"2023-09-25T00:40:47.708Z","dependency_job_id":null,"html_url":"https://github.com/nhey/lm","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.33333333333333337","last_synced_commit":"b0a4b4e2b21aa7d93adc0ce66bda43bd986dfe32"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/nhey/lm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhey%2Flm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhey%2Flm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhey%2Flm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhey%2Flm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nhey","download_url":"https://codeload.github.com/nhey/lm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhey%2Flm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279320240,"owners_count":26147667,"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-10-17T02:00:07.504Z","response_time":56,"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":["fortran","futhark","gpu","r","sequential"],"created_at":"2025-03-26T18:47:44.180Z","updated_at":"2025-10-17T09:50:01.375Z","avatar_url":"https://github.com/nhey.png","language":"Futhark","funding_links":[],"categories":[],"sub_categories":[],"readme":"Fit linear models in Futhark with a robustness towards ill-conditioned problems.\nModel parameters are estimated by solving the linear least squares\nequations based on a pivoting QR-decomposition.\nIt is well suited for small, numerically unstable problems.\n\nThis package seeks to match the output of `lm` in the R language.\nTherefore, the QR-decomposition and parts of the least squares solver\nis a 1:1 translation of sequential FORTRAN routines from the famous\nLINPACK library (see `linpack.fut`).\n\nThe QR-decomposition is _rank revealing_, meaning we obtain the rank\nof the regressor matrix, `X`. The rank is used to ensure a meaningful\nfit: if the problem is ill-conditioned so that (at least for numerical\nwork) the regressor matrix is rank deficient, parameters will\nbe dropped accordingly until this is no longer the case.\nIt should be possible to extend this to also output the condition number of `X`,\nor at least an estimate of this---untested sample code can be found in `lm.fut`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhey%2Flm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnhey%2Flm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhey%2Flm/lists"}