Skip to main content

A package for explaining cloud-based solutions provided by cloudexplain GmbH.

Project description

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:

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

az login

Example Usage

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.

az logout

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudexplain-0.1.0rc3.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

cloudexplain-0.1.0rc3-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file cloudexplain-0.1.0rc3.tar.gz.

File metadata

  • Download URL: cloudexplain-0.1.0rc3.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for cloudexplain-0.1.0rc3.tar.gz
Algorithm Hash digest
SHA256 9cae9b614533c9c86be95c1523c5fb42dfd261080e5b9406014155c85e917dda
MD5 4f931ec2d8bb1b97932b5e66974b94ff
BLAKE2b-256 86616bdcd3259929a43a5a6d9bab6d9f4996c8fd692f1fb68aeb0a2151199ad2

See more details on using hashes here.

File details

Details for the file cloudexplain-0.1.0rc3-py3-none-any.whl.

File metadata

File hashes

Hashes for cloudexplain-0.1.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 ee71eecf3d6ec252762d60bb19694bb86a6ede8c122b7468ed6dfcd8168bff4f
MD5 fb065ea8b699a07198fc00843bfa292a
BLAKE2b-256 65ebc4e3a7da67b05ffdaa09fdfbff06ea72a02734b93c5ed1f9e3b3e953e2e8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page