Skip to main content

ML Observability in your notebook

Project description

phoenix logo

Phoenix provides MLOps insights at lightning speed with zero-config observability for model drift, performance, and data quality.

Phoenix is under active development. APIs may change at any time.

Installation

pip install arize-phoenix

Quickstart

Open in Colab Open in GitHub

Import libraries.

from dataclasses import replace
import pandas as pd
import phoenix as px

Download curated datasets and load them into pandas DataFrames.

train_df = pd.read_parquet(
    "https://storage.googleapis.com/arize-assets/phoenix/datasets/unstructured/cv/human-actions/human_actions_training.parquet"
)
prod_df = pd.read_parquet(
    "https://storage.googleapis.com/arize-assets/phoenix/datasets/unstructured/cv/human-actions/human_actions_production.parquet"
)

Define schemas that tell Phoenix which columns of your DataFrames correspond to features, predictions, actuals (i.e., ground truth), embeddings, etc.

train_schema = px.Schema(
    prediction_id_column_name="prediction_id",
    timestamp_column_name="prediction_ts",
    prediction_label_column_name="predicted_action",
    actual_label_column_name="actual_action",
    embedding_feature_column_names={
        "image_embedding": px.EmbeddingColumnNames(
            vector_column_name="image_vector",
            link_to_data_column_name="url",
        ),
    },
)
prod_schema = replace(train_schema, actual_label_column_name=None)

Define your production and training datasets.

prod_ds = px.Dataset(prod_df, prod_schema)
train_ds = px.Dataset(train_df, train_schema)

Launch the app.

session = px.launch_app(prod_ds, train_ds)

You can open Phoenix by copying and pasting the output of session.url into a new browser tab.

session.url

Alternatively, you can open the Phoenix UI in your notebook with

session.view()

When you're done, don't forget to close the app.

px.close_app()

Documentation

For in-depth examples and explanations, read the docs.

Community

Join our community to connect with thousands of machine learning practitioners and ML observability enthusiasts.

  • 🌍 Join our Slack community.
  • 💡 Ask questions and provide feedback in the #phoenix-support channel.
  • 🌟 Leave a star on our GitHub.
  • 🐞 Report bugs with GitHub Issues.
  • 🗺️ Check out our roadmap to see where we're heading next.
  • 🎓 Learn the fundamentals of ML observability with our introductory and advanced courses.

Thanks

  • UMAP For unlocking the ability to visualize and reason about embeddings
  • HDBSCAN For providing a clustering algorithm to aid in the discovery of drift and performance degradation

Copyright and License

Copyright 2023 Arize AI, Inc. All Rights Reserved.

This software is licensed under the terms of the Elastic License 2.0 (ELv2)

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

arize_phoenix-0.0.11rc3.tar.gz (763.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arize_phoenix-0.0.11rc3-py3-none-any.whl (787.5 kB view details)

Uploaded Python 3

File details

Details for the file arize_phoenix-0.0.11rc3.tar.gz.

File metadata

  • Download URL: arize_phoenix-0.0.11rc3.tar.gz
  • Upload date:
  • Size: 763.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for arize_phoenix-0.0.11rc3.tar.gz
Algorithm Hash digest
SHA256 563e886d10fc6aebee39680737d72ce2f725f3de400a4c0f356ffc8e48c23fd2
MD5 77536f33e78ad3c2c766046d15e32628
BLAKE2b-256 7b97f10d6b225ad686f6ddafa94eb3f0c5253876946dda160b2721db641ea3b9

See more details on using hashes here.

File details

Details for the file arize_phoenix-0.0.11rc3-py3-none-any.whl.

File metadata

File hashes

Hashes for arize_phoenix-0.0.11rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 34b80263444749048e98902966ab625e105ad59e0858f39e814804f01caa4fd5
MD5 a74c7fbffc344ad8c27ec60deb4f0cac
BLAKE2b-256 617d7af8e860b115e823934df3a8950a0379ff46faea34d93ce390ad89a64fc7

See more details on using hashes here.

Supported by

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