d499be2bb6a6e2bd1723888caaee314b690efd98,examples/forces/generator.py,,,#,7

Before Change


traj_forces = np.array(traj_forces)

// Create SOAP output for the system
soap_traj = soap.create(traj, positions=[[CENTER]] * len(traj))

// print(soap_traj)
print(soap_traj.shape)
print(traj_energies.shape)
print(traj_forces.shape)

After Change


traj_forces = np.array(traj_forces)

// Create SOAP output for the system
descriptors = []
derivatives = []
for t in traj:
    i_derivative, i_descriptor = soap.derivatives_single(t, positions=[CENTER], method="numerical")
    descriptors.append(i_descriptor[0])
    derivatives.append(i_derivative[0])
descriptors = np.array(descriptors)
derivatives = np.array(derivatives)

// Save to disk for later training
np.save("r.npy", r)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: SINGROUP/dscribe
Commit Name: d499be2bb6a6e2bd1723888caaee314b690efd98
Time: 2020-10-30
Author: lauri.himanen@gmail.com
File Name: examples/forces/generator.py
Class Name:
Method Name:


Project Name: SINGROUP/dscribe
Commit Name: 4684fe6e9faa803be38368236a487242227ae83c
Time: 2019-04-17
Author: lauri.himanen@aalto.fi
File Name: examples/soap.py
Class Name:
Method Name:


Project Name: pantsbuild/pants
Commit Name: 3f49af5b9e213b2de03060bc02d6d81128cb5dec
Time: 2018-04-18
Author: 1305167+cosmicexplorer@users.noreply.github.com
File Name: tests/python/pants_test/engine/test_isolated_process.py
Class Name: IsolatedProcessTest
Method Name: test_javac_version_example