You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error in function test_operator_derivative() in test_fhcl_force.py #26
I encountered a few issues while running the test_operator_derivative function in tests/test_fhcl_force.py, and I’d like to confirm whether these are expected behaviors or if I misunderstood something.
1. Argument order in csv_to_molecular_reps
The arguments passed to generate_fchl18 and its variants seem to be in the wrong order. It should be:
Currently, it uses coordinates, nuclear_charges, which appears to cause issues in descriptor generation.
2. Force padding and shape mismatch
In test_operator_derivative, this line causes issues if molecules have different atom counts:
Fall=np.array(Fall)
Since Fall contains force arrays with variable shape (based on atom count), this conversion fails or produces incorrect concatenation. I removed this line and used padding only where necessary for specific operations.
3. MAE assertions failing
The following assertions fail for me with current default settings:
assertmae(Ess, Es) <0.08, "Error in operator test energy"assertmae(Et, E) <0.04, "Error in operator training energy"assertmae(Fss, Fs.flatten()) <1.1, "Error in operator test force"assertmae(Ft, F.flatten()) <0.1, "Error in operator training force"
The computed MAEs exceed the specified thresholds and vary between runs, sometimes significantly(lager than 20 eV).
In some cases, the errors are much higher than expected.
I wonder if:
These values are outdated for the current kernel/hyperparameters?
Or additional regularization should be introduced ?
The code I used is attached below.
Please let me know if I’m missing something or if this behavior is expected.
I’d be happy to help contribute fixes as well.
Yes, I've used ChatGPT to help create this issue since I wanted to make it clearer and more formal.Please forgive me if using ChatGPT is inappropriate in any way.
Thank you for your reply. I have tried FCHL18 trained only on energy, and now I want to compare training with both energy and forces versus training with only energy.
I will also try using FCHL19 soon. Thank you for your advice!
@charnley Hi, when I use FCHL19, I noticed that it didn't support systems with PBC like FCHL18. Are there any plans to support PBC in future versions ?
Thank you for the report, this should be fixed in #30
With certain OpenMP implementations there was a race condition in that function that was not caught in CI (it runs on one core only).
Please install qmllib>=1.2.0 and if the issue persists you can reopen the issue.
Activity
charnley commentedon Jun 18, 2025
Those tests are broken and are flagged with pytest.skip(). I recommend using fchl19 instead.
P.S., did you create this issue with ChatGPT?
sunneos commentedon Jun 18, 2025
Yes, I've used ChatGPT to help create this issue since I wanted to make it clearer and more formal.Please forgive me if using ChatGPT is inappropriate in any way.
Thank you for your reply. I have tried FCHL18 trained only on energy, and now I want to compare training with both energy and forces versus training with only energy.
I will also try using FCHL19 soon. Thank you for your advice!
sunneos commentedon Jun 20, 2025
@charnley Hi, when I use FCHL19, I noticed that it didn't support systems with PBC like FCHL18. Are there any plans to support PBC in future versions ?
charnley commentedon Jun 21, 2025
There is an open PR #6, can you check out that development branch and see if that works for you?
sunneos commentedon Jun 21, 2025
Thanks, that’s very kind of you, and I’ll check it out later.
andersx commentedon Feb 21, 2026
Thank you for the report, this should be fixed in #30
With certain OpenMP implementations there was a race condition in that function that was not caught in CI (it runs on one core only).
Please install
qmllib>=1.2.0and if the issue persists you can reopen the issue.