Skip to content

Commit

Permalink
Update __init__.py (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhadrgh committed Oct 16, 2019
1 parent b8c2aa9 commit 6ee3673
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions torchani/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ def load_ani_dataset(path, species_tensor_converter, batch_size, shuffle=True,
mean = scaled_diff[torch.abs(scaled_diff) < 15.0].mean()
std = scaled_diff[torch.abs(scaled_diff) < 15.0].std()

# -15 * std + mean < scaled_diff < +11 * std + mean
tol = 13.0 * std + mean
low_idx = (torch.abs(scaled_diff + 2.0 * std) < tol).nonzero().squeeze()
# -8 * std + mean < scaled_diff < +8 * std + mean
tol = 8.0 * std + mean
low_idx = (torch.abs(scaled_diff) < tol).nonzero().squeeze()
outlier_count = molecules - low_idx.numel()

# discard outlier energy conformers if exist
Expand Down

0 comments on commit 6ee3673

Please sign in to comment.