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.2.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79c87cd709d3594012d0267e5c784b1a8efa2e71fb9f96763381d147034e0c2c |
|
MD5 | 46acb2a449f79e71f0565b437908b8d5 |
|
BLAKE2b-256 | 3d32db91f8216ae7dba24fe7b884f9dab976880756006ebb890a41f6f3f28fa9 |
Hashes for feyn-3.2.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6416a8d52da26d72df460a7df671e8011b0b5d2d08dabaeb49c4fbb59546ed5 |
|
MD5 | c469a1dfc0b7cb8379cc78d5fa14692a |
|
BLAKE2b-256 | 6f0cf79c432927ff2f03afa36120f907b9c1099e9a82dbb684a6a7bce7506539 |
Hashes for feyn-3.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 013628e0c9dc0ad1f5a36ac5ab493c4469b0eb923604a6ff98a5ec83674cc8a9 |
|
MD5 | 1e734be484eda89ecdfeda74f55c27c9 |
|
BLAKE2b-256 | c76f656e1e969c9e049433d6c78986aec25e754b6dd1bf9db1639c96ed3e89cd |
Hashes for feyn-3.2.0-cp312-cp312-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8457e70c0c0bbbac448a731ef91b62b372a545395258b744e9c61943ac2e4620 |
|
MD5 | 18fdd243f3ee46181ebe690fca4fcda3 |
|
BLAKE2b-256 | 18d0d426a3c2a261d8c29954144926d5d1038df8ed0588334dc861afae8ab842 |
Hashes for feyn-3.2.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51f268430172d06dcab2a8190413c735c398d9483bacb31ba6be331cab4e3152 |
|
MD5 | c693044d8115e88ebce4ff3ab23c2ef2 |
|
BLAKE2b-256 | 37c0aff4d01e07056ed082fccc179ac735bb80004164ee4d10d8d90807890a42 |
Hashes for feyn-3.2.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a7304314658faab7f0bc211429159f2646654b94f65d949e7da3b924ee01f63 |
|
MD5 | df941a082d059d8cbf6df5b9c3aeed30 |
|
BLAKE2b-256 | ee57eae21213d876e1b53216ff1ea0495b9faf1f0198a45c200a8cb0d7215656 |
Hashes for feyn-3.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50c4fd360c58a4963feb2f43953fdd5ff99f6b1802edd3b1b654aeb1b6900f7e |
|
MD5 | fa8c8a376c96f006ee3cb23be598ad61 |
|
BLAKE2b-256 | 925375f792fc0f3ce878a3f34f23e7188d191788a0863862c151fdb418f8733d |
Hashes for feyn-3.2.0-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de1fade36185b3faa30fa0cea9e1d2693efed4eae584febf8075bab654aec9b8 |
|
MD5 | 2edb0f84615107736a2a5e16bdd9190c |
|
BLAKE2b-256 | 2aa2e5ed7559d6a6fd3c97653bb0a851152ee5c7ea9251329fdf629b6d1eb5c2 |
Hashes for feyn-3.2.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44cc7de34a23cca2d39775f2f8cd2e7177820a27a1f5da4a2534f8e2c9d02729 |
|
MD5 | 2859773121744cca0fb77d66097b5e0b |
|
BLAKE2b-256 | 4a7597b62171e76964552e1bb829c02ce04167e2b09c4be9e6aa1456b062a75e |
Hashes for feyn-3.2.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f5dd50fe1d536c301792ab7b72c3e855eea52a05f574680cfb985d37e5cd414 |
|
MD5 | 0ed4d090829e3c37620ed53eaf98a20e |
|
BLAKE2b-256 | 63639a1f6510f7b28312c2413b0e3bff944e870f6fb2972e233d51b2ab84e942 |
Hashes for feyn-3.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c58fe632886ff21cf3575d633f27fbd802f09f303ef42890e8471fc36d5bc05 |
|
MD5 | 622cadde6b9110eda49d947fb4d65c9c |
|
BLAKE2b-256 | 118f41d2e32069fbb82f316dc38b5f9fb94c66ef2bb3726731d3629b0440e792 |
Hashes for feyn-3.2.0-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8e674e12285c099e57b8309fbbe7a63c10cb193c9bb118ceade9df666d9cd5a |
|
MD5 | 571c4bb327f56631a919577f0b0f0ee5 |
|
BLAKE2b-256 | 922ba713ad5293caaabfe39e1f093035128b10a02c315594a3811f981b45c1b2 |
Hashes for feyn-3.2.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0689e37ea241e35a62d67d560c759bc97fc29eeb798a33eadf3c47f040f9ab72 |
|
MD5 | 391c0386237cdcdf76cb0603065c81dc |
|
BLAKE2b-256 | e21eb6195b191bde6e5a8cf1da609ca1b59539eecc5b841494b2cc02ab0c5231 |
Hashes for feyn-3.2.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b569ff0d006b98b04910adddfbf9e6ec3bd816e74a4be375ce4c869a58fcef9 |
|
MD5 | 1d013ac48761409085dc987f30c56129 |
|
BLAKE2b-256 | b7f35fea0139fb5a862d300819ad8425d21758990e2e90ef354a981405a34c08 |
Hashes for feyn-3.2.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aba907e985fb3f35689684b18261232bf88bcad5e4f294deafa44064f7499142 |
|
MD5 | 1e57cfca69c089a5fe587a7ae3787d03 |
|
BLAKE2b-256 | eacf2a2542723ad33fec07f4de2e2e928f798aee8d89a63dee7a3351b70f9fe3 |
Hashes for feyn-3.2.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10f2726e591c48417e050b000230a73a99ea6d120919516375f5a0aa48994f79 |
|
MD5 | 392a2f8e35ae388030f9308418d18935 |
|
BLAKE2b-256 | 97a050739a83df83e6803fda0aca2dbdb0e9db251873c1b36a99c620321c192b |
Hashes for feyn-3.2.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33d886c629774b7b53b88de7adb9a3dc5d2a6cc5657613707adbe024ecfb23f0 |
|
MD5 | 46691f252f7904ca2fd408a17efe8b08 |
|
BLAKE2b-256 | adb0c7d1ac9cfa85b1b3d92968354954a605ffa618d9c520fb25a81618d4db19 |
Hashes for feyn-3.2.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dbccea0212d533ef157d1cf45dbd99fd45bffbc5ff233ab27582380655ef503 |
|
MD5 | dc3430202f991c41d6718d2036c86e5d |
|
BLAKE2b-256 | af05470accfd1da196a7f488d92bb565e6899747f610b48e135b286453009568 |
Hashes for feyn-3.2.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f457649583109fc70026e2ddd0d499cc95a50ade5a2fb432da19b49f6d55b032 |
|
MD5 | 22eb73a8be184e0cd58c83459fe5d759 |
|
BLAKE2b-256 | ebe46924eb280b95bdf353c0b50a60e6a621a57881a0cf6ee553ff404ef5a4da |
Hashes for feyn-3.2.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f273d5efc7c22361546bd4364c4f5fac75707495ab559d7a190ac1281b014216 |
|
MD5 | 939b3affa6005756981577a3e71899f5 |
|
BLAKE2b-256 | fd3be9240a1caf4bdb376b6af35fc52929bfe03eb2ad15a091504f16133749ee |