Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tadah.MLIP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tadah
Tadah.MLIP
Commits
6e80f8ee
Commit
6e80f8ee
authored
11 months ago
by
Marcin Kirsz
Browse files
Options
Downloads
Patches
Plain Diff
Making HPO work
parent
4411a15b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+17
-5
17 additions, 5 deletions
CMakeLists.txt
examples/ex_hpo_1/config.train
+10
-9
10 additions, 9 deletions
examples/ex_hpo_1/config.train
examples/ex_hpo_1/targets
+14
-14
14 additions, 14 deletions
examples/ex_hpo_1/targets
with
41 additions
and
28 deletions
CMakeLists.txt
+
17
−
5
View file @
6e80f8ee
...
...
@@ -164,6 +164,7 @@ add_library(tadah
)
target_link_libraries
(
tadah PUBLIC config::rc
)
add_executable
(
ta-dah bin/tadah.cpp
)
target_link_libraries
(
ta-dah PRIVATE tadah
)
target_link_libraries
(
ta-dah PRIVATE tadah.hpo
)
...
...
@@ -299,11 +300,22 @@ message(STATUS "
message
(
STATUS
" * Build with Hyperparamter optimiser. "
)
message
(
STATUS
" TADAH_ENABLE_HPO is
${
TADAH_ENABLE_HPO
}
"
)
if
(
TADAH_ENABLE_HPO
)
message
(
STATUS
" Requires LAMMPS to be compiled as shared serial lib "
)
message
(
STATUS
" Linking to serial LAMMPS:
${
TADAH_LAMMPS_LIB
}
"
)
message
(
STATUS
" To set LAMMPS lib path to different value use: "
)
message
(
STATUS
" -DTADAH_LAMMPS_LIB=lammps_serial "
)
message
(
STATUS
" which corresponds to liblammps_serial "
)
message
(
STATUS
" Requires LAMMPS to be compiled as either "
)
message
(
STATUS
" shared or static library with
${
TADAH
}
interface. "
)
message
(
STATUS
" Additional cmake variables that must be set: "
)
message
(
STATUS
" 1. TADAH_LAMMPS_DIR "
)
message
(
STATUS
" Must points to the LAMMPS root dir, e.g. "
)
message
(
STATUS
" -DTADAH_LAMMPS_DIR=/path/to/lammps "
)
message
(
STATUS
" "
)
message
(
STATUS
" 2. TADAH_LAMMPS_LIB "
)
message
(
STATUS
" The name of the LAMMPS lib, e.g. "
)
message
(
STATUS
" -DTADAH_LAMMPS_LIB=liblammps.a "
)
message
(
STATUS
" "
)
message
(
STATUS
" 3. TADAH_ENABLE_MPI (Default OFF) "
)
message
(
STATUS
" Set to ON when linking to mpi version of LAMMPS."
)
message
(
STATUS
" -DTADAH_ENABLE_MPI=ON "
)
message
(
STATUS
" "
)
message
(
STATUS
" To disable this option: "
)
message
(
STATUS
" cmake .. -DTADAH_ENABLE_HPO=OFF "
)
else
()
...
...
This diff is collapsed.
Click to expand it.
examples/ex_hpo_1/config.train
+
10
−
9
View file @
6e80f8ee
...
...
@@ -4,21 +4,22 @@ INIT2B true
RCTYPE2B Cut_Cos
TYPE2B D2_Blip
RCUT2B 5.13548979310443
CGRID2B 5.67172668447472 2.59491687845263
4.15281844086333
SGRID2B 0.672140067078838
1.33565711290847
2.0 3.0
CGRID2B 5.67172668447472 2.59491687845263
SGRID2B 0.672140067078838 1.33565711290847
MODEL M_BLR BF_Linear
NORM
tru
e
BIAS
tru
e
NORM
fals
e
BIAS
fals
e
SWEIGHT 2e-3
FWEIGHT 1.0e-2
FORCE false
STRESS
tru
e
STRESS
fals
e
VERBOSE 0
LAMBDA 1e-11
ALPHA 1e-4
VERBOSE 1
LAMBDA 0
CHECKPRESS true
CHECKPRESS false
DIMER false false false
This diff is collapsed.
Click to expand it.
examples/ex_hpo_1/targets
+
14
−
14
View file @
6e80f8ee
...
...
@@ -4,20 +4,20 @@ ERMSE 0
MAXCALLS 20000000
EPS 1e-3
CONFIGMAP RCUT2B CGRID2B
SGRID2B SGRID2B S
GRID2B SGRID2B SGRID2B
CONFIGMIN 5.0 1.1
0.11 0
.1
2
0.1
3
0.1
4
0.15
CONFIGMAX 6.0 6.0
4
.0
1 4.02
4.0
3
4.0
4
4.05
CONFIGMAP RCUT2B CGRID2B
C
GRID2B SGRID2B SGRID2B
CONFIGMIN 5.0 1.1
1
1
.1
0.1
1
0.1
2
CONFIGMAX 6.0 6.0
6
.0
4.0
1
4.0
2
LATA 3.304
LATA
0.0001 fcc
3.304
ECOH -8.1
ECOH
0.0001 fcc
-8.1
EVACF 0 3.304 2.00
SURFACE 100 2.40
SURFACE 110 2.04
SURFACE 111 2.74
ELASTIC 11 267
ELASTIC 12 160
#ELASTIC 44 86
#
EVACF 0 3.304 2.00
#
#
SURFACE 100 2.40
#
SURFACE 110 2.04
#
SURFACE 111 2.74
#
#
ELASTIC 11 267
#
ELASTIC 12 160
#
#ELASTIC 44 86
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment