Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 8, 2024. It is now read-only.

Commit 3dba920

Browse files
committed
Updated License, README, Makefile
1 parent 64beacd commit 3dba920

File tree

3 files changed

+4
-40
lines changed

3 files changed

+4
-40
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 Anders Christensen
3+
Copyright (c) 2017 Anders Steen Christensen, Felix Faber, O.Anatole von Lilienfeld
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ OBJECTS = \
55
qml/kernels/farad_kernels.so \
66
qml/kernels/fkernels.so
77

8-
# Flags for GCC compilers and MKL
9-
COMPILER_FLAGS = --opt='-O3 -fopenmp -m64 -march=native' --f90flags='-I${MKLROOT}/include'
8+
# Flags for GCC compilers and system BLAS/LAPACK
9+
COMPILER_FLAGS = --opt='-O3 -fopenmp -m64 -march=native' --f90flags=''
1010
LINKER_FLAGS = -lgomp -lpthread -lm -ldl
11-
MATH_LINKER_FLAGS = -L${MKLROOT}/lib/intel64 -lmkl_rt
11+
MATH_LINKER_FLAGS = -lblas -llapack
1212

1313
# F2PY executable
1414
F2PY_EXEC = f2py

README.md

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -94,42 +94,6 @@ Generate ~100K atomic coulomb matrices = 0.22s
9494

9595
## 3.1) Calculate kernels using the `Compound` class:
9696

97-
Example 1: Using a coulomb matrix
98-
99-
```python
100-
from qml.kernels import laplacian_kernel
101-
102-
comps = ... # load a Python list of Compunds
103-
104-
for comp in comps:
105-
comp.generate_coulomb_matrix()
106-
107-
training = comps[:1000]
108-
109-
K = laplacian_kernel(training, training, sigma=100.0)
110-
```
111-
112-
Example 1: Using ARAD representation
113-
114-
```python
115-
from qml.kernels import arad_kernel
116-
117-
comps = ... # load a Python list of Compunds
118-
119-
for comp in comps:
120-
comp.generate_coulomb_matrix()
121-
122-
training = comps[:1000]
123-
124-
K = arad_kernel(training, training, sigma=100.0)
125-
```
126-
127-
Additionally for ARAD, when the two sets of `Compound` are identical, it is possible to calculate only the upper triangle, which reduces the computational load by a factor of two.
128-
129-
```python
130-
from qml.kernels import arad_training_kernel
131-
K = arad_training_kernel(training, sigma=100.0)
132-
```
13397

13498
## 3.2) Calculate kernels using the `qml.kernels` module directly
13599

0 commit comments

Comments
 (0)