cloudexplain


Namecloudexplain JSON
Version 0.1.0rc3 PyPI version JSON
download
home_pageNone
SummaryA package for explaining cloud-based solutions provided by cloudexplain GmbH.
upload_time2024-11-16 07:17:46
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT License Copyright (c) 2024 cloudexplain GmbH Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords cloud explain machine learning ai
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ### Cloudexplain

This is the open source cloudexplain package (or what it is going to be). This just uploads your current data to the azure account you are currently logged in via az.

#### Azure
To install this for azure run:
```bash
pip install cloudexplain[azure]
```
In order to run it on azure you must have write rights on the `cloudexplainmodels` storage account on the resource group `cloudexplain` on your subscription and must be logged in via
```bash
az login
```

#### Example Usage

```python
import shap
import sklearn
import cloudexplain

X, y = shap.datasets.adult(n_points=100)
X["adult_id"] = list(range(len(X)))
dtc = sklearn.tree.DecisionTreeClassifier()
dtc.fit(X, y)


with cloudexplain.azure.explain(dtc,
                                X,
                                y,
                                model_version="0.0.1",
                                model_description="This is a new model.",
                                resource_group_name="mycomp-cloudexplain-tf",
                                explanation_name="dummy_name",
                                explanation_env="dev",
                                data_source="shap_adult_dataset",
                                observation_id_column="adult_id") as run:
    print("This is the run uuid", run.run_uuid)
    pred = dtc.predict(X)
```


#### Troubleshooting
When logged in with multiple accounts it can be the case that the permissions are not handled correctly. Signing out of all users
except for the one who has the correct rights helps.
```bash
az logout
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "cloudexplain",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "cloud, explain, machine learning, AI",
    "author": null,
    "author_email": "cloudexplain <info@cloudexplain.eu>",
    "download_url": "https://files.pythonhosted.org/packages/86/61/6bdcd3259929a43a5a6d9bab6d9f4996c8fd692f1fb68aeb0a2151199ad2/cloudexplain-0.1.0rc3.tar.gz",
    "platform": null,
    "description": "### Cloudexplain\n\nThis is the open source cloudexplain package (or what it is going to be). This just uploads your current data to the azure account you are currently logged in via az.\n\n#### Azure\nTo install this for azure run:\n```bash\npip install cloudexplain[azure]\n```\nIn order to run it on azure you must have write rights on the `cloudexplainmodels` storage account on the resource group `cloudexplain` on your subscription and must be logged in via\n```bash\naz login\n```\n\n#### Example Usage\n\n```python\nimport shap\nimport sklearn\nimport cloudexplain\n\nX, y = shap.datasets.adult(n_points=100)\nX[\"adult_id\"] = list(range(len(X)))\ndtc = sklearn.tree.DecisionTreeClassifier()\ndtc.fit(X, y)\n\n\nwith cloudexplain.azure.explain(dtc,\n                                X,\n                                y,\n                                model_version=\"0.0.1\",\n                                model_description=\"This is a new model.\",\n                                resource_group_name=\"mycomp-cloudexplain-tf\",\n                                explanation_name=\"dummy_name\",\n                                explanation_env=\"dev\",\n                                data_source=\"shap_adult_dataset\",\n                                observation_id_column=\"adult_id\") as run:\n    print(\"This is the run uuid\", run.run_uuid)\n    pred = dtc.predict(X)\n```\n\n\n#### Troubleshooting\nWhen logged in with multiple accounts it can be the case that the permissions are not handled correctly. Signing out of all users\nexcept for the one who has the correct rights helps.\n```bash\naz logout\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 cloudexplain GmbH  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "A package for explaining cloud-based solutions provided by cloudexplain GmbH.",
    "version": "0.1.0rc3",
    "project_urls": {
        "Homepage": "https://www.cloudexplain.eu",
        "Repository": "https://github.com/cloudexplain/cloudexplain"
    },
    "split_keywords": [
        "cloud",
        " explain",
        " machine learning",
        " ai"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "65ebc4e3a7da67b05ffdaa09fdfbff06ea72a02734b93c5ed1f9e3b3e953e2e8",
                "md5": "fb065ea8b699a07198fc00843bfa292a",
                "sha256": "ee71eecf3d6ec252762d60bb19694bb86a6ede8c122b7468ed6dfcd8168bff4f"
            },
            "downloads": -1,
            "filename": "cloudexplain-0.1.0rc3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fb065ea8b699a07198fc00843bfa292a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7199,
            "upload_time": "2024-11-16T07:17:44",
            "upload_time_iso_8601": "2024-11-16T07:17:44.687318Z",
            "url": "https://files.pythonhosted.org/packages/65/eb/c4e3a7da67b05ffdaa09fdfbff06ea72a02734b93c5ed1f9e3b3e953e2e8/cloudexplain-0.1.0rc3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "86616bdcd3259929a43a5a6d9bab6d9f4996c8fd692f1fb68aeb0a2151199ad2",
                "md5": "4f931ec2d8bb1b97932b5e66974b94ff",
                "sha256": "9cae9b614533c9c86be95c1523c5fb42dfd261080e5b9406014155c85e917dda"
            },
            "downloads": -1,
            "filename": "cloudexplain-0.1.0rc3.tar.gz",
            "has_sig": false,
            "md5_digest": "4f931ec2d8bb1b97932b5e66974b94ff",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6968,
            "upload_time": "2024-11-16T07:17:46",
            "upload_time_iso_8601": "2024-11-16T07:17:46.397996Z",
            "url": "https://files.pythonhosted.org/packages/86/61/6bdcd3259929a43a5a6d9bab6d9f4996c8fd692f1fb68aeb0a2151199ad2/cloudexplain-0.1.0rc3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-16 07:17:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cloudexplain",
    "github_project": "cloudexplain",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "cloudexplain"
}
        
Elapsed time: 0.94483s