gesund


Namegesund JSON
Version 0.1.4 PyPI version JSON
download
home_pageNone
SummaryA CRO platform for clinical-grade AI Train. Validate. Secure clearance. Gesund.ai orchestrates the AI as-a-Medical Device lifecycle, providing privacy-centered access to diverse yet standardized medical data sources, and a unique analytical toolbox that fosters clinical validation, regulatory clearance and effective marketing
upload_time2024-12-05 11:38:40
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6
licenseNone
keywords gesund medical radiology machine learning ai artificial intelligence
VCS
bugtrack_url
requirements bson jsonschema scikit-learn pandas seaborn opencv-python dictances miseval numpy numba tqdm pycocotools seaborn pytest pydantic
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">
  <img src="gesund/assets/gesund_logo.png" width="300" alt="Gesund Logo">
</h1><br>

# Validation Metrics Library

[![PyPi](https://img.shields.io/pypi/v/gesund)](https://pypi.org/project/gesund)
[![PyPI Downloads](https://img.shields.io/pypi/dm/gesund.svg?label=PyPI%20downloads)](
https://pypi.org/project/gesund/)




This library provides tools for calculating validation metrics for predictions and annotations in machine learning workflows. It includes a command-line tool for computing and displaying validation metrics.

- **Documentation:**  https://gesund-ai.github.io
- **Source code:** https://github.com/gesund-ai/gesund
- **Bug reports:** https://github.com/gesund-ai/gesund/issues
- **Examples :** https://github.com/gesund-ai/gesund/tree/main/gesund/examples


## Installation

To use this library, ensure you have the necessary dependencies installed in your environment. You can install them via `pip`:

```sh
pip install gesund
```

## Basic Usage

```python

# import the library
from gesund.validation import Validation

# set up the configs
data_dir = "./tests/_data/classification"
plot_config = {
    "classification": {
        "class_distributions": {
            "metrics": ["normal", "pneumonia"],
            "threshold": 10,
        },
        "blind_spot": {"class_type": ["Average", "1", "0"]},
        "performance_by_threshold": {
            "graph_type": "graph_1",
            "metrics": [
                "F1",
                "Sensitivity",
                "Specificity",
                "Precision",
                "FPR",
                "FNR",
            ],
            "threshold": 0.2,
        },
        "roc": {"roc_class": ["normal", "pneumonia"]},
        "precision_recall": {"pr_class": ["normal", "pneumonia"]},
        "confidence_histogram": {"metrics": ["TP", "FP"], "threshold": 0.5},
        "overall_metrics": {"metrics": ["AUC", "Precision"], "threshold": 0.2},
        "confusion_matrix": {},
        "prediction_dataset_distribution": {},
        "most_confused_bar": {},
        "confidence_histogram_scatter_distribution": {},
        "lift_chart": {},
    }
}

# create a class instance
classification_validation = Validation(
    annotations_path=f"{data_dir}/gesund_custom_format/annotation.json",
    predictions_path=f"{data_dir}/gesund_custom_format/prediction.json",
    problem_type="classification",
    class_mapping=f"{data_dir}/test_class_mappings.json",
    data_format="json",
    json_structure_type="gesund",
    metadata_path=f"{data_dir}/test_metadata.json",
    return_dict=True,
    display_plots=False,
    store_plots=False,
    plot_config=plot_config,
    run_validation_only=True
)

# run the validation workflow
results = classification_validation.run()

# explore the results
print(results)

```


## Code of Conduct


We are committed to fostering a welcoming and inclusive community. Please adhere to the following guidelines when contributing to this project:

- **Respect**: Treat everyone with respect and consideration. Harassment or discrimination of any kind is not tolerated.
- **Collaboration**: Be open to collaboration and constructive criticism. Offer feedback gracefully and accept feedback in the same manner.
- **Inclusivity**: Use inclusive language and be mindful of different perspectives and experiences.
- **Professionalism**: Maintain a professional attitude in all project interactions.

By participating in this project, you agree to abide by this Code of Conduct. If you witness or experience any behavior that violates these guidelines, please contact the project maintainers.

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "gesund",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "Hammad Khalid <hammad@gesund.ai>, Akson Varghese <akson@gesund.ai>, Ozkan Uysal <ozkan@gesund.ai>",
    "keywords": "gesund, medical, radiology, machine learning, ai, artificial intelligence",
    "author": null,
    "author_email": "Veysel Koccaman <veysel@gesund.ai>, Hammad Khalid <hammad@gesund.ai>, Akson Varghese <akson@gesund.ai>, Ozkan Uysal <ozkan@gesund.ai>",
    "download_url": "https://files.pythonhosted.org/packages/a6/b6/563f5585c1af1df77db05350e28ad93bf90217892d985d9195f0753a9bc0/gesund-0.1.4.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">\n  <img src=\"gesund/assets/gesund_logo.png\" width=\"300\" alt=\"Gesund Logo\">\n</h1><br>\n\n# Validation Metrics Library\n\n[![PyPi](https://img.shields.io/pypi/v/gesund)](https://pypi.org/project/gesund)\n[![PyPI Downloads](https://img.shields.io/pypi/dm/gesund.svg?label=PyPI%20downloads)](\nhttps://pypi.org/project/gesund/)\n\n\n\n\nThis library provides tools for calculating validation metrics for predictions and annotations in machine learning workflows. It includes a command-line tool for computing and displaying validation metrics.\n\n- **Documentation:**  https://gesund-ai.github.io\n- **Source code:** https://github.com/gesund-ai/gesund\n- **Bug reports:** https://github.com/gesund-ai/gesund/issues\n- **Examples :** https://github.com/gesund-ai/gesund/tree/main/gesund/examples\n\n\n## Installation\n\nTo use this library, ensure you have the necessary dependencies installed in your environment. You can install them via `pip`:\n\n```sh\npip install gesund\n```\n\n## Basic Usage\n\n```python\n\n# import the library\nfrom gesund.validation import Validation\n\n# set up the configs\ndata_dir = \"./tests/_data/classification\"\nplot_config = {\n    \"classification\": {\n        \"class_distributions\": {\n            \"metrics\": [\"normal\", \"pneumonia\"],\n            \"threshold\": 10,\n        },\n        \"blind_spot\": {\"class_type\": [\"Average\", \"1\", \"0\"]},\n        \"performance_by_threshold\": {\n            \"graph_type\": \"graph_1\",\n            \"metrics\": [\n                \"F1\",\n                \"Sensitivity\",\n                \"Specificity\",\n                \"Precision\",\n                \"FPR\",\n                \"FNR\",\n            ],\n            \"threshold\": 0.2,\n        },\n        \"roc\": {\"roc_class\": [\"normal\", \"pneumonia\"]},\n        \"precision_recall\": {\"pr_class\": [\"normal\", \"pneumonia\"]},\n        \"confidence_histogram\": {\"metrics\": [\"TP\", \"FP\"], \"threshold\": 0.5},\n        \"overall_metrics\": {\"metrics\": [\"AUC\", \"Precision\"], \"threshold\": 0.2},\n        \"confusion_matrix\": {},\n        \"prediction_dataset_distribution\": {},\n        \"most_confused_bar\": {},\n        \"confidence_histogram_scatter_distribution\": {},\n        \"lift_chart\": {},\n    }\n}\n\n# create a class instance\nclassification_validation = Validation(\n    annotations_path=f\"{data_dir}/gesund_custom_format/annotation.json\",\n    predictions_path=f\"{data_dir}/gesund_custom_format/prediction.json\",\n    problem_type=\"classification\",\n    class_mapping=f\"{data_dir}/test_class_mappings.json\",\n    data_format=\"json\",\n    json_structure_type=\"gesund\",\n    metadata_path=f\"{data_dir}/test_metadata.json\",\n    return_dict=True,\n    display_plots=False,\n    store_plots=False,\n    plot_config=plot_config,\n    run_validation_only=True\n)\n\n# run the validation workflow\nresults = classification_validation.run()\n\n# explore the results\nprint(results)\n\n```\n\n\n## Code of Conduct\n\n\nWe are committed to fostering a welcoming and inclusive community. Please adhere to the following guidelines when contributing to this project:\n\n- **Respect**: Treat everyone with respect and consideration. Harassment or discrimination of any kind is not tolerated.\n- **Collaboration**: Be open to collaboration and constructive criticism. Offer feedback gracefully and accept feedback in the same manner.\n- **Inclusivity**: Use inclusive language and be mindful of different perspectives and experiences.\n- **Professionalism**: Maintain a professional attitude in all project interactions.\n\nBy participating in this project, you agree to abide by this Code of Conduct. If you witness or experience any behavior that violates these guidelines, please contact the project maintainers.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A CRO platform for clinical-grade AI Train. Validate. Secure clearance. Gesund.ai orchestrates the AI as-a-Medical Device lifecycle, providing privacy-centered access to diverse yet standardized medical data sources, and a unique analytical toolbox that fosters clinical validation, regulatory clearance and effective marketing",
    "version": "0.1.4",
    "project_urls": {
        "Documentation": "https://gesund-ai.github.io/",
        "Homepage": "https://github.com/gesund-ai/gesund",
        "Issues": "https://github.com/gesund-ai/gesund/issues"
    },
    "split_keywords": [
        "gesund",
        " medical",
        " radiology",
        " machine learning",
        " ai",
        " artificial intelligence"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9b66ef23cf627e0d507d47d01a01f00edbbfd897f68579c325aa2fe50f3ac304",
                "md5": "367b85a133c0ffb222119d4a39807792",
                "sha256": "6e3405a2dcb430f25314ff942c06bddb90b06b67eb1a806f03fa3a31a2864893"
            },
            "downloads": -1,
            "filename": "gesund-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "367b85a133c0ffb222119d4a39807792",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 110584,
            "upload_time": "2024-12-05T11:38:39",
            "upload_time_iso_8601": "2024-12-05T11:38:39.934311Z",
            "url": "https://files.pythonhosted.org/packages/9b/66/ef23cf627e0d507d47d01a01f00edbbfd897f68579c325aa2fe50f3ac304/gesund-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a6b6563f5585c1af1df77db05350e28ad93bf90217892d985d9195f0753a9bc0",
                "md5": "dd634f04aaa5a3e7d20455ea82c07172",
                "sha256": "0d7f711fa6c3afba308041a202d18a2f693f734e78f78907e9e828bc6f3c5184"
            },
            "downloads": -1,
            "filename": "gesund-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "dd634f04aaa5a3e7d20455ea82c07172",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 84274,
            "upload_time": "2024-12-05T11:38:40",
            "upload_time_iso_8601": "2024-12-05T11:38:40.980030Z",
            "url": "https://files.pythonhosted.org/packages/a6/b6/563f5585c1af1df77db05350e28ad93bf90217892d985d9195f0753a9bc0/gesund-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-05 11:38:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gesund-ai",
    "github_project": "gesund",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "bson",
            "specs": [
                [
                    "==",
                    "0.5.10"
                ]
            ]
        },
        {
            "name": "jsonschema",
            "specs": [
                [
                    "==",
                    "4.23.0"
                ]
            ]
        },
        {
            "name": "scikit-learn",
            "specs": [
                [
                    "==",
                    "1.3.2"
                ]
            ]
        },
        {
            "name": "pandas",
            "specs": [
                [
                    "==",
                    "2.0.3"
                ]
            ]
        },
        {
            "name": "seaborn",
            "specs": [
                [
                    "==",
                    "0.13.2"
                ]
            ]
        },
        {
            "name": "opencv-python",
            "specs": [
                [
                    "==",
                    "4.10.0.84"
                ]
            ]
        },
        {
            "name": "dictances",
            "specs": [
                [
                    "==",
                    "1.5.3"
                ]
            ]
        },
        {
            "name": "miseval",
            "specs": [
                [
                    "==",
                    "1.2.2"
                ]
            ]
        },
        {
            "name": "numpy",
            "specs": [
                [
                    "==",
                    "1.21.6"
                ]
            ]
        },
        {
            "name": "numba",
            "specs": [
                [
                    "==",
                    "0.55.2"
                ]
            ]
        },
        {
            "name": "tqdm",
            "specs": [
                [
                    "==",
                    "4.66.5"
                ]
            ]
        },
        {
            "name": "pycocotools",
            "specs": []
        },
        {
            "name": "seaborn",
            "specs": [
                [
                    "==",
                    "0.13.2"
                ]
            ]
        },
        {
            "name": "pytest",
            "specs": [
                [
                    "==",
                    "8.3.3"
                ]
            ]
        },
        {
            "name": "pydantic",
            "specs": [
                [
                    "==",
                    "2.9.2"
                ]
            ]
        }
    ],
    "lcname": "gesund"
}
        
Elapsed time: 0.48731s