coarse-graining-auto-encoders's People
coarse-graining-auto-encoders's Issues
Save and write trajectory only output one molecule
Hi, I am running the opt_example code on a multi-molecule system (liquid) and find the output save_traj output each molecular trajectory in different time steps, instead of combine all molecules in one step. Is there a way to adjust the code so the trajectory will show all molecules?
Code for force matching term
Hi, it seems that I can't find the code for the average instantaneous mean force regularization term in the cgae.py
or in the colab example:
# recenter xyz
xyz = xyz[0].to(device)
# encode and decode coordinates
xyz, xyz_recon, M, cg_xyz = ae(xyz, tau)
# lift the cg_xyz back to the FG space
X_lift = torch.einsum('bij,ni->bnj', cg_xyz, M)
# compute regularization to penalize atoms that are assigned too far away
loss_reg = (xyz - X_lift).pow(2).sum(-1).mean()
# comput reconstruction
loss_recon = (xyz - xyz_recon).pow(2).mean()
# compute bond loss
bond_true = (xyz[:, bond_idx[:,0]] - xyz[:, bond_idx[:,1]] + 1e-9).pow(2).sum(-1).sqrt()
bond_prd = (xyz_recon[:, bond_idx[:,0]] - xyz_recon[:, bond_idx[:,1]]+ 1e-9).pow(2).sum(-1).sqrt()
loss_bond = (bond_true - bond_prd).pow(2).mean()
# total loss
loss = loss_recon + 0.5 * loss_reg + loss_bond
Is it possible for you to share that part of the code at your convenience?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.