{"id":13935846,"url":"https://github.com/jkoutsikakis/pytorch-wrapper","last_synced_at":"2026-02-04T13:22:04.570Z","repository":{"id":35058744,"uuid":"201753836","full_name":"jkoutsikakis/pytorch-wrapper","owner":"jkoutsikakis","description":"Provides a systematic and extensible way to build, train, evaluate, and tune deep learning models using PyTorch.","archived":false,"fork":false,"pushed_at":"2024-06-17T22:44:06.000Z","size":252,"stargazers_count":94,"open_issues_count":4,"forks_count":18,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-08-20T21:30:28.708Z","etag":null,"topics":["data-science","deep-learning","machine-learning","neural-network","python","pytorch","pytorch-wrapper","tensor"],"latest_commit_sha":null,"homepage":"https://pytorch-wrapper.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jkoutsikakis.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":"2019-08-11T11:06:32.000Z","updated_at":"2025-06-09T23:55:05.000Z","dependencies_parsed_at":"2024-11-27T03:41:44.558Z","dependency_job_id":null,"html_url":"https://github.com/jkoutsikakis/pytorch-wrapper","commit_stats":{"total_commits":28,"total_committers":1,"mean_commits":28.0,"dds":0.0,"last_synced_commit":"57c85161bd6e09961cb7a1e69debc8e3e0bf7d29"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/jkoutsikakis/pytorch-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkoutsikakis%2Fpytorch-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkoutsikakis%2Fpytorch-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkoutsikakis%2Fpytorch-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkoutsikakis%2Fpytorch-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jkoutsikakis","download_url":"https://codeload.github.com/jkoutsikakis/pytorch-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkoutsikakis%2Fpytorch-wrapper/sbom","scorecard":{"id":522597,"data":{"date":"2025-08-11","repo":{"name":"github.com/jkoutsikakis/pytorch-wrapper","commit":"57c85161bd6e09961cb7a1e69debc8e3e0bf7d29"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/17 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: GHSA-6p56-wp2h-9hxr","Warn: Project is vulnerable to: PYSEC-2019-108 / GHSA-9fq2-x9r6-wfmf","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2020-107 / GHSA-jjw5-xxj6-pcv5","Warn: Project is vulnerable to: PYSEC-2024-110 / GHSA-jw8x-6495-233v","Warn: Project is vulnerable to: PYSEC-2020-108","Warn: Project is vulnerable to: GHSA-g7vv-2v7x-gj9p"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T03:26:41.166Z","repository_id":35058744,"created_at":"2025-08-20T03:26:41.166Z","updated_at":"2025-08-20T03:26:41.166Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29085074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T03:31:03.593Z","status":"ssl_error","status_checked_at":"2026-02-04T03:29:50.742Z","response_time":62,"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":["data-science","deep-learning","machine-learning","neural-network","python","pytorch","pytorch-wrapper","tensor"],"created_at":"2024-08-07T23:02:08.508Z","updated_at":"2026-02-04T13:22:04.534Z","avatar_url":"https://github.com/jkoutsikakis.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# PyTorch Wrapper\n\n![Logo](logo.png)\n\nPyTorch Wrapper is a library that provides a systematic and extensible way to build, train, evaluate, and tune deep learning models\nusing PyTorch. It also provides several ready to use modules and functions for fast model development.\n\n| Branch | Build | Coverage |\n| :---: | :---: | :---: |\n| Master | [![Build Status](https://travis-ci.com/jkoutsikakis/pytorch-wrapper.svg?branch=master)](https://travis-ci.com/jkoutsikakis/pytorch-wrapper) | [![Coverage Status](https://coveralls.io/repos/github/jkoutsikakis/pytorch-wrapper/badge.svg?branch=develop)](https://coveralls.io/github/jkoutsikakis/pytorch-wrapper?branch=master) |\n| Develop | [![Build Status](https://travis-ci.com/jkoutsikakis/pytorch-wrapper.svg?branch=develop)](https://travis-ci.com/jkoutsikakis/pytorch-wrapper)| [![Coverage Status](https://coveralls.io/repos/github/jkoutsikakis/pytorch-wrapper/badge.svg?branch=develop)](https://coveralls.io/github/jkoutsikakis/pytorch-wrapper?branch=develop) |\n\n\n## Installation\n\n### From PyPI\n```bash\npip install pytorch-wrapper\n```\n\n### From Source\n\n```bash\ngit clone https://github.com/jkoutsikakis/pytorch-wrapper.git\ncd pytorch-wrapper\npip install .\n```\n\n## Basic abstract usage pattern\n\n```python\nimport torch\nimport pytorch_wrapper as pw\n\ntrain_dataloader = ...\nval_dataloader = ...\ndev_dataloader = ...\n\nevaluators = { 'acc': pw.evaluators.AccuracyEvaluator(), ... }\nloss_wrapper = pw.loss_wrappers.GenericPointWiseLossWrapper(torch.nn.BCEWithLogitsLoss())\n\nmodel = ...\n\nsystem = pw.System(model=model, device=torch.device('cuda'))\n\noptimizer = torch.optim.Adam(system.model.parameters())\n\nsystem.train(\n    loss_wrapper,\n    optimizer,\n    train_data_loader=train_dataloader,\n    evaluators=evaluators,\n    evaluation_data_loaders={'val': val_dataloader},\n    callbacks=[\n        pw.training_callbacks.EarlyStoppingCriterionCallback(\n            patience=3,\n            evaluation_data_loader_key='val',\n            evaluator_key='acc',\n            tmp_best_state_filepath='current_best.weights'\n        )\n    ]\n)\n\nresults = system.evaluate(dev_dataloader, evaluators)\n\npredictions = system.predict(dev_dataloader)\n\nsystem.save_model_state('model.weights')\nsystem.load_model_state('model.weights')\n\n```\n\n## Docs \u0026 Examples\n\nThe docs can be found [here](https://pytorch-wrapper.readthedocs.io/en/latest/).\n\nThere are also the following examples in notebook format:\n\n1. [Two Spiral Task](examples/1_two_spiral_task.ipynb)\n2. [Image Classification Task](examples/2_image_classification_task.ipynb)\n3. [Tuning Image Classifier](examples/3_tuning_image_classifier.ipynb)\n4. [Text Classification Task](examples/4_text_classification_task.ipynb)\n5. [Token Classification Task](examples/5_token_classification_task.ipynb)\n6. [Text Classification Task using BERT](examples/6_text_classification_task_using_bert.ipynb)\n7. [Custom Callback](examples/7_custom_callback.ipynb)\n8. [Custom Loss Wrapper](examples/8_custom_loss_wrapper.ipynb)\n9. [Custom Evaluator](examples/9_custom_evaluator.ipynb)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkoutsikakis%2Fpytorch-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjkoutsikakis%2Fpytorch-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkoutsikakis%2Fpytorch-wrapper/lists"}