rouyang2017 / SISSO

A data-driven method combining symbolic regression and compressed sensing for accurate & interpretable models.
Apache License 2.0
234 stars 77 forks source link

VarSelect_SISSO.py KeyError #69

Closed ZengnianMa closed 2 weeks ago

ZengnianMa commented 3 weeks ago

Thanks to author. When I run the VarSelect_SISSO.py, there was an error about dimension. I tried to change the dimension number, but it was also failed. Snipaste_2024-08-25_20-03-29 Traceback (most recent call last): File "/home/mzn/N2/Adsorption/test/VarSelect_SISSO.py", line 502, in selected_features, RMSE = SISSO_out_reader('./%s' % str(i), desc_dim, all_features, initial_maths_operators) File "/home/mzn/N2/Adsorption/test/VarSelect_SISSO.py", line 67, in SISSO_out_reader return feature_list, total_RMSE_dict[dimension] KeyError: 1

Traceback (most recent call last): File "/home/mzn/N2/Adsorption/test/VarSelect_SISSO.py", line 502, in selected_features, RMSE = SISSO_out_reader('./%s' % str(i), desc_dim, all_features, initial_maths_operators) File "/home/mzn/N2/Adsorption/test/VarSelect_SISSO.py", line 67, in SISSO_out_reader return feature_list, total_RMSE_dict[dimension] KeyError: 2

rouyang2017 commented 3 weeks ago

Hi, that error may be caused by the format change in the SISSO.out in the new version 3.5, and I haven't got chance to correspondingly update the tools in the 'utilities'.

ZengnianMa commented 3 weeks ago

Hi, that error may be caused by the format change in the SISSO.out in the new version 3.5, and I haven't got chance to correspondingly update the tools in the 'utilities'.

Thanks for your response. Look forward to your update.

rouyang2017 commented 2 weeks ago

VarSelect_SISSO.py has been updated. Now it should work.

ZengnianMa commented 2 weeks ago

VarSelect_SISSO.py has been updated. Now it should work.

It can work. Thanks a million.