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.0.6-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4950ce8a0ca0a7f7532fd9010bff8832c915eb7d2a019a1c674a89cc7272870a |
|
MD5 | 24c0e0baeaf7d9137610ed9254c5433d |
|
BLAKE2b-256 | ab4bcb39f419b6f8c7d3f74d61dd0ab4e50ce66a0ca08364f5299c8838a98151 |
Hashes for feyn-3.0.6-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fd27911315ea9cfcfa3c04a4755a934ad1eb746c5183edc6e2aad3d484e9621 |
|
MD5 | e02381ddc11a9b571a7b581cffba21a5 |
|
BLAKE2b-256 | 544ff82ef7f6a1406d60fb11fd2b5fcb1b20c98faf3cab8f36a4aa1b30d6443e |
Hashes for feyn-3.0.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53df780fd2023b81f4b2433d7f24d8aa997198f33ec98d698e8ae40cba8bae77 |
|
MD5 | 29763e51461ba70b2cb0aee8d710ba0f |
|
BLAKE2b-256 | 0d00d931890c4a29eb659aa1d944fa768bb83a68d4029f506d9818e833601e55 |
Hashes for feyn-3.0.6-cp312-cp312-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33cd3be8b0014e3888b0c609b9e0f3515fa298270f67788c01f2ea4f9ad14fd5 |
|
MD5 | b73f69eeac37bc3522c156e116a823e8 |
|
BLAKE2b-256 | 208dad4987711d73287f85ec5d4c5e99ef1b9f352090222ca4a72f240b9eac4a |
Hashes for feyn-3.0.6-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ad391ea5d1e5ab01a6c9969efdc4c79df4995e2758c436bacbd4bc56a99b77a |
|
MD5 | c890a997b381cc922793970083db1d81 |
|
BLAKE2b-256 | 71fb78f0eaa88b637cfd88a8affb55aa44a0b26bedf5b7779f073ca67c8db817 |
Hashes for feyn-3.0.6-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbdf70417934ea3465fa6b5624714a65803714b83d9dad21079ff02d40c6c1bc |
|
MD5 | c3193cd68437f662de781ad41989eb5e |
|
BLAKE2b-256 | bffc86fa9410ffe958d14fa9e15776c55cd82ae722c035de8762dace1643818f |
Hashes for feyn-3.0.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 828f8f34788f3bb20dd2c32f18230a6ea71c7f074d9f7047bf01b15c2aefb69f |
|
MD5 | 7deb0864935f4ebb926d6c83aafa32a8 |
|
BLAKE2b-256 | 1b313a99a1120975851ed613b2ba83c4955698b5b0ae4b9d8de78b0b27c888ef |
Hashes for feyn-3.0.6-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31f4d08274b40a8a578d59e4f62c96b68b4331757c6bc82ae7557673cea1c583 |
|
MD5 | 1e76ecbaffa346291c380a1c7999302b |
|
BLAKE2b-256 | b95db33cb8de65c4e83e515f4b864ac0779d8942a1380c6c291d2da14e5a9cf2 |
Hashes for feyn-3.0.6-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42af900ad923724a6f138c2a3189b7014da98df2b904bb7be8ecff9e718b511c |
|
MD5 | b1eaebd808ca59227a2ff777f8c43468 |
|
BLAKE2b-256 | 9f070c7bb44cdca86b0b78b93d4d21e67b95825b072e73a82a6e88dfb6e820ac |
Hashes for feyn-3.0.6-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d7980d7613c87b07a025990be8b7f6ffdcc8a45d065b2c2058b1614a9ae0a6a |
|
MD5 | 4771558008a4e19863b3b6b11751232b |
|
BLAKE2b-256 | a5a3739c1c5751f5790dfa9de0ea0860456439bc5bd974ad3fed25404280d268 |
Hashes for feyn-3.0.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11c97252a3ced430e44a41aa54e6487ab38f2901d0ae854beead5c6808fc9513 |
|
MD5 | e48570b700c59c83c202d19027f8b030 |
|
BLAKE2b-256 | 668f458f502c8be8411cd970ba53e49a6a96c6e6134108f11f7d596ed6877a2e |
Hashes for feyn-3.0.6-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bb7380cc7fc96cf3887f455bbe84cfeb80f9688616faab9d81c9d7a3ab31892 |
|
MD5 | 8a3a529f56603ca51e887e877660a982 |
|
BLAKE2b-256 | 7d29e56144366c7b9f2abdf1b068d5d43e3ac2dbe01103ebebeec5441e354f38 |
Hashes for feyn-3.0.6-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44c7290321624edd92e60710278b393407be381df12f6aa2c53f4fe9e76162ad |
|
MD5 | da5bf4e31d1f831b55b2a0891fdecb34 |
|
BLAKE2b-256 | ad5e68a3205da88b4f8c0e03e0ecec522b1dde61106fd0cb4cbfda4a2a32a314 |
Hashes for feyn-3.0.6-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92d7a17f5f08938ced21fee7d2df5e539ad139e47b92bfbaf881b07b3f0ba4ae |
|
MD5 | 27bab78a282612fd48a404720ef7e26d |
|
BLAKE2b-256 | 1581fe38512fe9773a4c287f700beac12b3d8f1b492cb5ff6a379ddf4c1e52c7 |
Hashes for feyn-3.0.6-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b71959cdc68e7fc82b8cc116c8189cf20ba2e36d388a588495a205399583c9b4 |
|
MD5 | 552b647bed412aafd2e34b9486a9171b |
|
BLAKE2b-256 | b9753a6c5ed4ebf63351a152a993a168acb8f568c4726541acfd2de1cccd2df0 |
Hashes for feyn-3.0.6-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fda3d8c56d1844f8cd5ea0c9713b128866ab9c717ea7a406cae325ab87d43b0a |
|
MD5 | 78aeba60f2988888cbd8c0592adfec03 |
|
BLAKE2b-256 | f6d1d4f1038c9af56c0757422621539660196ebf238e17a29573c4845ef08ff2 |
Hashes for feyn-3.0.6-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db24265b2f523fb54fc311d720ce319a5086aa2a8740eb136b8f501636c7ec1b |
|
MD5 | f7e84ac43848f2fa8601115d690fb0ca |
|
BLAKE2b-256 | 7e7e06935698f4bdd0193cf9848850f13ae6a9e650b4ba2737f398600fa3d5b5 |
Hashes for feyn-3.0.6-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96fb02b69c722ca6d61873de2b228bc38ca361080a0a1e969cba2982dc01cafa |
|
MD5 | f6556401db2c7a337a32bf0537e3cdcb |
|
BLAKE2b-256 | 8794642607da164b8cd71a03618a856e96f3b1f7667a03b10e8fe6ff18a228ea |
Hashes for feyn-3.0.6-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91a774fddc2cd84f385f84472ef7352446f8531b0a4e68af9963a1677edcacf9 |
|
MD5 | 57e184712063959377ccac0a8e61cf28 |
|
BLAKE2b-256 | a2ca14187e7bf8a6429563d26f7b16a09056efbb26c2ee296df6ca91a2d96593 |
Hashes for feyn-3.0.6-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45ea27099d706c7b029fb9a6470ef8cb44080f2b895f0b8a4a739a04da86d09c |
|
MD5 | 605b229b7560c9aa654ed7081ff7d242 |
|
BLAKE2b-256 | 16c06b60923f31da710accbf0860bc0d63db4beeeae607ae26bc1b8b2ed375c9 |