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.7+ 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.0.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49fb5420e4411af00b193de7924a01b898a6c1b4e939640746ca7c9db10d750d |
|
MD5 | 6ac5bb43b8bf98ae23601265e53a7b6e |
|
BLAKE2b-256 | 62f0ce0d1ddb66d917368fdcbb9a7d2abc79e4cfe60af77293c9332ce64cf83e |
Hashes for feyn-3.0.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92b9a994c63103998944e7cc9db9a888f20f01502cddfa2f4dcbcff314c22966 |
|
MD5 | a000e7b45051e9c530c94b6b38d8ed83 |
|
BLAKE2b-256 | a9ccd822d842cdf189fcef8553053b57de57791e440b664db1ebff2ef9932355 |
Hashes for feyn-3.0.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a02cce3607604017f8f5c3b542a28f96be1afb3b89d435b34c424f7a26d8426 |
|
MD5 | 98147e9efadbb624d34aacf45d1e1428 |
|
BLAKE2b-256 | e8153e220ad2273e03bbafc170b5200adcff00d0319fa586857c4aff9392a705 |
Hashes for feyn-3.0.1-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a0e87ed8a5558dc87a39479e4bfd362c8c4640b5299c411c2d1d5dca7ea6b25 |
|
MD5 | f12097d1a10a06f0549f66544aabe706 |
|
BLAKE2b-256 | f511668a61dcabbe4cdcf8e8e873bb2930fd31c2c92834b73451b1c8f5cff48b |
Hashes for feyn-3.0.1-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6707bb11b10e762db46dc28e4cbaf4ba4c8ccf98c4751034fab1f5d1271608a |
|
MD5 | 55228ed5aae78b7502cfa4843974ca11 |
|
BLAKE2b-256 | 37873147695a34b1c666435af9688f32f7996f94df49cb389174a37f54378372 |
Hashes for feyn-3.0.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 801b8f1dc4237aa71004a653198800e2552ed3404546b8fd8dc730329333132b |
|
MD5 | 616198fa37788870afeea92461dab3b9 |
|
BLAKE2b-256 | 7efa77b644a493916811edbf1e410e4214bc1ec5489106e437bbd5d0df5f9ad1 |
Hashes for feyn-3.0.1-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2b0d7fab47bddff5da538b4a172b5599ede096636f2675b184fef8abf192144 |
|
MD5 | ac6d5fff872bfe426af8e2a1ef704135 |
|
BLAKE2b-256 | 25210255dfdf458d732a308960f348845ec645dc31d5e993c67d4ce438a3ec00 |
Hashes for feyn-3.0.1-cp39-cp39-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 902c7f007112a380786ec74fa386794222dfc8999cee05f86fee39c518307727 |
|
MD5 | 689f65a92f15c85316f246eeded571cb |
|
BLAKE2b-256 | 5f174ff14b3c7869006b6a16a0e858b464572d3d2d62ad9f7f961892afa9cd32 |
Hashes for feyn-3.0.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01282f8e645da360d751e5c7070f757dde4823e6c6bbae18236452c7fdc53da2 |
|
MD5 | ed01d20685820469f609a3214d79e688 |
|
BLAKE2b-256 | 9b414e7cd689b679ada124503ce55880f43e6a365aa7fc54b019bdb244e2ee38 |
Hashes for feyn-3.0.1-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23455e3448764719f8f15b5f14e47a6f476ebfe08b76f4353aaea43d9484d7ad |
|
MD5 | bcc7f5def71c4397b523309fe55c1239 |
|
BLAKE2b-256 | b53f869addb3ee6f4ffa9bfc7dc8d33ab5f6206428e073ce4bcad48eb5180010 |
Hashes for feyn-3.0.1-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1f59bab2d2d5482f10dbb8541064495ee63caa14853554b2ee374a697adad68 |
|
MD5 | 1171c270e87ce16764a4f0dd99995ff3 |
|
BLAKE2b-256 | 875b1c60fd5527830306885f175838ad406723cb1ec0432a4b5351cefdc66cd4 |
Hashes for feyn-3.0.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfdb3f5cb150951238d1933d850cb7332a0a7d4df4a2d0bd2894229092304928 |
|
MD5 | 719a588c7b3621522a3059bad32e64a2 |
|
BLAKE2b-256 | 7549e7b28864781798e875d53c99b14d9bfb3c8d08608789950289faecd33f51 |
Hashes for feyn-3.0.1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8ac244c4e90046e086ac472bf7ea9c94b7306f4f8396401935ce264f554f1ce |
|
MD5 | 71a2dda4fe2942f76dbde76a9c499bb2 |
|
BLAKE2b-256 | 44057455c66cd07d16fc8387a4ebf8a58241d9dbb893433f30c91a7fa74e866d |
Hashes for feyn-3.0.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d92d9a38f649f5eb7a12a8bbecff46ba08e3c7133267f5c4b82b97ade3b06ef8 |
|
MD5 | 3fcf03974b98b8f5eeb55d745f94c122 |
|
BLAKE2b-256 | 8951397131b858b8a4d108070792930f972fe8591ad3ee049013629a6fd23679 |
Hashes for feyn-3.0.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0c775d0d670c10cf782e466fe46a69730827f1daaa6d15f47fedc652a1d005e |
|
MD5 | 3787294d485b64eddc6acab987c5d782 |
|
BLAKE2b-256 | 796bd72122713dfdc246e8ef6534a12d26bb72093241a01a60ba0dc0a89391f9 |
Hashes for feyn-3.0.1-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d8d4dc2d25735b2b23c050addfc028532c86335de5d4832abfc4182f17cf131 |
|
MD5 | 7635f6afe7c1f44d70aa1b619851c336 |
|
BLAKE2b-256 | 2b21a3f9378bb20480095d1e8c4dfe7c072744f1b0938261f0cf8a5480753a46 |
Hashes for feyn-3.0.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c8e7bf1caa8d7dfd7673d83a2adcba48f843a818fc3897e05c27d8e85e329b0 |
|
MD5 | 6db5a7f970d34db58d406150cbd71b5a |
|
BLAKE2b-256 | e57787656468cf92d01c0929ba7b425915bdbf9e66056a03779a5d4702c02947 |
Hashes for feyn-3.0.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b651aa28ef9306a968565f11924834ea64dcbf3ae5423344442271f6faa4d806 |
|
MD5 | a23e7a63d7202f2ebd20c91ea1da13d2 |
|
BLAKE2b-256 | 11543cf1c58012a7c85c9339f06bd8e6702f28fdd4e0e10b60ad3087ba26b980 |
Hashes for feyn-3.0.1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 273f2130c8ce79307be64d7562f5f67262dc30d14842678164a34b4d31e79c00 |
|
MD5 | 011f490f65866b2a91ef2894357983f4 |
|
BLAKE2b-256 | 36c28375ad97ca6074a071faa9534412ba21607d563f948c932830c62dccbfab |
Hashes for feyn-3.0.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d54a2f2fee49d18be060b2feeda66c85fe41411513bf79067a415f3f1da45f85 |
|
MD5 | 0392c5ded3a0975cc43ee3600e0e596a |
|
BLAKE2b-256 | fef2a6573050438daf6e5d68ab8cc600adb0d0ffed4f331d59c6a8d8c6a5964c |
Hashes for feyn-3.0.1-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf3a7cf88416878562c1fc9cb145da068cb0b8dc80186940b13def0f65a85660 |
|
MD5 | 4d9f5edcfb534b88ea4583af94a2c5bc |
|
BLAKE2b-256 | 7cd6079b3cfe00ab479a3871e173ea10d0ee8732f06f738d03a8bac41b9b0692 |
Hashes for feyn-3.0.1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0588e21b4dd6a888a0741dafd0d222b06969689b765cb6e1b8c72592710a2d45 |
|
MD5 | eeb1ff266a88e5350c42aaf904b239ec |
|
BLAKE2b-256 | 3bacda596fd1110bdec26accb3410efb3c7fcc5f0672108ec32fb652d732beb6 |