-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip installation guide needs to be updated #85
Comments
Hi, I got error when I tried
It seems that numpy doesn't use 'numpy.distutils' now. Do you know how to fix it? |
No sorry but it must be a anaconda problem, use virtualenv instead as written above since it works. |
|
The following commands are needed:
Create a new virtual environment / venv does not work use virtualenv
virtualenv -p python3 feyn
Activate the virtual environment
source feyn/bin/activate
Install numpy
pip install numpy
Install aifeynman without its dependencies
pip install aifeynman --no-deps
Install additional Python packages
pip install sortedcontainers scikit-learn torch seaborn torchvision openpyxl
In order to use units in the dimensional analysis, the following changes are required:
1. Download first from https://space.mit.edu/home/tegmark/aifeynman.html) and convert csv to xlsx (There are three inconsistencies between equation names in units.csv and feynman_with_units/)
2. Add units.xlsx in the current folder
3. change line 36 in feyn/lib/python3.11/site-packages/aifeynman/dimensionalAnalysis.py
from:
val = [file["m"][i],file["s"][i],file["kg"][i],file["T"][i],file["V"][i], file["cd"][I]]
to:
val = [file["m"][i],file["s"][i],file["kg"][i],file["T"][i],file["V"][I]]
4. change in 31 different lines for ex. 49 + 50 in feyn/lib/python3.11/site-packages/aifeynman/dimensionalS_symmetry.py
from:
pathdir+"/%s" %filename
to:
pathdir+filename
5. also change line 44 in same file
from:
file_sym = open(filename + "_dim_red_variables.txt" ,"w")
to:
file_sym = open(pathdir + filename + "_dim_red_variables.txt" ,"w")
6 change line 255 feyn/lib/python3.11/site-packages/aifeynman/S_run_aifeynman.py
from:
DR_file = filename + "_dim_red_variables.txt"
to:
DR_file = pathdir + filename + "_dim_red_variables.txt"
7. Use
pathdir = "example_data/" + filename = "example1.txt"
as hyperparameters in.run_aifeynman(....)
DONE interact with import aifeynman + aifeynman.run_aifeynman(....) for example
See cavalab/srbench#161 a/the maintained Symbolic Regression benchmark with origins from a NEURIPS 2021 paper (https://arxiv.org/abs/2107.14351). They considered AI Feynman to be depreciated/broken and I agree, that the method needs a maintainer to be kept relevant.
See https://github.com/filip-frisk/AI_Feynman_2024_tools if you want to run AI-feynman in 2024 and reproduce the main results.
The text was updated successfully, but these errors were encountered: