{"id":20430620,"url":"https://github.com/jihoonerd/restricted-discriminant-analysis","last_synced_at":"2026-04-22T09:06:38.997Z","repository":{"id":95187944,"uuid":"422026855","full_name":"jihoonerd/restricted-discriminant-analysis","owner":"jihoonerd","description":"RDA implementation compatible with Scikit-learn API","archived":false,"fork":false,"pushed_at":"2021-11-04T00:53:14.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-05T05:43:49.877Z","etag":null,"topics":["discriminant-analysis","rda","scikit-learn"],"latest_commit_sha":null,"homepage":"","language":"Python","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/jihoonerd.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-28T01:31:18.000Z","updated_at":"2021-11-04T00:53:16.000Z","dependencies_parsed_at":"2023-06-12T09:15:35.858Z","dependency_job_id":null,"html_url":"https://github.com/jihoonerd/restricted-discriminant-analysis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jihoonerd/restricted-discriminant-analysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihoonerd%2Frestricted-discriminant-analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihoonerd%2Frestricted-discriminant-analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihoonerd%2Frestricted-discriminant-analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihoonerd%2Frestricted-discriminant-analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jihoonerd","download_url":"https://codeload.github.com/jihoonerd/restricted-discriminant-analysis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihoonerd%2Frestricted-discriminant-analysis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32128714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T08:34:57.708Z","status":"ssl_error","status_checked_at":"2026-04-22T08:34:55.583Z","response_time":58,"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":["discriminant-analysis","rda","scikit-learn"],"created_at":"2024-11-15T08:08:03.681Z","updated_at":"2026-04-22T09:06:38.983Z","avatar_url":"https://github.com/jihoonerd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# restricted-discriminant-analysis\nRDA implementation compatible with Scikit-learn API\n\n## How to use\n\nModel class is inherited from `BaseEstimator` of `scikit-learn`, so you can use the `RDA` model just like the other `scikit-learn`'s esimators:\n\n`RDA` uses macro-f1 score as a score function.\n\n### Model Only\n\n```python\nrda_model = RDA()\nrda_model.fit(X_train, y_train)\npreds = rda_model.predict(X_test)\n```\n\n### With Pipeline\n\n```python\n# Gridsearch CV\nparameters = {'rda__alpha': np.linspace(0, 1.0, 11), 'rda__beta':np.linspace(0, 1.0, 11), 'rda__variance': [0.1, 0.5, 1.0]}\npipeline = Pipeline(\n    steps = [('scaler', StandardScaler()), ('rda', RDA())]\n)\n\nskf = StratifiedKFold(n_splits=3, shuffle=True, random_state=1)\nrda_g_search = GridSearchCV(pipeline, parameters, cv=skf, n_jobs=-1, verbose=1)\nrda_g_search.fit(X.to_numpy(), y.to_numpy())\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjihoonerd%2Frestricted-discriminant-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjihoonerd%2Frestricted-discriminant-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjihoonerd%2Frestricted-discriminant-analysis/lists"}