Commit cab08867 authored by nilsfreyer's avatar nilsfreyer
Browse files

Merge branch 'oneclick_nn_training' of...

Merge branch 'oneclick_nn_training' of into oneclick_nn_training
parents 68a7b28e 5e508b2a
Pipeline #101586 failed with stages
in 1 minute and 10 seconds
configuration chaniautomation{
VGG16: ./target/data/VGG16/
Alexnet: ./target/data/Alexnet/
\ No newline at end of file
package de.monticore.lang.monticar.cnnarch.mxnetgenerator;
package de.monticore.lang.monticar.emadl.generator;
import de.monticore.lang.monticar.cnntrain._symboltable.*;
......@@ -7,16 +8,17 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class DataPathConfigParser {
public class DataPathConfigParser{
private String configTargetPath;
ConfigurationSymbol configuration;
private String configFileName;
public DataPathConfigParser (ConfigurationSymbol configuration) {
public DataPathConfigParser(ConfigurationSymbol configuration, String configPath) {
this.configuration = configuration;
public String getConfigFileName() {
......@@ -42,10 +44,10 @@ public class DataPathConfigParser {
return configuration;
public String getDataPath(String componentName) {
if (!getConfiguration().getEntryMap().containsKey(componentName)) {
public String getDataPath(String modelName) {
if (!getConfiguration().getEntryMap().containsKey(modelName)) {
return null;
return String.valueOf(getConfiguration().getEntry(componentName).getValue());
return String.valueOf(getConfiguration().getEntry(modelName).getValue());
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment