You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.optim='adam'# these are the optimisers implementd. Choices are: 'sgd'; 'sgdr'; 'adagrad' adam
150
+
self.lr=0.00003# this is the learning rate.
151
+
self.patience=10# this is the number of epochs without improvement that the network waits untill determining it found its optimum
152
+
self.batch_size=128# number of datasets taken along per iteration
153
+
self.maxit=500# max iterations per epoch
154
+
self.split=0.9# split of test and validation data
155
+
self.load_nn=False# load the neural network instead of retraining
156
+
self.loss_fun='rms'# what is the loss used for the model. rms is root mean square (linear regression-like); L1 is L1 normalisation (less focus on outliers)
157
+
self.skip_net=False# skip the network training and evaluation
158
+
self.scheduler=False# as discussed in the article, LR is important. This approach allows to reduce the LR itteratively when there is no improvement throughout an 5 consecutive epochs
self.dropout=0.1# 0.0/0.1 chose how much dropout one likes. 0=no dropout; internet says roughly 20% (0.20) is good, although it also states that smaller networks might desire smaller amount of dropout
168
+
self.batch_norm=True# False/True turns on batch normalistion
169
+
self.parallel='parallel'# defines whether the network exstimates each parameter seperately (each parameter has its own network) or whether 1 shared network is used instead
170
+
self.con='sigmoid'# defines the constraint function; 'sigmoid' gives a sigmoid function giving the max/min; 'abs' gives the absolute of the output, 'none' does not constrain the output
self.fitS0=True# indicates whether to fit S0 (True) or fix it to 1 (for normalised signals); I prefer fitting S0 as it takes along the potential error is S0.
177
+
self.depth=2# number of layers
178
+
self.width=0# new option that determines network width. Putting to 0 makes it as wide as the number of b-values
179
+
boundsrange=0.3* (np.array(self.cons_max)-np.array(self.cons_min)) # ensure that we are on the most lineair bit of the sigmoid function
0 commit comments