Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torchani
Commits
6ee36733
Unverified
Commit
6ee36733
authored
Oct 16, 2019
by
Farhad Ramezanghorbani
Committed by
GitHub
Oct 16, 2019
Browse files
Update __init__.py (#340)
parent
b8c2aa92
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
torchani/data/__init__.py
torchani/data/__init__.py
+3
-3
No files found.
torchani/data/__init__.py
View file @
6ee36733
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment