Skip to main content

Feyn is the high level Python interface to interact with an Abzu QLattice.

Project description

Feyn

Quick start

Feyn is available as Python3.6+ package through pip. You can install it with the following command:

richard@feyn:~$ pip3 install feyn

Once installed, go to your preferred Python environment and follow along with this example.

Connect to a QLattice

If you're using the community edition of a QLattice then you can get connected to it by:

import feyn

ql = feyn.connect_qlattice()

Auto run

The quickest way to get started is to use the auto_run function on the QLattice. First we will make a classification problem with feyn.datasets.make_classification.

from feyn.datasets import make_classification

train, test = make_classification()
models = ql.auto_run(train, output_name = 'y', kind = 'classification')

This returns a list of fitted models that are the best the QLattice has sampled, sorted by ascending loss.

Evaluate

The model with the lowest loss is models[0]. We can evaluate that model with the plot function and it's ROC curve.

best = models[0]
best.plot(train, test)
best.plot_roc_curve(test)

Project details


Download files

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

Files for feyn, version 2.1.1
Filename, size File type Python version Upload date Hashes
Filename, size feyn-2.1.1-cp36-cp36m-macosx_10_14_x86_64.whl (219.8 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size feyn-2.1.1-cp36-cp36m-macosx_10_15_x86_64.whl (219.9 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size feyn-2.1.1-cp36-cp36m-manylinux1_x86_64.whl (328.0 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size feyn-2.1.1-cp36-cp36m-manylinux2014_x86_64.whl (328.0 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size feyn-2.1.1-cp36-cp36m-win32.whl (225.5 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size feyn-2.1.1-cp36-cp36m-win_amd64.whl (229.7 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size feyn-2.1.1-cp37-cp37m-macosx_10_14_x86_64.whl (219.8 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size feyn-2.1.1-cp37-cp37m-macosx_10_15_x86_64.whl (219.9 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size feyn-2.1.1-cp37-cp37m-manylinux1_x86_64.whl (332.4 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size feyn-2.1.1-cp37-cp37m-manylinux2014_x86_64.whl (332.4 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size feyn-2.1.1-cp37-cp37m-win32.whl (221.0 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size feyn-2.1.1-cp37-cp37m-win_amd64.whl (225.4 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size feyn-2.1.1-cp38-cp38-macosx_10_14_x86_64.whl (219.9 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size feyn-2.1.1-cp38-cp38-macosx_10_15_x86_64.whl (220.0 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size feyn-2.1.1-cp38-cp38-macosx_11_0_arm64.whl (218.8 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size feyn-2.1.1-cp38-cp38-manylinux1_x86_64.whl (331.4 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size feyn-2.1.1-cp38-cp38-manylinux2014_x86_64.whl (331.4 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size feyn-2.1.1-cp38-cp38-win32.whl (221.2 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size feyn-2.1.1-cp38-cp38-win_amd64.whl (225.7 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size feyn-2.1.1-cp39-cp39-macosx_10_14_x86_64.whl (219.9 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size feyn-2.1.1-cp39-cp39-macosx_10_15_x86_64.whl (220.0 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size feyn-2.1.1-cp39-cp39-macosx_11_0_arm64.whl (218.8 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size feyn-2.1.1-cp39-cp39-manylinux1_x86_64.whl (323.3 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size feyn-2.1.1-cp39-cp39-manylinux2014_x86_64.whl (323.3 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size feyn-2.1.1-cp39-cp39-win32.whl (221.3 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size feyn-2.1.1-cp39-cp39-win_amd64.whl (225.7 kB) File type Wheel Python version cp39 Upload date Hashes View

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