Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Martin Řepa
bachelor-thesis
Commits
30791328
Commit
30791328
authored
Feb 06, 2019
by
Martin Řepa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct comments about loss weight
parent
33e5c1eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/config.py
src/config.py
+6
-3
No files found.
src/config.py
View file @
30791328
...
...
@@ -19,9 +19,12 @@ class NeuralNetworkConfig:
# List of available optimizers: https://keras.io/optimizers/
optimizer
:
str
=
attr
.
ib
(
default
=
'adam'
)
# Weight of false positive result for training phase
# The bigger it is, less false positives will neural network produce
# Setting it to 1 makes all results neutral
# From docs:
# Value used for weighting the loss function (during training only) for
# malicious requests. This can be useful to tell the model to "pay more
# attention" to malicious samples.
# Setting it to 1 makes loss function behave equally for both predictions
# during training
fp_weight
:
int
=
attr
.
ib
(
default
=
5
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment