Feyn is a symbolic regression package named after Richard Feynman, that uses the QLattice as a simulator to generate models.
Project description
Feyn
Quick start
Feyn
is available as Python3.8+ 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.
Running a QLattice
If you're using the community edition of a QLattice
then you can instantiate it by:
import feyn
ql = feyn.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-3.3.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d90a2236108efae243bd8ea8d298c3b64431e09a97976e50e70d48c01e76ff62 |
|
MD5 | c7a82296b4a63b2aac706b489713c4b0 |
|
BLAKE2b-256 | f9bf324a5a799206b544a00556a431e834f337213a415dbfea6cd530e8283807 |
Hashes for feyn-3.3.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c520ea717e666466bcc64f5dd35ae302becb8c0dcb44c58ce84cd8e5998df91 |
|
MD5 | a662898389578aa1736a3e3b09f2296c |
|
BLAKE2b-256 | 3a179258798d7cfb13027505919f7dfd3d31a59210e8c9bf93c7c7a02dade9d0 |
Hashes for feyn-3.3.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6f66db73faf95fd3b9b4c28eb20208f6d3948b4be1a5fb54ff727a5cb4fe9c3 |
|
MD5 | 656115e6cb396a811145e9fef8648f63 |
|
BLAKE2b-256 | 4919a1f9687165bcb3aff2bbf8f3017415313a5eca41f6d224e54a9c135cc077 |
Hashes for feyn-3.3.1-cp312-cp312-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 039f726613719ed1a54c8f6f39a327c5dbbdfde618b0a416c51da57d238c1c9a |
|
MD5 | abde2c233172ebae81cd736f8bf1536e |
|
BLAKE2b-256 | 2800d3a640a47e7d5ee8f0037d68eaeb3f54fc51941b21cb28b4a31ad2d1156d |
Hashes for feyn-3.3.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e53f8b67d09db2a2b3b23622a8f1157806babf1fba371a6fcf6c7daa64a49d3 |
|
MD5 | d64a1bd2bbe9715940801b08a41e2186 |
|
BLAKE2b-256 | e13b1ada3311cf339d9537434e32396a9177b718f42908ac1c0fd67cc3fa2748 |
Hashes for feyn-3.3.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0a69fea89f92eb23b665edc89a264cc62075520c2f78461fd80bb827381227e |
|
MD5 | f0de6c8d188a773cbfcd101fad78820a |
|
BLAKE2b-256 | b819bcdd10b73437c1a52195f59ce3a4dbf6a458ca70be5596738d58827dec72 |
Hashes for feyn-3.3.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a93c7257058bdebfcc80285732de556aa35b905f94659fb6bb33056ec7d9e63 |
|
MD5 | 64b081cf40589d8c6af2738e85479655 |
|
BLAKE2b-256 | 61820b68bf47b77f6cb02fed4e218ee50f7a1275bdeb099da97181a8a34c7fcf |
Hashes for feyn-3.3.1-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdd9aea8a16b7d668635bd799712861e256ef0d2cd2b4cc7c43c2ffdb203441c |
|
MD5 | e1c462bcd5330383b7011d228c6d07b6 |
|
BLAKE2b-256 | 51a1d0f37205ded9ac84498df530ba73bc14c3669f7260d5e317f2239cd0d4b9 |
Hashes for feyn-3.3.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adec8b62dc684b4ae9a32ccf1560bac66fab8fd0ff401b69cbb2fa0d8e021070 |
|
MD5 | 7c97b22b48e35a241c5fa18c48f2eca7 |
|
BLAKE2b-256 | 5f5b0c7a0da7b9fb536b6974eafca5ad0232ae9dcf7da527c999953eaed7c212 |
Hashes for feyn-3.3.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 637e83aaa6dfdb70bbacb81553765b076b4d66d1dae2f0c2f76e4708bb26f445 |
|
MD5 | 906c51f4f8aede6e2697abe20841629b |
|
BLAKE2b-256 | eb2f6588b923f68425f6dbf7084fd8a49c9f535519e3e784ce071f754a28e388 |
Hashes for feyn-3.3.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efae3e0b6f2cf0e5d99e1a90e2b7657af73d46fad459de03d407c78a2351647c |
|
MD5 | a458405cfd7926274f6040081939f1bf |
|
BLAKE2b-256 | 95f92cd8511355971ac0486fb45acdda11c192aa90d3a2a780e17b84a4663ce5 |
Hashes for feyn-3.3.1-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceadf63255713bac4ccc3dccede9dc3067b3d80a7afb3b8a9b6aa850d552e599 |
|
MD5 | b687290e8ad0595b8502f9717760ebf7 |
|
BLAKE2b-256 | 35f105a5806f092db4f5c79ddc367d56cda0ad9bc8566ce06ae0f9a07f53cfc2 |
Hashes for feyn-3.3.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 044aedac3ae758e5064aacf60133904b8fa4ba9c9c7d857557f0bcf339c950b1 |
|
MD5 | 77f922abc65425c938e927380204fd87 |
|
BLAKE2b-256 | e488f767b75e562ecc0c988a3f12e57169c4d888d0cbf26313f982cb670ae9d9 |
Hashes for feyn-3.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7113c7d35628e7dcf92f271c1addafde22b791dfeb40394de1addb621d6dbddc |
|
MD5 | 72ba7a9dc4fdaddcd9821d5e626a2fc4 |
|
BLAKE2b-256 | e69cabb783755a2c6fba0f78b7f004e0aa5d0914346d0b2e0bb65004a3fc5c48 |
Hashes for feyn-3.3.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a41abf4a2f0301437bc58375bdb20770bd89cd2fbfc99e2c8a8a9e475f8b9cbc |
|
MD5 | a14a69b718ed39434428c5c3378094e6 |
|
BLAKE2b-256 | 68a4c32be83a0b169663808b8d7a48d20b7b5f0a3dc0578b5c034b18b696d042 |
Hashes for feyn-3.3.1-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20610ae70b93c77e4859b9509738be915751d6938378f27add1a70bced716e9b |
|
MD5 | a8c0af906f1dd53181440a4a82e36ca5 |
|
BLAKE2b-256 | a59bf3041d94313ddf865e8526cb60c600bf8fb9339869be52b8d52f34fdae83 |
Hashes for feyn-3.3.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b99cf05b1422f1e4421c12c2a4fb126a7dc554ed4c6b09645b1d23ab48acc09 |
|
MD5 | 6b1109dfc78c4bd8c52f458322a7e6b9 |
|
BLAKE2b-256 | 638c209d79c2407127f675bfdc7a716f40131a9022c51bf3b47d64c4567e0058 |
Hashes for feyn-3.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1504cc9b4b10e49f950daa17a7739dddda74eb53b0b4c8a311f2c2a414caf18 |
|
MD5 | 152e380449da645e93486042934e965b |
|
BLAKE2b-256 | 5401fa7dce4c0b265753c5c8d6256e5bb9362e6322a5514f87199d8ab56c0b9e |
Hashes for feyn-3.3.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 438d5be7b3a38434e9cbfab12b633d2ecb4ac1d0262a274625b08f4f6d1f50ed |
|
MD5 | 39d7063843f118433bdb5790111fc6b6 |
|
BLAKE2b-256 | 4dd3de318ed5928a9b421e95e4146dab9c8d4f30ce298cff51a0ad81385ec4b5 |
Hashes for feyn-3.3.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 533c8da52b28fb5f2780b23970205cc21ce514b4a9c64967e0a3045187dc5dc4 |
|
MD5 | 46fc714753cfbec1f6d245b5422c1e23 |
|
BLAKE2b-256 | 8c7d17c75a0c004d09aa65a11654e8db02551c88b909090032957842c2170b68 |