File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using StreamingSampling
22
3- include (" utils/AtomsSampling .jl" )
3+ include (" utils/utils .jl" )
44
55# Datase files
66file_paths = [" data/iso17/my_iso17_train.extxyz" ]
Original file line number Diff line number Diff line change 11using StreamingSampling
22
3- include (" utils/AtomsSampling .jl" )
3+ include (" utils/utils .jl" )
44
55# Define paths and create experiment folder
66train_path = [" data/md17/aspirin-train.xyz" ]
@@ -115,7 +115,7 @@ for j in 1:n_experiments
115115 # Load atomistic configurations
116116 train_confs = get_confs (train_path, train_inds)
117117 # Adjust reference energies (permanent change)
118- adjust_energies (train_confs,vref_dict)
118+ adjust_energies (train_confs, vref_dict)
119119 # Compute dataset with energy and force descriptors
120120 train_ds = calc_descr (train_confs, basis_fitting)
121121 # Create result folder
@@ -139,6 +139,8 @@ for j in 1:n_experiments
139139
140140 # Load atomistic configurations
141141 train_confs = get_confs (train_path, train_inds)
142+ # Adjust reference energies (permanent change)
143+ adjust_energies (train_confs, vref_dict)
142144 # Compute dataset with energy and force descriptors
143145 train_ds = calc_descr (train_confs, basis_fitting)
144146 # Create result folder
Original file line number Diff line number Diff line change 11using StreamingSampling
22
3- include (" utils/AtomsSampling .jl" )
3+ include (" utils/utils .jl" )
44
55# Define paths and create experiment folder
66ds_paths = [" Hf_mp1009460_EOS_form_sorted.extxyz" ,
@@ -107,6 +107,7 @@ n_test = length(ds_test_rnd)
107107# Compute reference energies
108108s = 0.0
109109m = 10_000
110+ read_element (io) = read_element_extxyz (io)
110111ch, _ = chunk_iterator (ds_paths;
111112 read_element= read_element,
112113 chunksize= m,
Original file line number Diff line number Diff line change 11using StreamingSampling
22
3- include (" utils/AtomsSampling .jl" )
3+ include (" utils/utils .jl" )
44
55# Define paths and create experiment folder
66train_path = [" data/iso17/my_iso17_train.extxyz" ]
@@ -115,7 +115,7 @@ for j in 1:n_experiments
115115 # Load atomistic configurations
116116 train_confs = get_confs (train_path, train_inds)
117117 # Adjust reference energies (permanent change)
118- adjust_energies (train_confs,vref_dict)
118+ adjust_energies (train_confs, vref_dict)
119119 # Compute dataset with energy and force descriptors
120120 train_ds = calc_descr (train_confs, basis_fitting)
121121 # Create result folder
@@ -139,6 +139,8 @@ for j in 1:n_experiments
139139
140140 # Load atomistic configurations
141141 train_confs = get_confs (train_path, train_inds)
142+ # Adjust reference energies (permanent change)
143+ adjust_energies (train_confs, vref_dict)
142144 # Compute dataset with energy and force descriptors
143145 train_ds = calc_descr (train_confs, basis_fitting)
144146 # Create result folder
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ using Unitful
2121import PotentialLearning. BasisPotential
2222
2323include (" read-element.jl" )
24- include (" xyz .jl" )
24+ include (" read-dataset .jl" )
2525include (" macros.jl" )
26+ include (" fitting-utils.jl" )
2627include (" subtract_peratom_e.jl" )
27- include (" aux_sample_functions.jl" )
2828# include("samplers.jl")
2929include (" plots.jl" )
3030include (" plotmetrics.jl" )
You can’t perform that action at this time.
0 commit comments