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.1.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f5fccedb4c5328c62abbcc8b42e5a6328e36b36c96d5f2948eba41eff925ea6 |
|
MD5 | ff1b88bb2a2afc3285945c5aa9b250b7 |
|
BLAKE2b-256 | 307bbb13b91b0b71419009d1093fca71ce6bfc8131b9f1642bb0ed6785ba791a |
Hashes for feyn-3.1.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37af0f581ba28d4ab8a36234702d219316e492e3c57bedbd46c5868110dd2caa |
|
MD5 | 09aa92f58b92434f259994039ebfabe5 |
|
BLAKE2b-256 | a3f6e2c3005af97f162fc15b281e3082f2323ab8866e4a5739691b7ebf039695 |
Hashes for feyn-3.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c49f4212bf992cc7ca92d679a50b528f606fd78ead5c3cbe7c0fb87e9282a90 |
|
MD5 | ec6dda464d6b17a97d0f4f6b54e5f629 |
|
BLAKE2b-256 | e3988a293b371081cb18182636fa1273fbbfdca5ed973cf39ae8401c770d2bd5 |
Hashes for feyn-3.1.0-cp312-cp312-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68ee7958d6bb2e3b573e0a53dabe6fbbd877f9dfabfb571e799301fed59244ef |
|
MD5 | e630ed0b844e4f5fddafd5aae899ae81 |
|
BLAKE2b-256 | 566faa999d3872eba1be452cc38f2a256a06006ee8320f33a4805178c9630af5 |
Hashes for feyn-3.1.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f60a15d1a4cbca7fc32c61b572ca4af8f4d917f2c75e4a6c4749b021425b9352 |
|
MD5 | 38c3998f67c922e645c91bfc7550c0ee |
|
BLAKE2b-256 | 003fa12e12f1a2ac94b822d5af43412c090a91134acf99a940252f0d5c3623d4 |
Hashes for feyn-3.1.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9462531b36746c871335cece750b27ad36284d5ae1cca618d912f85378599d2 |
|
MD5 | 80502fb20c69d06ef1e976a066a79bb8 |
|
BLAKE2b-256 | a93d821078d1dfae983eeb1dadebb0ff6287539ebef5da08b894dc698ddd7cfb |
Hashes for feyn-3.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3591b803ebf7faee45b0937bf557fd74334f37bfc183195f054eb9d8df807d1 |
|
MD5 | 084a87045e7d42b1f1adc8e2415c29c1 |
|
BLAKE2b-256 | 9bf6f267e9420ed54b95bf243b311ed974b3aa13be7f38c85340f7b873feb1cd |
Hashes for feyn-3.1.0-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50ef5cf2cc91f92c2d5b914776a78acc258061e7b595eceb80acfc713d88f779 |
|
MD5 | 52504be325421f8734348ad83cc3c253 |
|
BLAKE2b-256 | a28f8e75b4e3407a066a8e075d88103c459230bbdf11db32d8006fae418710e2 |
Hashes for feyn-3.1.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be2a85a153e0f6092ca40e540a8ce0cdaa29fed0e3fc1bee391350b0384eaeb5 |
|
MD5 | 305570ef660bd28513d56aac154d8908 |
|
BLAKE2b-256 | d49d5146808eeaa611c85eab650cec8878d5b83356b2017bf9f26c5500624bcf |
Hashes for feyn-3.1.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9175f8cfe5ed2de8d2a6881fcfc4ce723bea402469aec2a06c53592249d9c5ce |
|
MD5 | 18751a7459391c9d78fa8e37f9ffadfd |
|
BLAKE2b-256 | 24d24e68e55ac4f069c41ff741c690bdf611ca6dd0e64ec1ab6d04513eb49c34 |
Hashes for feyn-3.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 746c434bd23c3a3401dc8d49824e783f1b4c4ca2c6b50537857328b070691013 |
|
MD5 | de8afa63587d6b87c84ccfae43fab45a |
|
BLAKE2b-256 | d98309fcb101b69d35df886673072d6fdeb6f9faf4e565927410b0ee5e76d896 |
Hashes for feyn-3.1.0-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0476e86831034abfa291ffa267a9cf1c1c822b3e078fe566f2fbbebe8ed08fe |
|
MD5 | ade335431c1ed1156432d64d1f842736 |
|
BLAKE2b-256 | d6af1c3bea817a66fafdcaae52779aef590bad2f627631c48fdf7e53e3e78997 |
Hashes for feyn-3.1.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c788257a19e8f81c8ea12acf4a341e527cfe132556a31153e234dab34d9c7752 |
|
MD5 | ec88a1cee0b762b0214627521c60c931 |
|
BLAKE2b-256 | fd389117837c5f4bdfb12dc5fc4522c34676c56222a2015ef2c61b242c709862 |
Hashes for feyn-3.1.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aac9ea406b8d11c6880f197851693ba4d108e23a783eac47e6f1a4390b583c5 |
|
MD5 | de481b31281ecc71da61cb0258c74c23 |
|
BLAKE2b-256 | 837e7b27093d1d8309417aaee410a5a36024845aa8d6e9ef0d6a0df6b311176e |
Hashes for feyn-3.1.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de45da25a37c1d72d40889ce4d98ddff93ae24b176bae59e203c2669574a14fd |
|
MD5 | f2288e34901ae7dcb2af2ec692b1e67d |
|
BLAKE2b-256 | 6a723f37d86a6ac28292d16ef50b14af1197e68f195d3d2c344c7c31cedeaaa1 |
Hashes for feyn-3.1.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a0317fcda5c082674bc2657edd6660cac48edb4e6c4c37c165a029f6e3d4c91 |
|
MD5 | a25973bbd0f523d25d65f65e66201f7b |
|
BLAKE2b-256 | e051987ffa520a19045de565215bf42ecfaeaff9961ec1633d3faa3d9806a778 |
Hashes for feyn-3.1.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 693ab343825b3df200be977b2e1ce4ead15a23e4b949451b52524f9b6c55f8bb |
|
MD5 | 3229bde8ead7474d7ad8f8d07a31a899 |
|
BLAKE2b-256 | 19b95dc86f69ac960ca81eaa9137f9b0da2a58c418eca93a4a32f1cdb1b0fdac |
Hashes for feyn-3.1.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fc12a1db382036389b0ae0ba44ce9fd75b8d07b1e1d3e94c6d2b7c3febf54e4 |
|
MD5 | 0a8ea48fcbb657b4d16779f435383ee7 |
|
BLAKE2b-256 | 9d4d6383ce41631fc8757cd0ecddbd49f8f676bc5fa2f4461ab71410b62ddeea |
Hashes for feyn-3.1.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c77f5f3ae86939422215e5bbb475babb0c7acb6bd58336d305542b9077c0a96 |
|
MD5 | 199d6a63a5567d2db43b62c1f30eec89 |
|
BLAKE2b-256 | 49fd3318a8f532c2dcb07834ad813cae83b9806b9ab237ad50caa1e21c49f957 |
Hashes for feyn-3.1.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fe616ff058f46bf4f0b4024a621b727a52323a743bffde141cb85833587efb5 |
|
MD5 | d36568f608b320ee7c2212dfaf7952af |
|
BLAKE2b-256 | 02743fae74bbb285424cb0a7414d6aec8fa9972ceefd485b38f1a4c1c361cbf2 |