yuqiuzhou / Pianno

MIT License
2 stars 0 forks source link

Requesting help to resolve an error encountered while running code #4

Open cuiyaxuan opened 1 month ago

cuiyaxuan commented 1 month ago

Could you please help me? When I run the code according to the example, it always reports the following error. How should I resolve it?

adata = po.AutoPatternRecognition(adata, ... Patterndict=Patterndict, ... config_path=config_path, ... param_tuning=True, ... max_experiment_duration='10m')

[2024-08-09 14:28:04] Creating experiment, Experiment ID: e5i9u3rk [2024-08-09 14:28:04] Starting web server... [2024-08-09 14:28:06] Setting up... [2024-08-09 14:28:06] Web portal URLs: http://127.0.0.1:8080 http://192.168.100.25:8080 http://172.17.0.1:8080 Traceback (most recent call last): File "", line 1, in File "/home/anaconda3/envs/Pianno/lib/python3.9/site-packages/pianno/_auto_pattern_recognition.py", line 55, in AutoPatternRecognition best_params = SearchBestParams(adata, File "/home/anaconda3/envs/Pianno/lib/python3.9/site-packages/pianno/_search_best_params.py", line 72, in SearchBestParams return best_params[list(best_params.keys())[0]] IndexError: list index out of range

yuqiuzhou commented 1 month ago

It seems that the NNI toolkit doesn't work normally. Is there an empty "best_params.json" file generated under your "config_path"?Please open the portal URL to check if the tuning went well first. Each experiment log can be found in "/home/anaconda3/envs/Pianno/lib/python3.9/site-packages/pianno/nni_experiment". Could you please provide the error message? If "nni_experiment" doesn't exist, open the "pianno/_tuner.py" to comment out the last line ("shutil.rmtree(ewd)") and run again.

cuiyaxuan commented 1 month ago

Thank you for your reply. I tried again but still encountered the following error. The 'best_params.json' file can be generated in the 'config_path,' and the nni_experiment folder was also created in my user directory, but it wasn't created under the pianno folder. I installed the pianno package via pip, and the following ima WX20240813-192806@2x WX20240813-192711@2x WX20240813-192643@2x ge provides specific information.

yuqiuzhou commented 3 weeks ago

Well, have you checked the portal URL of NNI? Is the "best_params.json" empty? Is there any error message saved in the "nni-experiment"? Could you please share these contents with me?

yuqiuzhou commented 3 weeks ago

Something is wrong with the NNI toolkit. We need the experiment log (a file named by the experiment ID, e.g. "e5i9u3rk") to find out. Thanks for your time.

cuiyaxuan commented 3 weeks ago

WX20240818-102023@2x GT151673.zip nni-experiments.zip WX20240818-101858

Thank you for your response. I just reran the code, and here are some of the data and results produced. The best_params.json file is empty.

yuqiuzhou commented 3 weeks ago

Be sure that you have removed the "best_params.json" before a new experiment. Can you open the "http://127.0.0.1:8080/" while running?

cuiyaxuan commented 3 weeks ago

Unable to open this link: "http://127.0.0.1:8080/". Additionally, every time I run it, the IP port gets occupied, and I have to manually kill the process. WX20240818-104516@2x

lylyly785 commented 3 days ago

I have also found this problem. Is there any solution now?