Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
monticore
EmbeddedMontiArc
generators
CNNArch2X
Commits
15e44639
Commit
15e44639
authored
Mar 06, 2020
by
Julian Dierkes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjusted ConfigurationData to new parameter in CNNTrain
parent
66f536fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
src/main/java/de/monticore/lang/monticar/cnnarch/generator/ConfigurationData.java
...re/lang/monticar/cnnarch/generator/ConfigurationData.java
+28
-0
No files found.
src/main/java/de/monticore/lang/monticar/cnnarch/generator/ConfigurationData.java
View file @
15e44639
...
...
@@ -43,6 +43,34 @@ public class ConfigurationData {
return
String
.
valueOf
(
getConfiguration
().
getEntry
(
"batch_size"
)
.
getValue
());
}
public
String
getKValue
()
{
if
(!
getConfiguration
().
getEntryMap
().
containsKey
(
"k_value"
))
{
return
null
;
}
return
String
.
valueOf
(
getConfiguration
().
getEntry
(
"k_value"
)
.
getValue
());
}
public
String
getGeneratorLoss
()
{
if
(!
getConfiguration
().
getEntryMap
().
containsKey
(
"generator_loss"
))
{
return
null
;
}
return
String
.
valueOf
(
getConfiguration
().
getEntry
(
"generator_loss"
)
.
getValue
());
}
public
String
getConditionalInput
()
{
if
(!
getConfiguration
().
getEntryMap
().
containsKey
(
"conditional_input"
))
{
return
null
;
}
return
String
.
valueOf
(
getConfiguration
().
getEntry
(
"conditional_input"
)
.
getValue
());
}
public
String
getNoiseInput
()
{
if
(!
getConfiguration
().
getEntryMap
().
containsKey
(
"noise_input"
))
{
return
null
;
}
return
String
.
valueOf
(
getConfiguration
().
getEntry
(
"noise_input"
)
.
getValue
());
}
public
Boolean
getLoadCheckpoint
()
{
if
(!
getConfiguration
().
getEntryMap
().
containsKey
(
"load_checkpoint"
))
{
return
null
;
...
...
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