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
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 Distributions
Built Distributions
Hashes for feyn-2.1.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33597b069c507e18eef77111e5897ca79f6331298e92d7767be9df086e3e96c1 |
|
MD5 | 1ac37fc6280349c4a29ea7ccf56c936d |
|
BLAKE2b-256 | a631116363547e3859542043e414f034d7e70ee56a9f6c3d51d785d605a89a30 |
Hashes for feyn-2.1.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea802239493eacc4e8e4b3d56ab0eeb84c0717588658cb9b05f643cf80f2af75 |
|
MD5 | 66216fb6e64ea0ea9a7d1c1244860066 |
|
BLAKE2b-256 | 9e6911455cc83d5bd17fae4ddd5f41dfa286062ec2d8d2afdf9d22623817cb5c |
Hashes for feyn-2.1.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 991b38f0d8e9331ba01dc355afb637aace06a2c70b0478ab58f499f14f6081cb |
|
MD5 | af2203a1b12b70b55d35260b1a4b9dc8 |
|
BLAKE2b-256 | a52199b81f6609f02c2d282030227f3a8f9ffd98571bae32b1f62c51f68945e1 |
Hashes for feyn-2.1.3-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49233fc0c095c5f3e2911d56e0b7bc6aad552f7b3b50af7d2a74510711a8706c |
|
MD5 | 3c9a9dc9951d2985ec79b6e6b13310d7 |
|
BLAKE2b-256 | 1eab7975d4a1f5f4637e0d66488db2d7a3502083d6fff5fd07f64324190649fa |
Hashes for feyn-2.1.3-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8da945bd66c6ae31eddb89500a715d14a505c80a18a5b9a0b8f3983c319a43d2 |
|
MD5 | 4ef17fbe153a1e335e06d2af4fef5c31 |
|
BLAKE2b-256 | 0ab69ec3c70defc809d107aa92336d1cd9cbf2d351d49414b561d94c2449fed9 |
Hashes for feyn-2.1.3-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e46bbaf64767a8c6ada931f40933135863b6f0b6b9d1e5833e7691aca764a1de |
|
MD5 | 157434475578e81e4a572fb5f9cee49b |
|
BLAKE2b-256 | 2f3b68c0255c48df55ae9fa47b7aeaef6666e6d5ea8fc437581391749d2957b8 |
Hashes for feyn-2.1.3-cp39-cp39-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3e710b57c8666984f9a1754bfe88e157f0c68d716a82624f42b09a60bb3286b |
|
MD5 | aac0caa444863e0598611fa34c1f41a3 |
|
BLAKE2b-256 | 9693086bbc0bfe64d187b9a85c0d54d68f72fcb4fbfeaf804dac95cbc6590301 |
Hashes for feyn-2.1.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0072bbdd8b2adc58fe23a956870ce1b1e01e7c668821be75ddffe0b969f98fd9 |
|
MD5 | c533d0d703fb1ee018a4eaf45db1c1ae |
|
BLAKE2b-256 | 85353869eca0dd7cf252bb3b0cb67ab9bfa109bc205765f9ab9f252f0218f601 |
Hashes for feyn-2.1.3-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33136f47fd98d36b1f6b8a1c2218cab355a20137fd0600a62237b9e1e916e079 |
|
MD5 | 6cbdb88e108dfb026708ff68917abf9e |
|
BLAKE2b-256 | a3f093c87ffccad13a8b0e9d0b0dc9184a3af1e2036dff45297ce8ad7d811942 |
Hashes for feyn-2.1.3-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 081e4d3fc3c505de56b5c546f4129e1c4e0caba0f1905bec26980c160f444e6b |
|
MD5 | 17ef4f276d7bfba8becdde821c56035b |
|
BLAKE2b-256 | bf5ec978d159fad8e1213b852a21f2f90dca58f187925c263c39d9ec896b38e7 |
Hashes for feyn-2.1.3-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6520072e39533c2f56360cdd405245cedac4da1f1640e3ff95c950a5209d236f |
|
MD5 | dc49bc8862d5b2d6dc554067a3ef249e |
|
BLAKE2b-256 | f3388484bce746b1219b9d73ed30303d1e1a26337181d84446598397c38a61b8 |
Hashes for feyn-2.1.3-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb61ec844feb5771159162232b0de1aa9b806a073d2dcd223bc18d59c5a7567a |
|
MD5 | c399050900c6ab2f71c34ee25a9053cf |
|
BLAKE2b-256 | 5420c8fb72b3cc7d60d57f14c1227213f91d4151212e91af97753decdfa52533 |
Hashes for feyn-2.1.3-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eefb51cd9012f30c02c791a0f1128ceb30960bb094f2956dec3820a49745103 |
|
MD5 | f3b4d395eff1ee4562b2b690b79da2e7 |
|
BLAKE2b-256 | a59f2bb7bc25e005994eddb45dd248941804362e45513b7de0d38072f49d5080 |
Hashes for feyn-2.1.3-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2cd7ac130ea49cea1f3f516d9f789556e4a732c2e502a4a0f01fc0e7be4c06c |
|
MD5 | 749b4067322c35fb5a307625db7d8bb6 |
|
BLAKE2b-256 | 726b2615f47d15117bf47c45283569b518a480fe56d76ef0edb7db88ace89e25 |
Hashes for feyn-2.1.3-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5edea70eaa3a4ab39843ebcb8e5374743468ad276c908002886ec4c2719bf55b |
|
MD5 | 91dd1d75b9eab14404fc9dd55ecdc0df |
|
BLAKE2b-256 | f69a1b00ace8eafb72a11daa76a15fb322a11a8427b3bdd5a32078711074df06 |
Hashes for feyn-2.1.3-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e201aa8efc156920b15c367a3e548208fe3343f84d845498f865c190acc4c4b0 |
|
MD5 | 4085d67bebe8adc7c1e3d60cbd95b408 |
|
BLAKE2b-256 | b624eaa1f2c3adba42b6345b9e1a9fd6c3bdbe4ae0eb09810763f8478acb8072 |
Hashes for feyn-2.1.3-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05f6dab91876309c3f07c5d2abb527d5e1800d327339a2ed06e178995494de73 |
|
MD5 | 19bfe464d120887760a13276e56e26be |
|
BLAKE2b-256 | d6a6cb8cfd2d7efb4cc4ebc3e803de122ed560aa0d6941534a6d7477d8e341b9 |
Hashes for feyn-2.1.3-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 731d1c62f72ec70c8d02deb8545b9c9e0b0409104c34266563d1de8ae5631317 |
|
MD5 | 161635b6ab83a2264b08151f64a19d45 |
|
BLAKE2b-256 | 80375c4155a67d9ae25553d3b2172f14390c43b9a3f428e2f9b857ea558b342b |
Hashes for feyn-2.1.3-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 613add815bdc65b7cfd14600ac99d0faebb30d27a09a1b68759ebc645db990c9 |
|
MD5 | 62b35b5a607f130d6ae161a9303cd659 |
|
BLAKE2b-256 | d4c513d5c70f7d479bed251fcac16949df1d40f18e2e12281f1e001137187daa |