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
5ff2f8fc
"...text-generation-inference.git" did not exist on "8ad60b752fdf678153e7685d9f0e30e88a60cd42"
Unverified
Commit
5ff2f8fc
authored
Nov 19, 2020
by
Ignacio Pickering
Committed by
GitHub
Nov 19, 2020
Browse files
provide better error message (#550)
parent
656aa037
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
torchani/data/__init__.py
torchani/data/__init__.py
+3
-0
No files found.
torchani/data/__init__.py
View file @
5ff2f8fc
...
@@ -188,6 +188,9 @@ class Transformations:
...
@@ -188,6 +188,9 @@ class Transformations:
X
.
append
([
1
]
*
n
)
X
.
append
([
1
]
*
n
)
X
=
numpy
.
array
(
X
).
transpose
()
X
=
numpy
.
array
(
X
).
transpose
()
Y
=
numpy
.
array
(
Y
)
Y
=
numpy
.
array
(
Y
)
if
Y
.
shape
[
0
]
==
0
:
raise
RuntimeError
(
"subtract_self_energies could not find any energies in the provided dataset.
\n
"
"Please make sure the path provided to data.load() points to a dataset has energies and is not empty or corrupted."
)
sae
,
_
,
_
,
_
=
numpy
.
linalg
.
lstsq
(
X
,
Y
,
rcond
=
None
)
sae
,
_
,
_
,
_
=
numpy
.
linalg
.
lstsq
(
X
,
Y
,
rcond
=
None
)
sae_
=
sae
sae_
=
sae
if
shifter
.
fit_intercept
:
if
shifter
.
fit_intercept
:
...
...
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