Skip to main content

Charting Feyn graphs

Project description

Feynplots

A package to see what's going on inside graphs produced from a QLattice. A QLattice is a quantum mechanics simulator produced by Abzu that produces models for datasets in an evolutionary process. You can read more about the QLattice here. Feyn is the package used to interact with the QLattice and you can find more about getting started with it here.

A graph produced from the QLattice typically looks like so

A typical graph

This is a model for the California housing dataset. Each interaction takes either one or two variables as input and has a single output. This means that we can plot each interaction. Let's do that!

Charts of graph Here's a couple of comments on this plot Each dot corresponds to a datapoint in the training set. The colour corresponds to the actual value of the target variable. The x-axis corresponds to the variable x0; The y-axis corresponds to the variable x1; The scale on each axis the scale of each feature; The contour lines correspond to the value of the output at the (x0,x1) coordinate.

Here's a small summary of how to use this package.

from feynplots import GraphChart

graphplot = GraphChart(g) #initiates the chart instance
graphplot.model_ev(data) #evaluates every interaction at every datapoint

graphplot.plot(figsize = (30,20)) #plots the figure

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

feynplots-0.0.2.tar.gz (6.2 kB view hashes)

Uploaded source

Built Distribution

feynplots-0.0.2-py3-none-any.whl (7.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page