rhino-health


Namerhino-health JSON
Version 1.0.6 PyPI version JSON
download
home_page
SummaryStandard Development Kit for interacting with the Rhino Health Federated Learning Platform
upload_time2024-03-15 12:21:03
maintainer
docs_urlNone
author
requires_python>=3.8
license
keywords sdk rhino rhino health federated learning federated ai
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Rhino Health SDK

Programmatic interface for interacting with the **Rhino Health** Federated Learning Platform.

## Example Usage
Please see the sample notebook files provided to you by the Rhino Health Team for additional use cases.

### Create a session

```python
import rhino_health

my_username = "rhino_user@rhinohealth.com" # Replace me
my_password = "ASecurePasswordYouSet321" # Replace me
session = rhino_health.login(username=my_username, password=my_password)
```

There will be three ways to interact with the API after you have a session
1. Use defined endpoints under lib/endpoints for single actions
2. Use our library functions for commonly performed advanced features
3. Use our low level API Interface (advanced users)

### Interact with the API via defined endpoints

We've included convenience functions for our most commonly used endpoints in the library with required input and output
data classes. These can be found in `rhino_health/lib/endpoints`.

```python
my_projects = session.project.get_projects()
my_first_project = my_projects[0]
my_first_project.add_collaborator(collaborating_workgroup_uid)

my_dataset = session.dataset.get_dataset(my_dataset_uid)
dataset_project = my_dataset.project
my_dataset_info = my_dataset.dataset_info
```

### Library Functions

RhinoHealth also provides library functions which combine our basic building blocks to perform common actions.

Example:
```python
from rhino_health.lib.metrics import RocAucWithCI

metric_configuration = RocAucWithCI(y_true_variable="label", y_pred_variable="pred", confidence_interval=95, timeout_seconds=600)
"""
data_filters=[{
        "filter_column":"is_roc",
        "filter_value":1
    }]
"""
result = my_dataset.get_metric(metric_configuration)
print(f"{result.output}")
```

### Interact using the low level API

Please contact us for support with interacting with our low level API.

### Rate Limits
The Rhino SDK handles rate limits of the API for you if you use the same session between threads and will attempt to queue requests.
Excess requests will be sent with exponential backoff. If you send requests to our server from multiple locations
then you may run into exceptions.

## Development Notes

You may need to use `pip install -r requirements.txt --no-cache-dir` on M1 Macs




            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "rhino-health",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "Rhino Health <rhino-sdk@rhinohealth.com>",
    "keywords": "SDK,Rhino,Rhino Health,Federated Learning,Federated,AI",
    "author": "",
    "author_email": "Rhino Health <rhino-sdk@rhinohealth.com>",
    "download_url": "",
    "platform": null,
    "description": "# Rhino Health SDK\n\nProgrammatic interface for interacting with the **Rhino Health** Federated Learning Platform.\n\n## Example Usage\nPlease see the sample notebook files provided to you by the Rhino Health Team for additional use cases.\n\n### Create a session\n\n```python\nimport rhino_health\n\nmy_username = \"rhino_user@rhinohealth.com\" # Replace me\nmy_password = \"ASecurePasswordYouSet321\" # Replace me\nsession = rhino_health.login(username=my_username, password=my_password)\n```\n\nThere will be three ways to interact with the API after you have a session\n1. Use defined endpoints under lib/endpoints for single actions\n2. Use our library functions for commonly performed advanced features\n3. Use our low level API Interface (advanced users)\n\n### Interact with the API via defined endpoints\n\nWe've included convenience functions for our most commonly used endpoints in the library with required input and output\ndata classes. These can be found in `rhino_health/lib/endpoints`.\n\n```python\nmy_projects = session.project.get_projects()\nmy_first_project = my_projects[0]\nmy_first_project.add_collaborator(collaborating_workgroup_uid)\n\nmy_dataset = session.dataset.get_dataset(my_dataset_uid)\ndataset_project = my_dataset.project\nmy_dataset_info = my_dataset.dataset_info\n```\n\n### Library Functions\n\nRhinoHealth also provides library functions which combine our basic building blocks to perform common actions.\n\nExample:\n```python\nfrom rhino_health.lib.metrics import RocAucWithCI\n\nmetric_configuration = RocAucWithCI(y_true_variable=\"label\", y_pred_variable=\"pred\", confidence_interval=95, timeout_seconds=600)\n\"\"\"\ndata_filters=[{\n        \"filter_column\":\"is_roc\",\n        \"filter_value\":1\n    }]\n\"\"\"\nresult = my_dataset.get_metric(metric_configuration)\nprint(f\"{result.output}\")\n```\n\n### Interact using the low level API\n\nPlease contact us for support with interacting with our low level API.\n\n### Rate Limits\nThe Rhino SDK handles rate limits of the API for you if you use the same session between threads and will attempt to queue requests.\nExcess requests will be sent with exponential backoff. If you send requests to our server from multiple locations\nthen you may run into exceptions.\n\n## Development Notes\n\nYou may need to use `pip install -r requirements.txt --no-cache-dir` on M1 Macs\n\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Standard Development Kit for interacting with the Rhino Health Federated Learning Platform",
    "version": "1.0.6",
    "project_urls": {
        "Documentation": "https://rhinohealth.github.io/rhino_sdk_docs/html/autoapi/index.html",
        "Homepage": "https://www.rhinohealth.com/"
    },
    "split_keywords": [
        "sdk",
        "rhino",
        "rhino health",
        "federated learning",
        "federated",
        "ai"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d4ac0bf3be942468f4539270f4335f8738a8b8e3285ee1676c9b2cc5c82b1b1c",
                "md5": "6e5c4da4ed9f051aef56181277c3ff8a",
                "sha256": "e134519dbf444f360f61fb1fee213925445603f87f5e8e4f76248ca6cf3a0f4b"
            },
            "downloads": -1,
            "filename": "rhino_health-1.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6e5c4da4ed9f051aef56181277c3ff8a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 93468,
            "upload_time": "2024-03-15T12:21:03",
            "upload_time_iso_8601": "2024-03-15T12:21:03.887054Z",
            "url": "https://files.pythonhosted.org/packages/d4/ac/0bf3be942468f4539270f4335f8738a8b8e3285ee1676c9b2cc5c82b1b1c/rhino_health-1.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-15 12:21:03",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "rhino-health"
}
        
Elapsed time: 0.21576s