Skip to main content

Parallel coordinates plotting

Project description

Parallel Coordinates Plotting for Python parcoords

This package implements a parallel-coordinate plot, commonly used in machine learning, i.e. for hyperparameter visualization.

Example parallel-coordinate plot

Installation

The parcoords package can be installed with pip:

pip install parcoords

You can also view the package on PyPI.

Usage

The following code produces the sample plot at the beginning of this page.

import matplotlib.pyplot as plt
from parcoords import plot_parcoords

# let's define some data to plot
values = [
    [0.1, 10, "smote", 0.78],
    [0.15, 9, "none", 0.46],
    [0.18, 8, "rand_over", 0.67],
    [0.01, 16, "rand_over", 0.84],
    [0.01, 15, "smote", 0.86],
    [0.015, 12, "smote", 0.87],
    [0.03, 12, "smote", 0.81],
    [0.12, 13, "none", 0.51],
    [0.07, 11, "rand_over", 0.7],
    [0.2, 14, "none", 0.55],
]

# plot the values as parallel-coordinate plot
plot_parcoords(
    values,
    labels=["lr", "# epochs", "sampling method", "accuracy"],
    color_field="accuracy",
    scale=[("lr", "log")],
    title="Parallel-Coordinates of the Hyperparameters",
)

plt.show()

License

This repository is licensed under the MIT-License.

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

parcoords-0.1.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

parcoords-0.1.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file parcoords-0.1.2.tar.gz.

File metadata

  • Download URL: parcoords-0.1.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for parcoords-0.1.2.tar.gz
Algorithm Hash digest
SHA256 12bc9fbd1a05418a08bba97289bf9ad4a5555ef9393e998553e89013249cf92f
MD5 84b60830012d2244c7a42d909ccef209
BLAKE2b-256 dcaef5a1cf9a33e787adb7d2373d930b23285283ef8ceaa879690368f00de69d

See more details on using hashes here.

File details

Details for the file parcoords-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: parcoords-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for parcoords-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 003b9fb2f0aea2cab3d0392eeaf9fbaaa1b96d45d5c57fd98cee0658fbe38f0a
MD5 e85eaa92236ef45fc45a969bd8471ed9
BLAKE2b-256 53541734c840d811382fdeaa7401d2311357d03095cfee0bbee064b2866a3652

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