featune 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- featune-1.0.0/.gitignore +34 -0
- featune-1.0.0/LICENSE +21 -0
- featune-1.0.0/LICENSES/TabPFN-3.5.txt +63 -0
- featune-1.0.0/LICENSES/TabPFN-v2.txt +201 -0
- featune-1.0.0/NOTICE +14 -0
- featune-1.0.0/PKG-INFO +82 -0
- featune-1.0.0/PYPI.md +41 -0
- featune-1.0.0/README.md +263 -0
- featune-1.0.0/README_en.md +252 -0
- featune-1.0.0/benchmarks/audit_prompt.py +157 -0
- featune-1.0.0/benchmarks/datasets.py +260 -0
- featune-1.0.0/benchmarks/run.py +572 -0
- featune-1.0.0/benchmarks/summarize_tabpfn.py +372 -0
- featune-1.0.0/benchmarks/wide.py +208 -0
- featune-1.0.0/docs/en/guide.md +175 -0
- featune-1.0.0/docs/en/reference.md +253 -0
- featune-1.0.0/docs/zh/guide.md +184 -0
- featune-1.0.0/docs/zh/reference.md +264 -0
- featune-1.0.0/examples/claude_search.py +68 -0
- featune-1.0.0/examples/config.json +30 -0
- featune-1.0.0/examples/data/README.md +5 -0
- featune-1.0.0/examples/data/adult_income.csv +45223 -0
- featune-1.0.0/examples/data/loans.csv +241 -0
- featune-1.0.0/examples/quickstart.py +106 -0
- featune-1.0.0/examples/quickstart_en.ipynb +351 -0
- featune-1.0.0/examples/quickstart_zh.ipynb +351 -0
- featune-1.0.0/examples/schema.json +38 -0
- featune-1.0.0/featune/__init__.py +83 -0
- featune-1.0.0/featune/__main__.py +14 -0
- featune-1.0.0/featune/budget.py +67 -0
- featune-1.0.0/featune/cache.py +119 -0
- featune-1.0.0/featune/cli.py +200 -0
- featune-1.0.0/featune/compiler.py +293 -0
- featune-1.0.0/featune/context.py +398 -0
- featune-1.0.0/featune/diagnostics.py +142 -0
- featune-1.0.0/featune/evaluation.py +381 -0
- featune-1.0.0/featune/fingerprint.py +169 -0
- featune-1.0.0/featune/ir.py +307 -0
- featune-1.0.0/featune/llm.py +359 -0
- featune-1.0.0/featune/logging_utils.py +45 -0
- featune-1.0.0/featune/memory.py +150 -0
- featune-1.0.0/featune/reporting.py +196 -0
- featune-1.0.0/featune/retrieval.py +325 -0
- featune-1.0.0/featune/samplers.py +649 -0
- featune-1.0.0/featune/schema.py +304 -0
- featune-1.0.0/featune/storage.py +177 -0
- featune-1.0.0/featune/study.py +1311 -0
- featune-1.0.0/featune/tabpfn.py +348 -0
- featune-1.0.0/featune/torch.py +359 -0
- featune-1.0.0/pyproject.toml +47 -0
- featune-1.0.0/tests/test_autonomous.py +73 -0
- featune-1.0.0/tests/test_benchmarks.py +61 -0
- featune-1.0.0/tests/test_context.py +343 -0
- featune-1.0.0/tests/test_core.py +545 -0
- featune-1.0.0/tests/test_interfaces.py +136 -0
- featune-1.0.0/tests/test_llm.py +402 -0
- featune-1.0.0/tests/test_logging.py +31 -0
- featune-1.0.0/tests/test_search_contracts.py +421 -0
- featune-1.0.0/tests/test_tabpfn.py +376 -0
- featune-1.0.0/tests/test_torch.py +59 -0
featune-1.0.0/.gitignore
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.venv/
|
|
2
|
+
.venv-*/
|
|
3
|
+
__pycache__/
|
|
4
|
+
*.py[cod]
|
|
5
|
+
.pytest_cache/
|
|
6
|
+
.ruff_cache/
|
|
7
|
+
*.egg-info/
|
|
8
|
+
dist/
|
|
9
|
+
build/
|
|
10
|
+
.coverage
|
|
11
|
+
.coverage.*
|
|
12
|
+
htmlcov/
|
|
13
|
+
coverage.xml
|
|
14
|
+
.mypy_cache/
|
|
15
|
+
.tox/
|
|
16
|
+
.nox/
|
|
17
|
+
.env
|
|
18
|
+
.env.*
|
|
19
|
+
!.env.example
|
|
20
|
+
runs/
|
|
21
|
+
.ipynb_checkpoints/
|
|
22
|
+
*.json
|
|
23
|
+
*.csv
|
|
24
|
+
# Maintained example inputs, not generated experiment artifacts.
|
|
25
|
+
!examples/config.json
|
|
26
|
+
!examples/schema.json
|
|
27
|
+
!examples/data/loans.csv
|
|
28
|
+
!examples/data/adult_income.csv
|
|
29
|
+
# Publish only reviewed Markdown summaries and the referenced comparison figure.
|
|
30
|
+
benchmarks/results/**
|
|
31
|
+
!benchmarks/results/**/
|
|
32
|
+
!benchmarks/results/**/*.md
|
|
33
|
+
!benchmarks/results/tabpfn-v2/comparison.png
|
|
34
|
+
.DS_Store
|
featune-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Featune contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
TABPFN-3.5 License v1.0
|
|
2
|
+
Last Revised: September 9, 2026
|
|
3
|
+
Prior Labs GmbH
|
|
4
|
+
|
|
5
|
+
Prior Labs GmbH (“we” or “our” or “Company”) is pleased to make available the weights, parameters and inference code for the TABPFN-3.5 Model (as defined below) freely available for your non-commercial and non-production use as set forth in this TABPFN-3.5 Non-Commercial License (“License”). The “TABPFN-3.5 Model” means the TABPFN-3.5 AI models and models denoted as TABPFN-3.5 and their elements which includes algorithms, software, checkpoints, parameters, source code (inference code, evaluation code, and if applicable, fine-tuning code) and any other materials associated with the TABPFN-3.5 AI models made available by Company under this License, including, if any, the technical documentation, manuals and instructions for the use and operation thereof (collectively, “TABPFN-3.5 Model”). Note that we may also make available certain elements of what is included in the definition of “TABPFN-3.5 Model” under a separate license and nothing in this License will be deemed to restrict or limit any other licenses granted by us in such elements.
|
|
6
|
+
By downloading, accessing, using, Distributing (as defined below), or creating a Derivative (as defined below) of the TABPFN-3.5 Model, you agree to the terms of this License. If you do not agree to this License, then you do not have any rights to access, use, Distribute or create a Derivative of the TABPFN-3.5 Model and you must immediately cease using the TABPFN-3.5 Model. If you are agreeing to be bound by the terms of this License on behalf of your employer or other entity, you represent and warrant to us that you have full legal authority to bind your employer or such entity to this License. If you do not have the requisite authority, you may not accept the License or access the TABPFN-3.5 Model on behalf of your employer or other entity.
|
|
7
|
+
This License applies only to customers who download the TABPFN-3.5 Model. For customers accessing the TABPFN-3.5 Model through our API, only our General Terms and Conditions apply.
|
|
8
|
+
This License is not available to consumers within the meaning of Section 13 of the German Civil Code (BGB). By agreeing to the terms of this License, you confirm that you are acting for professional purposes in terms of Section 14 BGB. We may request proof of your commercial status at any time, and failure to provide such proof may result in immediate termination of this License. Such proof may be provided through submission of the business registration, extract from the commercial register, or VAT ID number.
|
|
9
|
+
|
|
10
|
+
1. Definitions.
|
|
11
|
+
a. “Derivative” means any (i) modified version of the TABPFN-3.5 Model (including but not limited to any customized, fine-tuned, retrained, or otherwise adapted version thereof), (ii) work based on the TABPFN-3.5 Model, or (iii) any other derivative work thereof. For the avoidance of doubt, Outputs are not considered Derivatives under this License.
|
|
12
|
+
b. “Distribution,” “Distribute,” or “Distributing” means providing or making available, by any means, a copy of the TABPFN-3.5 Model and/or the Derivatives as the case may be.
|
|
13
|
+
c. “Non-Commercial Purpose” means use for testing, evaluation, or research not tied to commercial gain, production deployment, or revenue generation. This includes internal benchmarking, academic research, and experimentation on private or public datasets as well as Data Science Competitions as defined below, provided the results are not used in commercial decision-making, client deliverables, or paid products/services. For clarity, use (a) for any revenue-generating activity, (b) in direct or indirect interactions with end users or production systems, or (c) to train, fine-tune, or distill other models for commercial use, in each case is not a Non-Commercial Purpose. A Data Science Competitions in the meaning of this Agreement is a publicly accessible contest hosted on established platforms (such as Kaggle, DrivenData, or ChallengeData) or by academic/non-profit institutions where participants compete to develop predictive models for specified datasets.
|
|
14
|
+
d. “Outputs” means predictions, scores, probabilities, recommendations, explanations, or other results generated by operation of the TABPFN-3.5 Model or any Derivative from datasets or other inputs supplied by a user. For the avoidance of doubt, Outputs do not include any components of the TABPFN-3.5 Model, such as any fine-tuned versions of the TABPFN-3.5 Model, the weights, or parameters.
|
|
15
|
+
e. “you” or “your” means the individual or entity entering into this License with Company.
|
|
16
|
+
|
|
17
|
+
2. License Grant.
|
|
18
|
+
a. License. Subject to your compliance with this License, Company grants you a non-exclusive, worldwide, non-transferable, non-sublicensable, revocable, royalty-free and limited license to access, use, create Derivatives of, and Distribute the TABPFN-3.5 Model and Derivatives solely for your Non-Commercial Purposes. The foregoing license is personal to you, and you may not assign or sublicense this License or any other rights or obligations under this License without Company’s prior written consent; any such assignment or sublicense will be void and will automatically and immediately terminate this License. Any restrictions set forth herein regarding the TABPFN-3.5 Model also apply to any Derivative you create or that are created on your behalf.
|
|
19
|
+
b. Non-Commercial Use Only. You may only access, use, Distribute, or create Derivatives of the TABPFN-3.5 Model or Derivatives for Non-Commercial Purposes. If you want to use the TABPFN-3.5 Model or a Derivative for any purpose that is not expressly authorized under this License, such as for a commercial or production activity, you must obtain a commercial license from Company, which Company may grant in its sole discretion and which additional use may be subject to a fee, royalty or other revenue share. Please contact sales@priorlabs.ai for a commercial license.
|
|
20
|
+
c. Reserved Rights. The grant of rights expressly set forth in this License are the complete grant of rights to you in the TABPFN-3.5 Model, and no other licenses are granted, whether by waiver, estoppel, implication, equity or otherwise. Company and its licensors reserve all rights not expressly granted by this License.
|
|
21
|
+
d. Outputs. We claim no ownership rights in and to the Outputs. You are solely responsible for the Outputs you generate and their subsequent uses in accordance with this License. Outputs may be used only for Non-Commercial Purposes. Any use of Outputs in production systems, business processes, commercial research services, client deliverables, or revenue-generating activities requires a separate commercial license. You may not use Outputs to train, fine-tune, or distill a model that is competitive with the TABPFN-3.5 Model.
|
|
22
|
+
e. Compliance and Safeguards. You must ensure that any use of the TABPFN-3.5 Model, Derivatives, and Outputs complies with applicable data protection, privacy, export control, and AI regulations (including, where applicable, GDPR and the EU Artificial Intelligence Act), and that you implement reasonable technical and organizational measures appropriate to the data and risks involved.
|
|
23
|
+
|
|
24
|
+
3. Distribution.
|
|
25
|
+
Subject to this License, you may Distribute copies of the TABPFN-3.5 Model and/or Derivatives made by you, under the following conditions:
|
|
26
|
+
a. You must make available a copy of this License to third-party recipients of the TABPFN-3.5 Model and/or Derivatives you Distribute, and specify that any rights to use the TABPFN-3.5 Model and/or Derivatives shall be directly granted by Company to said third-party recipients pursuant to this License;
|
|
27
|
+
b. You must prominently display the following notice alongside the Distribution of the TABPFN-3.5 Model or Derivative (such as via a “NOTICE” text file distributed as part of such TABPFN-3.5 Model or Derivative) (the “Attribution Notice”):
|
|
28
|
+
The TABPFN-3.5 Model is licensed by Prior Labs GmbH under the TABPFN-3.5 Non-Commercial License.
|
|
29
|
+
Copyright © Prior Labs GmbH 2026.
|
|
30
|
+
THE SERVICES ARE PROVIDED FREE OF CHARGE: COMPANY SHALL NOT BE LIABLE FOR DAMAGES RESULTING FROM SLIGHT NEGLIGENCE. LIABILITY FOR GROSS NEGLIGENCE AND INTENTIONAL MISCONDUCT REMAINS UNAFFECTED.
|
|
31
|
+
c. In the case of Distribution of Derivatives made by you: (i) you must also include in the Attribution Notice a statement that you have modified the applicable TABPFN-3.5 Model; (ii) any terms and conditions you impose on any third-party recipients relating to Derivatives made by or for you shall neither limit such third-party recipients’ use of the TABPFN-3.5 Model or any Derivatives made by or for Company in accordance with this License nor conflict with any of its terms and conditions and must include disclaimer of warranties and limitation of liability provisions that are at least as protective of Company as those set forth herein; and (iii) you must not misrepresent or imply, through any means, that the Derivatives made by or for you and/or any modified version of the TABPFN-3.5 Model you Distribute under your name and responsibility is an official product of the Company or has been endorsed, approved or validated by the Company, unless you are authorized by Company to do so in writing.
|
|
32
|
+
d. No Hosted Service. You may not Distribute, host, or make available the TABPFN-3.5 Model or any Derivative as part of a hosted, managed, API, or SaaS service (whether paid or free) without a separate commercial license from Company.
|
|
33
|
+
|
|
34
|
+
4. Restrictions.
|
|
35
|
+
You will not, and will not permit, assist or cause any third party to:
|
|
36
|
+
a. use, modify, copy, reproduce, create Derivatives of, or Distribute the TABPFN-3.5 Model (or any Derivative thereof, or any data produced by the TABPFN-3.5 Model), in whole or in part, (i) for any commercial or production purposes, (ii) military purposes, (iii) purposes of surveillance, including any research or development relating to surveillance, (iv) biometric processing, (v) in any manner that infringes, misappropriates, or otherwise violates (or is likely to infringe, misappropriate, or otherwise violate) any third party’s legal rights (including privacy, data protection, or publicity rights), (vi) in any unlawful, fraudulent, defamatory, or abusive activity, or (vii) in any manner that violates applicable law (including the General Data Protection Regulation (Regulation (EU) 2016/679) and the EU Artificial Intelligence Act (Regulation (EU) 2024/1689), as well as all amendments and successor laws to any of the foregoing);
|
|
37
|
+
b. alter or remove copyright and other proprietary notices which appear on or in any portion of the TABPFN-3.5 Model;
|
|
38
|
+
c. utilize any equipment, device, software, or other means to circumvent or remove any security or protection used by Company in connection with the TABPFN-3.5 Model, or to circumvent or remove any usage restrictions, or to enable functionality disabled by the TABPFN-3.5 Model;
|
|
39
|
+
d. offer or impose any terms on the TABPFN-3.5 Model that alter, restrict, or are inconsistent with the terms of this License;
|
|
40
|
+
e. violate any applicable U.S., EU, or other export control and trade sanctions laws (“Export Laws”) in connection with your use or Distribution of any TABPFN-3.5 Model;
|
|
41
|
+
f. directly or indirectly Distribute, export, or otherwise transfer the TABPFN-3.5 Model (i) to any individual, entity, or country prohibited by Export Laws; (ii) to anyone on government restricted parties lists; (iii) for any purpose prohibited by Export Laws, including nuclear, chemical or biological weapons, or missile technology applications; (iv) use or download the TABPFN-3.5 Model if you or they are (a) located in a comprehensively sanctioned jurisdiction, (b) currently listed on any restricted parties list, or (c) for any purpose prohibited by Export Laws; or (v) disguise your location through IP proxying or other methods.
|
|
42
|
+
|
|
43
|
+
5. Limitation of Liability.
|
|
44
|
+
Because We provide the TABPFN-3.5 Model to free of charge, We shall be liable only in cases of intent, gross negligence, or if We have fraudulently concealed a possible material or legal defect. Liability for damages resulting from injury to life, body or health shall remain unaffected. Any further liability, in particular for slight negligence, is excluded.
|
|
45
|
+
|
|
46
|
+
6. Indemnification.
|
|
47
|
+
You will indemnify, defend and hold harmless Company and our subsidiaries and affiliates, (collectively, the “Company Parties”) from and against any losses, liabilities, damages, fines, penalties, and expenses (including reasonable attorneys’ fees) incurred by any Company Party in connection with any claim, demand, allegation, lawsuit, proceeding, or investigation (collectively, “Claims”) arising out of or related to (a) your access to or use of the TABPFN-3.5 Model (including in connection with any Output, results or data generated from such access or use), including any High-Risk Use; (b) your violation of this License; or (c) your violation, misappropriation or infringement of any rights of another (including intellectual property or other proprietary rights and privacy rights). You will promptly notify the Company Parties of any such Claims, and cooperate with Company Parties in defending such Claims. You will also grant the Company Parties sole control of the defense or settlement, at Company’s sole option, of any Claims. You are entitled to engage counsel of your choice at your own expense to conduct the defense. You may not make any admissions or enter into settlements without the prior written consent of the Company Parties This indemnity is in addition to, and not in lieu of, any other indemnities or remedies set forth in a written agreement between you and Company or the other Company Parties.
|
|
48
|
+
|
|
49
|
+
7. Termination; Survival.
|
|
50
|
+
a. This License will automatically terminate upon any breach by you of the terms of this License.
|
|
51
|
+
b. We may terminate this License, in whole or in part, at any time upon notice (including electronic) to you.
|
|
52
|
+
c. If you initiate any legal action or proceedings against Company or any other entity (including a cross-claim or counterclaim in a lawsuit), alleging that the TABPFN-3.5 Model or any Derivative, or any part thereof, infringes upon intellectual property or other rights owned or licensable by you, then any licenses granted to you under this License will immediately terminate as of the date such legal action or claim is filed or initiated.
|
|
53
|
+
d. Upon termination of this License, you must cease all use, access or Distribution of the TABPFN-3.5 Model and any Derivatives and delete all copies in your possession or control, except as required by law or legitimate institutional archiving policies. The following sections survive termination of this License: 2(c), 2(d), 3–10.
|
|
54
|
+
|
|
55
|
+
8. Third-Party Materials.
|
|
56
|
+
The TABPFN-3.5 Model may contain third-party software or other components (including free and open source software) (all of the foregoing, “Third-Party Materials”), which are subject to the license terms of the respective third-party licensors. Your dealings or correspondence with third parties and your use of or interaction with any Third-Party Materials are solely between you and the third party. Company does not control or endorse, and makes no representations or warranties regarding, any Third-Party Materials, and your access to and use of such Third-Party Materials are at your own risk.
|
|
57
|
+
|
|
58
|
+
9. Trademarks.
|
|
59
|
+
You have not been granted any trademark license as part of this License and may not use any name, logo or trademark associated with Company without the prior written permission of Company, except to the extent necessary to make the reference required in the Attribution Notice as specified above or as is reasonably necessary in describing the TABPFN-3.5 Model and its creators.
|
|
60
|
+
10. Governing Law; General.
|
|
61
|
+
This License will be governed by and construed under the laws of Germany, without regard to conflicts of law provisions. Any dispute arising out of or in connection with this License shall be subject to the exclusive jurisdiction of the courts of Berlin, Germany. If any provision or part of a provision of this License is unlawful, void or unenforceable, that provision or part of the provision is deemed severed from this License, and will not affect the validity and enforceability of any remaining provisions. The failure of Company to exercise or enforce any right or provision of this License will not operate as a waiver of such right or provision. This License does not confer any third-party beneficiary rights upon any other person or entity. This License, together with the documentation, contains the entire understanding between you and Company regarding the subject matter of this License, and supersedes all other written or oral agreements and understandings between you and Company regarding such subject matter.
|
|
62
|
+
Commercial inquiries: sales@priorlabs.ai
|
|
63
|
+
© 2026 Prior Labs GmbH. All rights reserved.
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
|
|
2
|
+
Prior Labs License
|
|
3
|
+
Version 1.1, May 2025
|
|
4
|
+
http://priorlabs.ai/tabpfn-license
|
|
5
|
+
|
|
6
|
+
This license is a derivative of the Apache 2.0 license
|
|
7
|
+
(http://www.apache.org/licenses/) with a single modification:
|
|
8
|
+
The added Paragraph 10 introduces an enhanced attribution requirement
|
|
9
|
+
inspired by the Llama 3 license.
|
|
10
|
+
|
|
11
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
12
|
+
|
|
13
|
+
1. Definitions.
|
|
14
|
+
|
|
15
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
16
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
17
|
+
|
|
18
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
19
|
+
the copyright owner that is granting the License.
|
|
20
|
+
|
|
21
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
22
|
+
other entities that control, are controlled by, or are under common
|
|
23
|
+
control with that entity. For the purposes of this definition,
|
|
24
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
25
|
+
direction or management of such entity, whether by contract or
|
|
26
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
27
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
28
|
+
|
|
29
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
30
|
+
exercising permissions granted by this License.
|
|
31
|
+
|
|
32
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
33
|
+
including but not limited to software source code, documentation
|
|
34
|
+
source, and configuration files.
|
|
35
|
+
|
|
36
|
+
"Object" form shall mean any form resulting from mechanical
|
|
37
|
+
transformation or translation of a Source form, including but
|
|
38
|
+
not limited to compiled object code, generated documentation,
|
|
39
|
+
and conversions to other media types.
|
|
40
|
+
|
|
41
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
42
|
+
Object form, made available under the License, as indicated by a
|
|
43
|
+
copyright notice that is included in or attached to the work
|
|
44
|
+
(an example is provided in the Appendix below).
|
|
45
|
+
|
|
46
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
47
|
+
form, that is based on (or derived from) the Work and for which the
|
|
48
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
49
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
50
|
+
of this License, Derivative Works shall not include works that remain
|
|
51
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
52
|
+
the Work and Derivative Works thereof.
|
|
53
|
+
|
|
54
|
+
"Contribution" shall mean any work of authorship, including
|
|
55
|
+
the original version of the Work and any modifications or additions
|
|
56
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
57
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
58
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
59
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
60
|
+
means any form of electronic, verbal, or written communication sent
|
|
61
|
+
to the Licensor or its representatives, including but not limited to
|
|
62
|
+
communication on electronic mailing lists, source code control systems,
|
|
63
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
64
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
65
|
+
excluding communication that is conspicuously marked or otherwise
|
|
66
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
67
|
+
|
|
68
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
69
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
70
|
+
subsequently incorporated within the Work.
|
|
71
|
+
|
|
72
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
73
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
74
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
75
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
76
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
77
|
+
Work and such Derivative Works in Source or Object form.
|
|
78
|
+
|
|
79
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
80
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
81
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
82
|
+
(except as stated in this section) patent license to make, have made,
|
|
83
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
84
|
+
where such license applies only to those patent claims licensable
|
|
85
|
+
by such Contributor that are necessarily infringed by their
|
|
86
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
87
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
88
|
+
institute patent litigation against any entity (including a
|
|
89
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
90
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
91
|
+
or contributory patent infringement, then any patent licenses
|
|
92
|
+
granted to You under this License for that Work shall terminate
|
|
93
|
+
as of the date such litigation is filed.
|
|
94
|
+
|
|
95
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
96
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
97
|
+
modifications, and in Source or Object form, provided that You
|
|
98
|
+
meet the following conditions:
|
|
99
|
+
|
|
100
|
+
(a) You must give any other recipients of the Work or
|
|
101
|
+
Derivative Works a copy of this License; and
|
|
102
|
+
|
|
103
|
+
(b) You must cause any modified files to carry prominent notices
|
|
104
|
+
stating that You changed the files; and
|
|
105
|
+
|
|
106
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
107
|
+
that You distribute, all copyright, patent, trademark, and
|
|
108
|
+
attribution notices from the Source form of the Work,
|
|
109
|
+
excluding those notices that do not pertain to any part of
|
|
110
|
+
the Derivative Works; and
|
|
111
|
+
|
|
112
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
113
|
+
distribution, then any Derivative Works that You distribute must
|
|
114
|
+
include a readable copy of the attribution notices contained
|
|
115
|
+
within such NOTICE file, excluding those notices that do not
|
|
116
|
+
pertain to any part of the Derivative Works, in at least one
|
|
117
|
+
of the following places: within a NOTICE text file distributed
|
|
118
|
+
as part of the Derivative Works; within the Source form or
|
|
119
|
+
documentation, if provided along with the Derivative Works; or,
|
|
120
|
+
within a display generated by the Derivative Works, if and
|
|
121
|
+
wherever such third-party notices normally appear. The contents
|
|
122
|
+
of the NOTICE file are for informational purposes only and
|
|
123
|
+
do not modify the License. You may add Your own attribution
|
|
124
|
+
notices within Derivative Works that You distribute, alongside
|
|
125
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
126
|
+
that such additional attribution notices cannot be construed
|
|
127
|
+
as modifying the License.
|
|
128
|
+
|
|
129
|
+
You may add Your own copyright statement to Your modifications and
|
|
130
|
+
may provide additional or different license terms and conditions
|
|
131
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
132
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
133
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
134
|
+
the conditions stated in this License.
|
|
135
|
+
|
|
136
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
137
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
138
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
139
|
+
this License, without any additional terms or conditions.
|
|
140
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
141
|
+
the terms of any separate license agreement you may have executed
|
|
142
|
+
with Licensor regarding such Contributions.
|
|
143
|
+
|
|
144
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
145
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
146
|
+
except as required for reasonable and customary use in describing the
|
|
147
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
148
|
+
|
|
149
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
150
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
151
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
152
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
153
|
+
implied, including, without limitation, any warranties or conditions
|
|
154
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
155
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
156
|
+
appropriateness of using or redistributing the Work and assume any
|
|
157
|
+
risks associated with Your exercise of permissions under this License.
|
|
158
|
+
|
|
159
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
160
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
161
|
+
unless required by applicable law (such as deliberate and grossly
|
|
162
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
163
|
+
liable to You for damages, including any direct, indirect, special,
|
|
164
|
+
incidental, or consequential damages of any character arising as a
|
|
165
|
+
result of this License or out of the use or inability to use the
|
|
166
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
167
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
168
|
+
other commercial damages or losses), even if such Contributor
|
|
169
|
+
has been advised of the possibility of such damages.
|
|
170
|
+
|
|
171
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
172
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
173
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
174
|
+
or other liability obligations and/or rights consistent with this
|
|
175
|
+
License. However, in accepting such obligations, You may act only
|
|
176
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
177
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
178
|
+
defend, and hold each Contributor harmless for any liability
|
|
179
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
180
|
+
of your accepting any such warranty or additional liability.
|
|
181
|
+
|
|
182
|
+
---------------------- ADDITIONAL PROVISION --------------------------
|
|
183
|
+
|
|
184
|
+
10. Additional attribution.
|
|
185
|
+
If You distribute or make available the Work or any Derivative
|
|
186
|
+
Work thereof relating to any part of the source or model weights,
|
|
187
|
+
or a product or service (including another AI model) that contains
|
|
188
|
+
any source or model weights, You shall (A) provide a copy of this
|
|
189
|
+
License with any such materials; and (B) prominently display
|
|
190
|
+
“Built with PriorLabs-TabPFN” on each related website, user interface, blogpost,
|
|
191
|
+
about page, or product documentation. If You use the source or model
|
|
192
|
+
weights or model outputs to create, train, fine tune, distil, or
|
|
193
|
+
otherwise improve an AI model, which is distributed or made available,
|
|
194
|
+
you shall also include “TabPFN” at the beginning of any such AI model name.
|
|
195
|
+
To clarify, internal benchmarking and testing without external
|
|
196
|
+
communication shall not qualify as distribution or making available
|
|
197
|
+
pursuant to this Section 10 and no attribution under this Section 10
|
|
198
|
+
shall be required.
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
END OF TERMS AND CONDITIONS
|
featune-1.0.0/NOTICE
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Built with PriorLabs-TabPFN
|
|
2
|
+
|
|
3
|
+
Featune source code is licensed under MIT.
|
|
4
|
+
TabPFN 9.0.0 package code is licensed separately under Apache-2.0.
|
|
5
|
+
The default TabPFN-2 weights are subject to LICENSES/TabPFN-v2.txt, including
|
|
6
|
+
its attribution and downstream model-naming requirements. Opt-in TabPFN-3.5
|
|
7
|
+
weights are subject to LICENSES/TabPFN-3.5.txt. Neither uses Featune's MIT license.
|
|
8
|
+
Weights are downloaded from an immutable upstream revision, not bundled here.
|
|
9
|
+
Rights to use the model are granted directly by Prior Labs, not by Featune.
|
|
10
|
+
See docs/en/reference.md and docs/zh/reference.md for usage restrictions.
|
|
11
|
+
|
|
12
|
+
The TABPFN-3.5 Model is licensed by Prior Labs GmbH under the TABPFN-3.5 Non-Commercial License.
|
|
13
|
+
Copyright © Prior Labs GmbH 2026.
|
|
14
|
+
THE SERVICES ARE PROVIDED FREE OF CHARGE: COMPANY SHALL NOT BE LIABLE FOR DAMAGES RESULTING FROM SLIGHT NEGLIGENCE. LIABILITY FOR GROSS NEGLIGENCE AND INTENTIONAL MISCONDUCT REMAINS UNAFFECTED.
|
featune-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: featune
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Semantic, controlled and reproducible feature engineering search
|
|
5
|
+
Project-URL: Source, https://github.com/zerolovesea/Featune
|
|
6
|
+
Project-URL: Documentation, https://github.com/zerolovesea/Featune/blob/main/docs/en/guide.md
|
|
7
|
+
Project-URL: Issues, https://github.com/zerolovesea/Featune/issues
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
License-File: LICENSES/TabPFN-3.5.txt
|
|
11
|
+
License-File: LICENSES/TabPFN-v2.txt
|
|
12
|
+
License-File: NOTICE
|
|
13
|
+
Requires-Python: >=3.10
|
|
14
|
+
Requires-Dist: httpx>=0.27
|
|
15
|
+
Requires-Dist: huggingface-hub>=0.23.0
|
|
16
|
+
Requires-Dist: joblib>=1.3
|
|
17
|
+
Requires-Dist: numpy>=1.24
|
|
18
|
+
Requires-Dist: pandas>=2.0
|
|
19
|
+
Requires-Dist: plotly>=5.20
|
|
20
|
+
Requires-Dist: pydantic>=2.10
|
|
21
|
+
Requires-Dist: scikit-learn>=1.4
|
|
22
|
+
Requires-Dist: tabpfn==9.0.0
|
|
23
|
+
Requires-Dist: torch>=2.5
|
|
24
|
+
Provides-Extra: benchmark
|
|
25
|
+
Requires-Dist: lightgbm>=4.0; extra == 'benchmark'
|
|
26
|
+
Requires-Dist: matplotlib>=3.8; extra == 'benchmark'
|
|
27
|
+
Requires-Dist: openfe==0.0.12; extra == 'benchmark'
|
|
28
|
+
Requires-Dist: openpyxl>=3.1; extra == 'benchmark'
|
|
29
|
+
Requires-Dist: scikit-learn<1.6,>=1.4; extra == 'benchmark'
|
|
30
|
+
Provides-Extra: dev
|
|
31
|
+
Requires-Dist: build>=1.2; extra == 'dev'
|
|
32
|
+
Requires-Dist: ipykernel>=6; extra == 'dev'
|
|
33
|
+
Requires-Dist: ipywidgets>=8; extra == 'dev'
|
|
34
|
+
Requires-Dist: nbclient>=0.10; extra == 'dev'
|
|
35
|
+
Requires-Dist: nbformat>=5; extra == 'dev'
|
|
36
|
+
Requires-Dist: pytest>=8; extra == 'dev'
|
|
37
|
+
Requires-Dist: ruff>=0.8; extra == 'dev'
|
|
38
|
+
Provides-Extra: torch
|
|
39
|
+
Provides-Extra: visualization
|
|
40
|
+
Description-Content-Type: text/markdown
|
|
41
|
+
|
|
42
|
+
# Featune
|
|
43
|
+
|
|
44
|
+
Auditable feature search for tabular data. Featune proposes features through a constrained DSL, evaluates them with cross-validation, records each trial, and exports a fitted scikit-learn pipeline. Random and evolutionary search work without an LLM; Anthropic Messages and OpenAI Chat Completions are optional proposal sources.
|
|
45
|
+
|
|
46
|
+
## Install
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pip install featune
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Python 3.10 or newer is required. The default model uses pinned TabPFN-2 weights downloaded on first use; the weights are not included in this package. Review `NOTICE` and the model licenses in `LICENSES/` before using TabPFN. TabPFN-3.5 is an opt-in model with separate access and use restrictions.
|
|
53
|
+
|
|
54
|
+
## Minimal example
|
|
55
|
+
|
|
56
|
+
```python
|
|
57
|
+
import pandas as pd
|
|
58
|
+
from sklearn.datasets import make_classification
|
|
59
|
+
from sklearn.model_selection import train_test_split
|
|
60
|
+
import featune
|
|
61
|
+
|
|
62
|
+
data, labels = make_classification(
|
|
63
|
+
n_samples=120, n_features=2, n_informative=2, n_redundant=0, random_state=42
|
|
64
|
+
)
|
|
65
|
+
X = pd.DataFrame(data, columns=["signal_a", "signal_b"])
|
|
66
|
+
y = pd.Series(labels)
|
|
67
|
+
schema = featune.DatasetSchema(
|
|
68
|
+
fields=[
|
|
69
|
+
featune.FieldSchema(name="signal_a", description="First synthetic signal"),
|
|
70
|
+
featune.FieldSchema(name="signal_b", description="Second synthetic signal"),
|
|
71
|
+
],
|
|
72
|
+
objective="Predict a synthetic binary label",
|
|
73
|
+
)
|
|
74
|
+
train, test = train_test_split(range(len(X)), stratify=y, random_state=42)
|
|
75
|
+
study = featune.create_study(metric="auc", sampler=featune.RandomSampler(seed=42))
|
|
76
|
+
study.optimize(X.iloc[train], y.iloc[train], schema, evaluator=featune.CVEvaluator(cv=2), n_trials=1)
|
|
77
|
+
print(study.trials_dataframe())
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Use a larger dataset and reserve an untouched test set for real evaluation. See the [English notebook](https://github.com/zerolovesea/Featune/blob/main/examples/quickstart_en.ipynb), [Chinese notebook](https://github.com/zerolovesea/Featune/blob/main/examples/quickstart_zh.ipynb), and [API guide](https://github.com/zerolovesea/Featune/blob/main/docs/en/guide.md). LLM credentials are read from `FEATUNE_API_KEY`; keep them outside source files and notebooks.
|
|
81
|
+
|
|
82
|
+
Featune source code is MIT licensed. TabPFN code and model weights have separate licenses; see the included notices. Generated pipelines may retain training data and should be handled accordingly.
|
featune-1.0.0/PYPI.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Featune
|
|
2
|
+
|
|
3
|
+
Auditable feature search for tabular data. Featune proposes features through a constrained DSL, evaluates them with cross-validation, records each trial, and exports a fitted scikit-learn pipeline. Random and evolutionary search work without an LLM; Anthropic Messages and OpenAI Chat Completions are optional proposal sources.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install featune
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Python 3.10 or newer is required. The default model uses pinned TabPFN-2 weights downloaded on first use; the weights are not included in this package. Review `NOTICE` and the model licenses in `LICENSES/` before using TabPFN. TabPFN-3.5 is an opt-in model with separate access and use restrictions.
|
|
12
|
+
|
|
13
|
+
## Minimal example
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
import pandas as pd
|
|
17
|
+
from sklearn.datasets import make_classification
|
|
18
|
+
from sklearn.model_selection import train_test_split
|
|
19
|
+
import featune
|
|
20
|
+
|
|
21
|
+
data, labels = make_classification(
|
|
22
|
+
n_samples=120, n_features=2, n_informative=2, n_redundant=0, random_state=42
|
|
23
|
+
)
|
|
24
|
+
X = pd.DataFrame(data, columns=["signal_a", "signal_b"])
|
|
25
|
+
y = pd.Series(labels)
|
|
26
|
+
schema = featune.DatasetSchema(
|
|
27
|
+
fields=[
|
|
28
|
+
featune.FieldSchema(name="signal_a", description="First synthetic signal"),
|
|
29
|
+
featune.FieldSchema(name="signal_b", description="Second synthetic signal"),
|
|
30
|
+
],
|
|
31
|
+
objective="Predict a synthetic binary label",
|
|
32
|
+
)
|
|
33
|
+
train, test = train_test_split(range(len(X)), stratify=y, random_state=42)
|
|
34
|
+
study = featune.create_study(metric="auc", sampler=featune.RandomSampler(seed=42))
|
|
35
|
+
study.optimize(X.iloc[train], y.iloc[train], schema, evaluator=featune.CVEvaluator(cv=2), n_trials=1)
|
|
36
|
+
print(study.trials_dataframe())
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Use a larger dataset and reserve an untouched test set for real evaluation. See the [English notebook](https://github.com/zerolovesea/Featune/blob/main/examples/quickstart_en.ipynb), [Chinese notebook](https://github.com/zerolovesea/Featune/blob/main/examples/quickstart_zh.ipynb), and [API guide](https://github.com/zerolovesea/Featune/blob/main/docs/en/guide.md). LLM credentials are read from `FEATUNE_API_KEY`; keep them outside source files and notebooks.
|
|
40
|
+
|
|
41
|
+
Featune source code is MIT licensed. TabPFN code and model weights have separate licenses; see the included notices. Generated pipelines may retain training data and should be handled accordingly.
|