File tree 18 files changed +20
-138
lines changed
18 files changed +20
-138
lines changed Original file line number Diff line number Diff line change 32
32
"""
33
33
from __future__ import absolute_import
34
34
35
- from . import data
36
35
from . import models
37
36
from . import aglaia
38
37
from . import math
42
41
from . import representations
43
42
from . import qmlearn
44
43
from . import utils
44
+ from .utils .compound import Compound
45
45
46
46
__author__ = "Anders S. Christensen"
47
47
__copyright__ = "Copyright 2016"
Original file line number Diff line number Diff line change 40
40
from qml .representations import generate_acsf
41
41
from qml .aglaia .graceful_killer import _GracefulKiller
42
42
43
- from qml . data import Compound
43
+ from qml import Compound
44
44
from qml import representations as qml_rep
45
45
46
46
import tensorflow
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
numpy >= 1.13
2
2
scipy
3
3
scikit-learn
4
- ase
5
4
six
Original file line number Diff line number Diff line change @@ -144,7 +144,6 @@ def setup_qml():
144
144
name = "qml" ,
145
145
packages = [
146
146
'qml' ,
147
- 'qml.data' ,
148
147
'qml.aglaia' ,
149
148
'qml.arad' ,
150
149
'qml.fchl' ,
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ def test_arad():
72
72
for xyz_file in sorted (data .keys ())[:10 ]:
73
73
74
74
# Initialize the qml.data.Compound() objects
75
- mol = qml .data . Compound (xyz = test_dir + "/qm7/" + xyz_file )
75
+ mol = qml .Compound (xyz = test_dir + "/qm7/" + xyz_file )
76
76
77
77
# Associate a property (heat of formation) with the object
78
78
mol .properties = data [xyz_file ]
Original file line number Diff line number Diff line change 24
24
25
25
import os
26
26
27
- from qml . data import Compound
27
+ from qml import Compound
28
28
import numpy as np
29
29
30
30
def compare_lists (a , b ):
Original file line number Diff line number Diff line change 26
26
import numpy as np
27
27
28
28
import qml
29
- import qml .data
30
29
31
30
from qml .kernels import laplacian_kernel
32
31
from qml .math import cho_solve
@@ -65,14 +64,14 @@ def test_krr_gaussian_local_cmat():
65
64
# Parse file containing PBE0/def2-TZVP heats of formation and xyz filenames
66
65
data = get_energies (test_dir + "/data/hof_qm7.txt" )
67
66
68
- # Generate a list of qml.data. Compound() objects"
67
+ # Generate a list of qml.Compound() objects"
69
68
mols = []
70
69
71
70
72
71
for xyz_file in sorted (data .keys ())[:1000 ]:
73
72
74
- # Initialize the qml.data. Compound() objects
75
- mol = qml .data . Compound (xyz = test_dir + "/qm7/" + xyz_file )
73
+ # Initialize the qml.Compound() objects
74
+ mol = qml .Compound (xyz = test_dir + "/qm7/" + xyz_file )
76
75
77
76
# Associate a property (heat of formation) with the object
78
77
mol .properties = data [xyz_file ]
@@ -152,8 +151,8 @@ def test_krr_laplacian_local_cmat():
152
151
153
152
for xyz_file in sorted (data .keys ())[:1000 ]:
154
153
155
- # Initialize the qml.data. Compound() objects
156
- mol = qml .data . Compound (xyz = test_dir + "/qm7/" + xyz_file )
154
+ # Initialize the qml.Compound() objects
155
+ mol = qml .Compound (xyz = test_dir + "/qm7/" + xyz_file )
157
156
158
157
# Associate a property (heat of formation) with the object
159
158
mol .properties = data [xyz_file ]
Original file line number Diff line number Diff line change 26
26
import numpy as np
27
27
28
28
import qml
29
- import qml .data
30
29
31
30
from qml .kernels import laplacian_kernel
32
31
from qml .math import cho_solve
@@ -65,8 +64,8 @@ def test_krr_bob():
65
64
66
65
for xyz_file in sorted (data .keys ())[:1000 ]:
67
66
68
- # Initialize the qml.data. Compound() objects
69
- mol = qml .data . Compound (xyz = test_dir + "/qm7/" + xyz_file )
67
+ # Initialize the qml.Compound() objects
68
+ mol = qml .Compound (xyz = test_dir + "/qm7/" + xyz_file )
70
69
71
70
# Associate a property (heat of formation) with the object
72
71
mol .properties = data [xyz_file ]
Original file line number Diff line number Diff line change 26
26
import numpy as np
27
27
28
28
import qml
29
- import qml .data
30
29
31
30
from qml .kernels import laplacian_kernel
32
31
from qml .math import cho_solve
@@ -65,8 +64,8 @@ def test_krr_cmat():
65
64
66
65
for xyz_file in sorted (data .keys ())[:1000 ]:
67
66
68
- # Initialize the qml.data. Compound() objects
69
- mol = qml .data . Compound (xyz = test_dir + "/qm7/" + xyz_file )
67
+ # Initialize the qml.Compound() objects
68
+ mol = qml .Compound (xyz = test_dir + "/qm7/" + xyz_file )
70
69
71
70
# Associate a property (heat of formation) with the object
72
71
mol .properties = data [xyz_file ]
Original file line number Diff line number Diff line change 31
31
from scipy .special import binom
32
32
from scipy .special import factorial
33
33
34
- from qml . data import Compound
34
+ from qml import Compound
35
35
36
36
from qml .math import cho_solve
37
37
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ def test_kpca():
261
261
# Parse file containing PBE0/def2-TZVP heats of formation and xyz filenam
262
262
data = get_energies (test_dir + "/data/hof_qm7.txt" )
263
263
264
- # Generate a list of qml.data. Compound() objects
264
+ # Generate a list of qml.Compound() objects
265
265
mols = []
266
266
267
267
keys = sorted (data .keys ())
@@ -273,7 +273,7 @@ def test_kpca():
273
273
274
274
for xyz_file in keys [:n_mols ]:
275
275
276
- mol = qml .data . Compound (xyz = test_dir + "/qm7/" + xyz_file )
276
+ mol = qml .Compound (xyz = test_dir + "/qm7/" + xyz_file )
277
277
mol .properties = data [xyz_file ]
278
278
mol .generate_bob ()
279
279
mols .append (mol )
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def test_representations():
58
58
59
59
mols = []
60
60
for xyz_file in files :
61
- mol = qml .data . Compound (xyz = path + "/" + xyz_file )
61
+ mol = qml .Compound (xyz = path + "/" + xyz_file )
62
62
mols .append (mol )
63
63
64
64
size = max (mol .nuclear_charges .size for mol in mols ) + 1
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def test_slatm_global_representation():
46
46
mols = []
47
47
for xyz_file in files :
48
48
49
- mol = qml .data . Compound (xyz = path + "/" + xyz_file )
49
+ mol = qml .Compound (xyz = path + "/" + xyz_file )
50
50
mols .append (mol )
51
51
52
52
mbtypes = get_slatm_mbtypes (np .array ([mol .nuclear_charges for mol in mols ]))
@@ -79,7 +79,7 @@ def test_slatm_local_representation():
79
79
mols = []
80
80
for xyz_file in files :
81
81
82
- mol = qml .data . Compound (xyz = path + "/" + xyz_file )
82
+ mol = qml .Compound (xyz = path + "/" + xyz_file )
83
83
mols .append (mol )
84
84
85
85
mbtypes = get_slatm_mbtypes (np .array ([mol .nuclear_charges for mol in mols ]))
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def test_acsf():
67
67
68
68
mols = []
69
69
for xyz_file in files :
70
- mol = qml .data . Compound (xyz = path + "/" + xyz_file )
70
+ mol = qml .Compound (xyz = path + "/" + xyz_file )
71
71
mols .append (mol )
72
72
73
73
elements = set ()
You can’t perform that action at this time.
0 commit comments