Skip to main content

A plotting and clustering package

Project description

This package allows you to:

  1. Create a scatterplot
  2. Plot the distribution of your data
  3. Group or cluster samples in your data

1. Creating a scatterplot:

To create a scatterplot, you have to run the scattergraph function from the plotting.py file, which takes the following arguments:

  1. x: this is the column that you want to plot on your x-axis. This should be a numpy array.
  2. y: this is the column that you want to plot on your y-axis. This should be a numpy array.
  3. xtitle: this will be the title of your x-axis. This should be a string.
  4. ytitle: this will be the title of your y-axis. This should be a string.
  5. graphtitle: this will be the title of your graph. This should be a string.
  6. outlier_treatment: this tells the graph how to visually differentiate outliers on your plot. You can choose one of the below options. This should be a string.
  • "color": plots the outliers in a different color
  • "shape": plots the outliers with a different marker
  • "size": plots the outliers with a different size
  • Note: this argument will default to size if any other string is passed
  1. outlier_sensitivity: this is a multiplier in a customized IQR calculation, which ultiamately generates a sub-array of outliers. This should be a float (recommended between 0 and 2). If outlier_sensitivity is zero, then your outliers are in the 1st and 4th quartile of your data. The higher the outlier_sensitivity, the fewer the outliers.

2. Plotting your distributions:

To plot your distribution, you have to run the plotdistribution function from the plotting.py file, which takes the following arguments:

  1. y: this is the column that has your target data. This should be a numpy array.
  2. numberofbins: choose the number of bins for the histogram. The larger the data set, the more likely you�ll want a large number of bins. This should be an int.
  3. plottitle: this will be the title of your graph. This should be a string.

3. Grouping/creating clusters:

To create clusters, you have to run the create_clusters function from the clustering.py file, which takes the following arguments:

  1. x: the columns that you want to use as a basis for clustering. This should be a numpy array.
  2. y: this is the column that has your target data. This should be a numpy array.
  3. numberofclusters: the number of clusters to form as well as the number of centroids to generate. This should be an int.

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

claraw10-0.0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

claraw10-0.0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file claraw10-0.0.1.tar.gz.

File metadata

  • Download URL: claraw10-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for claraw10-0.0.1.tar.gz
Algorithm Hash digest
SHA256 44cffa65efcc432f15e1b3504bae060874991255b1ec4908b8cd678b8bc7445e
MD5 a03b3cd93fc18239144f6130b14ea36d
BLAKE2b-256 7e2fdf8c7e9b1f02a59841a3e937cd7d80f32b2b6db8d980d7893de7ddbb0df6

See more details on using hashes here.

File details

Details for the file claraw10-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: claraw10-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for claraw10-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41a729ff70e1fa1d33980ff5c3ffda5caed47d661b4f30d9b1f0bf265fd7ff09
MD5 1064ac19355a5927501d49f03e46a13a
BLAKE2b-256 2a39032ec39bb48f812c27a4279cbb2f42c9507bba38a991e7b3ec6d104cf658

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