gflownet.proxy.crystals.density
Attributes
Classes
Proxy to compute the density of a crystal, in g/cm3. |
Module Contents
- class gflownet.proxy.crystals.density.Density(**kwargs)[source]
Bases:
gflownet.proxy.base.ProxyProxy to compute the density of a crystal, in g/cm3.
It requires the same inputs as the Dave proxy.
- __call__(states)[source]
- Parameters:
states (torch.Tensor) – same as DAVE proxy, i.e.
composition (*) –
states[:, :-7]-> length 95 (dummy 0 then 94 elements)group (* space) –
states[:, -7] - 1parameters (* lattice) –
states[:, -6:]
- Returns:
nd.array – -1 * density in g/cm3. Shape:
(batch,).- Return type:
torchtyping.TensorType[batch]