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.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02704c7ef6de451b0f1ab6a0820954222a154222f9704960521b63710e023536 |
|
MD5 | 21217391b02dbbdb3de48eb992325d6b |
|
BLAKE2b-256 | 868f541a7a3ad4696ab2bb7ef8c93019e8d2a38c051a65835ba4aa5599b76c72 |
Hashes for feyn-3.3.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c082bcdf5fe59bf848534ef7f7d9c65df1f1a62ae90a4ac5768553939c628145 |
|
MD5 | 610e7dfda700255eb98e49e93e77b3b2 |
|
BLAKE2b-256 | eb1e24dd2bc8e1a3af53bbd6430f101bd984fd1c1e9fbf2550c25ac7ae66b378 |
Hashes for feyn-3.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d06257ed035651bbb30b1712a4f8923c3fa9b3ccb2f4e5574ab3faabe387249b |
|
MD5 | 4c995cae6de91241aac04e97df07e917 |
|
BLAKE2b-256 | e2ad74fa2f6718fc9e8358c6c87c1ca5c96410fdb3022abe8df3fcf782736936 |
Hashes for feyn-3.3.0-cp312-cp312-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b1885fe8e7f81ead791cc0f07c3d4944301fdd02849d8fafd05f90d1db28ef8 |
|
MD5 | 5baf41eaaa43c9e92e69e30187dce1aa |
|
BLAKE2b-256 | efe28299279e1b3bd37c0139e08e4fe65760b16332be6961229108e914c2d2b3 |
Hashes for feyn-3.3.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9060c2d268394d1bd2e04416673631a7dac2bcb305255054df393a7030a120e |
|
MD5 | 67ba4064df1fefcca6d994b30bc3c5ab |
|
BLAKE2b-256 | 44eb40832f23e83e96c93e9353dda8a2cd0df2267d993b420556beca5087606e |
Hashes for feyn-3.3.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9aaf5316c20475001edac8584b7eacd650c306dc3351ba9b9753cde76b6fd3ea |
|
MD5 | c22717df70dd8ad5d105f0247fa82a16 |
|
BLAKE2b-256 | 4a7a8042e31a5592649e37fa1c3756ff29f516b2dd63dfe1cf57b7a5f94028e8 |
Hashes for feyn-3.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc8efd51b8c10bf087b8d70df669ce1503aa863419ae40fa1bf140f3d4a8dd73 |
|
MD5 | 5a42231adac520dce6de52948b3dff56 |
|
BLAKE2b-256 | 1f56305efee718effbf008f3df944ebf1cd82d48a933bc9deb070ccd942f0d5d |
Hashes for feyn-3.3.0-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d9c8a12cc7aa92716c5abd55f7d910dd9d937b7393c635cbe1ef361e180e9f3 |
|
MD5 | f7357da857ea8006844f7cd701ca837d |
|
BLAKE2b-256 | de26a0fded8cf1c6236853afc9486ece759e67b83d9d17c6d64ade00f2e31a4c |
Hashes for feyn-3.3.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f7298661f77c22de7206afcbbaabacb934c4a189b31987ce124d601d553b41c |
|
MD5 | 85ffef78a3557b9e8343439fba47d736 |
|
BLAKE2b-256 | 21aa0313970c4b1c51a097483912bdd11f3c7213a75382cae9358541ce86fe4a |
Hashes for feyn-3.3.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57f30241151df3022442b67b7cb4954c49912094ae71f415ec75760e6d9fa1d6 |
|
MD5 | f1a76a9948115e488fcefc68258f68b9 |
|
BLAKE2b-256 | eed4d0e381fa63f8687771f4c13873d2d5c7468213187d5c3387646b9c77228f |
Hashes for feyn-3.3.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9c6fc72f839133f97839605897601074d419820f67c6924029dc824f796c1ae |
|
MD5 | de04253b148cc48365c11485cd8ebccb |
|
BLAKE2b-256 | dd933c31e095e6dbade67a5897bc6fe8894c82d4e571456efb65c27ed88c6a23 |
Hashes for feyn-3.3.0-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 097d7d55214ba92392710f5153915c12def3653a9e7ca77de1018f2801da5566 |
|
MD5 | 4266204448f3fcdd65baf5e4c31c19d2 |
|
BLAKE2b-256 | 9cd702833ef8396b4bdd8e5e1c5916cdc3d00faf9ac390ca5b1b53544ace1b7c |
Hashes for feyn-3.3.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d38b38c9ab4d11b74bc2a40917f3e587adb101ebd5d249a58b9588db17daf21e |
|
MD5 | 69bc56f432412aa2daa42530f19d7af4 |
|
BLAKE2b-256 | d872c7136d87d82d0d693a2551e45e9258f7e3dfe9713bf21a413d999c8b54b1 |
Hashes for feyn-3.3.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d987e23132a15595f89f1a2efd87e14cd5540cbd31e22e3f630537d2593b49a |
|
MD5 | dec4b934f82d45c0d7d77cee567fdd91 |
|
BLAKE2b-256 | e5de4c070d742d84b6a266b6370ffbf91bb6d368d740f9b8327c245fc116351a |
Hashes for feyn-3.3.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e187bf41d9ddd17f3def7eb2c12da2e9dd0a0d6133d68a2c57bf49886d0479f1 |
|
MD5 | 4642600ea2fa1efdc5febbf99a006a7d |
|
BLAKE2b-256 | 76a873bf986048e72ae3e6535707a8cd02b328fc53d5fd2d4ad00a0b1020813e |
Hashes for feyn-3.3.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1251ac167baa1d7a249ef9aa287365cdfb48b59ba6be2353230c5a673f5f1ba7 |
|
MD5 | 7a809ae06997ccc17ad58bb46acd0b0c |
|
BLAKE2b-256 | ab0ba2e95ebe93b050e7394baf34f7b685965e6bef6a98ae44b031ba73ce889a |
Hashes for feyn-3.3.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3891323cddd02d7bddb9817d67378e4f17db001916dde4b75c7860370a6ab033 |
|
MD5 | a740460fe2bcbd3d8f2333c9e5b68f7e |
|
BLAKE2b-256 | a241864a632d34d11067e8e35f71f23e84010148f5e3f2944d3b0adb173394f5 |
Hashes for feyn-3.3.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2559244811f6ed8474f811964d9e13feca0e56af3b4a1c06c2bb4095aa9e315 |
|
MD5 | f2608b12a31403942788c4f6302fe629 |
|
BLAKE2b-256 | e1bf037f49d7916748b096fde81154a15e82fb600bd23d9d3b8c93ecec32907c |
Hashes for feyn-3.3.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35c26facd3f76537a92aa6c6163440905803de5eabeab1c018c1a95a81452a27 |
|
MD5 | a90055b9f9dbd3a58577453335fa4e13 |
|
BLAKE2b-256 | e6db1dbe6288d6988c39c523f57ef5bd35b175714acfbbd3f9ea4753e50b19c2 |
Hashes for feyn-3.3.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ed20c0c1926c107a0227a6e2b46cc5569b8cdfd7afd02037f5aee2ab31b2701 |
|
MD5 | 5ba2bb594da11dcbbba2533a886960fb |
|
BLAKE2b-256 | 7309db6f59682a126ae199ae65344de350a475946a6e7f10319aaf6a6cc75ed9 |