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.4.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01c478d2a75c7ebf4f60255ab4fcffe22d76e2c670cdd66c50185f6dad516dcc |
|
MD5 | 74f90022e13a3e497ee726b6b1921ca3 |
|
BLAKE2b-256 | 5439886b0bbb0ec729b060f0868e432d50cd0339ca7bee31ac6a58574eb61f85 |
Hashes for feyn-3.4.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b15b46cdf736c04fe1863cac83d2f1c4a859d27c259623a5ce5ca90f06f4bc3 |
|
MD5 | 2ddf7b96e2989bec1d3ddf3e735b1abb |
|
BLAKE2b-256 | 20504a0905593b094ef833b7ad6680e3b418c004a4573289360da3a6c72248a4 |
Hashes for feyn-3.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0d8a77a0a2f76837e67fe82b9dfc7115c018af3247d781d671f6d7972c53e2f |
|
MD5 | 955dcdbc6ca175fb34c82212fcc424f5 |
|
BLAKE2b-256 | 5a4e28bc6cab8f3882e470cc230b4f34457fb8250d482248e3c6ad24889db57b |
Hashes for feyn-3.4.0-cp312-cp312-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ae3c602bac13234c0f2b1f5f5309453d19c694217d224a8a4cd4972f74ff81b |
|
MD5 | 522e3902793d97241f14bc05d4278249 |
|
BLAKE2b-256 | 3ac2b3b8002d936e7af56f66bb40916a6c92d95e512017c6c88d97a20437398d |
Hashes for feyn-3.4.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c48a45422944b51259e4b5d9b62dce168bbf6bca389b68adb577d519678a4af1 |
|
MD5 | 2223da6c022215af84a90fd5f8004197 |
|
BLAKE2b-256 | ef4874af878edab635fc651ff8d071817d5d2af1a14e78a44b7bb425db9b4723 |
Hashes for feyn-3.4.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2268bdee3944a3b71d20bbc5cc67b7120f08a6fc2939b419bf5186a270a2797 |
|
MD5 | ab243f412fbcb2253adbba1045d66247 |
|
BLAKE2b-256 | 50efea6322f2fe9a8c1e7db6af674f1f74231e106966748a98b1d0e858c5ba2b |
Hashes for feyn-3.4.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6aadf1eeddb3e970b97144b986d2e810c3b2b4c80d4d6b35b32e43a4cb7c9cd0 |
|
MD5 | b9a890b558ea359f024a883583223993 |
|
BLAKE2b-256 | 04c16250919a0666123a39449c55edecbc2322d0c02f9a7925571f60b0a41941 |
Hashes for feyn-3.4.0-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ede9f382eab2bf693a188494c8cd1ba59f48b998acf56f10cab41e6bb79cfb1 |
|
MD5 | 76f8b646c626b5ce2ec088927276b63a |
|
BLAKE2b-256 | ea8956befc72fb4a43f0f15871a6757b61047e92283c79a0d23e7b78beb65232 |
Hashes for feyn-3.4.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e56e8f33500b74bd7e58833da8a42923fd4d3f62a75753411e3eb40d27663bad |
|
MD5 | 7059ef4942326d3c70ee43d71f8933f5 |
|
BLAKE2b-256 | 582513ed9ac16f999e0372e5c5abec7a4c78676e5967c6f1f6428679edea5314 |
Hashes for feyn-3.4.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfb0be57fb561e650c8945cd1f9c3e3b3c85e8531f8c474c5453c8f66a8cc089 |
|
MD5 | 1f6de8cab2602a35ccc19cd465a17052 |
|
BLAKE2b-256 | 3c33ddd87c20cf4c6b52a3a7f431748626bd13ef10085704d48804c2cba552a4 |
Hashes for feyn-3.4.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c2c80951b4f68ab198dac9fe890c7cabd15aaaae2ff0ce75b20dd2b95032047 |
|
MD5 | d452c717e256bfc35d868a04c5f94271 |
|
BLAKE2b-256 | 6b3b32c90f14ba78100941098b617f760f8fea87ec9676a815286beba4f41329 |
Hashes for feyn-3.4.0-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cf8294a5ce88c07354c1b8ab981706892b017aa4b9423c89b8c962032cef4f5 |
|
MD5 | 37d049afa5b185b8c7108faa998e28f7 |
|
BLAKE2b-256 | a83c4004508840e7da049b2aee98e11550c6f4ca5dc98d3eef6ef8c411edb191 |
Hashes for feyn-3.4.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6a9e93b817c0eb4872619f204989636ba6ea5d7257acb90a2934f1d01e66279 |
|
MD5 | 7c49dac4e863a9dbcd6bd930e4c10595 |
|
BLAKE2b-256 | 42fa44f03494bd9b0cdbc51b70670078c2de71f8e641beea99b762f4ca09a068 |
Hashes for feyn-3.4.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff6020804d3627ea51efb1bac3fa3e3790048865599b3d1d39ae510b83c0680e |
|
MD5 | 911e7a2bdfb3d230fda7889f32335a00 |
|
BLAKE2b-256 | 440701c87989ca59dce99e462b3a31e35196e477b2d5bd77669d9e9c7225be2f |
Hashes for feyn-3.4.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29cb30ac8ab0a830b2d52d499fa0a55a6d16b486f9c4ac27275636e177793384 |
|
MD5 | 6a8108e250f9856c55c7c18c04c2df0a |
|
BLAKE2b-256 | 613d012f35be56e54491ddfb6639c88c4d6b9e5da7d81ea14866e35f41f703d0 |
Hashes for feyn-3.4.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c4a65fb0bdf0b71cacdcd0767d4a999c42be835eed961b5d65c54abafd1b97f |
|
MD5 | 421ebc02d92fbb779e693ff1916b2bec |
|
BLAKE2b-256 | 6ed6b777535512bb86f170eaaa8e93c4a39d2d64a7ce512073127c9bdc4c1ca2 |
Hashes for feyn-3.4.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 531d4a9b52d9c5c3bb8d4e2ea795552847fa0a3d76fc16e7b2935caa338058d6 |
|
MD5 | 576901390a0219264b54e96b8f7f7ad5 |
|
BLAKE2b-256 | 041f078f4c3fe3c029f090a9de744245fc4e2bcff5a018c3121bc1f9b34fd1de |
Hashes for feyn-3.4.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97ecc3c7d895aa5a5b3f7d796ab57b59b14a433acd5687949ca02536ec163839 |
|
MD5 | 33487de7bd862654f21319fcede36367 |
|
BLAKE2b-256 | 3f7954eeee0cbb1d5b94d8b8c6240a067b57c3bba59f48f1f52157a525f43bf9 |
Hashes for feyn-3.4.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02989eb5997e97f674e87292393a2fda4ecdedf133372295fdd519112c5e9764 |
|
MD5 | 2e80028335e859fe5e6a46ef30a47b32 |
|
BLAKE2b-256 | ba5c2a48e5ccfd42ed37885981d8dc07a39d667a0afa59d2ec2f2ff9459faaa8 |
Hashes for feyn-3.4.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ef04820e203da71f30a48e3b0a574531aa7d74fd71be140899ae504a8d4b1bb |
|
MD5 | 79b9615b08db13d710bc4577ec9b4606 |
|
BLAKE2b-256 | 38a162200b2d9a6a4de599654473acdb4ada81d6e2ff777d374fcafe1a17af51 |