test fix for merge

parent 6904fccd
Pipeline #187507 failed with stages
in 44 seconds
......@@ -161,7 +161,7 @@ public class GenerationTest extends AbstractSymtabTest {
"mnist_mnistClassifier_calculateClass.h",
"CNNTrainer_mnist_mnistClassifier_net.py"));
}
@Test
public void testMnistClassifierForGluon() throws IOException, TemplateException {
Log.getFindings().clear();
......@@ -204,7 +204,7 @@ public class GenerationTest extends AbstractSymtabTest {
EMADLGeneratorCli.main(args);
assertTrue(Log.getFindings().size() == 0);
}
@Test
public void testGluonReinforcementModelGymEnvironment() {
Log.getFindings().clear();
......@@ -238,7 +238,7 @@ public class GenerationTest extends AbstractSymtabTest {
)
);
}
@Test
public void testHashFunction() {
EMADLGenerator tester = new EMADLGenerator(Backend.MXNET);
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef CNNBUFFERFILE_H
#define CNNBUFFERFILE_H
......
# (c) https://github.com/MontiCore/monticore
import mxnet as mx
import logging
import os
......
# (c) https://github.com/MontiCore/monticore
from caffe2.python import workspace, core, model_helper, brew, optimizer
from caffe2.python.predictor import mobile_exporter
from caffe2.proto import caffe2_pb2
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef CNNPREDICTOR_CIFAR10_CIFAR10CLASSIFIER_NET
#define CNNPREDICTOR_CIFAR10_CIFAR10CLASSIFIER_NET
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef CNNPREDICTOR_MNIST_MNISTCLASSIFIER_NET
#define CNNPREDICTOR_MNIST_MNISTCLASSIFIER_NET
......
# (c) https://github.com/MontiCore/monticore
import logging
import mxnet as mx
import CNNCreator_cifar10_cifar10Classifier_net
......
# (c) https://github.com/MontiCore/monticore
from caffe2.python import workspace, core, model_helper, brew, optimizer
from caffe2.python.predictor import mobile_exporter
from caffe2.proto import caffe2_pb2
......
/* (c) https://github.com/MontiCore/monticore */
#include "cifar10_cifar10Classifier.h"
#include "cifar10_cifar10Classifier.h"
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
#ifndef CIFAR10_CIFAR10CLASSIFIER
#define CIFAR10_CIFAR10CLASSIFIER
#ifndef M_PI
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef CIFAR10_CIFAR10CLASSIFIER_CALCULATECLASS
#define CIFAR10_CIFAR10CLASSIFIER_CALCULATECLASS
#ifndef M_PI
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef CIFAR10_CIFAR10CLASSIFIER_NET
#define CIFAR10_CIFAR10CLASSIFIER_NET
#ifndef M_PI
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef CNNBUFFERFILE_H
#define CNNBUFFERFILE_H
......
# (c) https://github.com/MontiCore/monticore
import mxnet as mx
import logging
import os
......
# (c) https://github.com/MontiCore/monticore
import os
import h5py
import mxnet as mx
......@@ -91,4 +90,4 @@ class CNNDataLoader_mnist_mnistClassifier_net:
return train_h5, test_h5
else:
logging.error("Data loading failure. File '" + os.path.abspath(train_path) + "' does not exist.")
sys.exit(1)
sys.exit(1)
\ No newline at end of file
# (c) https://github.com/MontiCore/monticore
import mxnet as mx
import numpy as np
from mxnet import gluon
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef CNNPREDICTOR_MNIST_MNISTCLASSIFIER_NET
#define CNNPREDICTOR_MNIST_MNISTCLASSIFIER_NET
......
# (c) https://github.com/MontiCore/monticore
import mxnet as mx
import logging
import numpy as np
......@@ -173,7 +172,7 @@ class CNNSupervisedTrainer_mnist_mnistClassifier_net:
batch.label[0].as_in_context(mx_context)
]
if True:
if True:
predictions_ = mx.nd.zeros((10,), ctx=mx_context)
predictions_ = self._networks[0](image_)
......@@ -194,7 +193,7 @@ class CNNSupervisedTrainer_mnist_mnistClassifier_net:
batch.label[0].as_in_context(mx_context)
]
if True:
if True:
predictions_ = mx.nd.zeros((10,), ctx=mx_context)
predictions_ = self._networks[0](image_)
......@@ -217,4 +216,4 @@ class CNNSupervisedTrainer_mnist_mnistClassifier_net:
network.export(self.parameter_path(i) + '_newest', epoch=0)
def parameter_path(self, index):
return self._net_creator._model_dir_ + self._net_creator._model_prefix_ + '_' + str(index)
return self._net_creator._model_dir_ + self._net_creator._model_prefix_ + '_' + str(index)
\ No newline at end of file
# (c) https://github.com/MontiCore/monticore
import logging
import mxnet as mx
import CNNCreator_mnist_mnistClassifier_net
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef HELPERA_H
#define HELPERA_H
#include <iostream>
......
/* (c) https://github.com/MontiCore/monticore */
#include "mnist_mnistClassifier.h"
#include "mnist_mnistClassifier.h"
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
#ifndef MNIST_MNISTCLASSIFIER
#define MNIST_MNISTCLASSIFIER
#ifndef M_PI
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef MNIST_MNISTCLASSIFIER_CALCULATECLASS
#define MNIST_MNISTCLASSIFIER_CALCULATECLASS
#ifndef M_PI
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef MNIST_MNISTCLASSIFIER_NET
#define MNIST_MNISTCLASSIFIER_NET
#ifndef M_PI
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef CNNBUFFERFILE_H
#define CNNBUFFERFILE_H
......
# (c) https://github.com/MontiCore/monticore
import mxnet as mx
import logging
import os
......
# (c) https://github.com/MontiCore/monticore
import mxnet as mx
import numpy as np
from mxnet import gluon
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef CNNPREDICTOR_CARTPOLE_MASTER_DQN
#define CNNPREDICTOR_CARTPOLE_MASTER_DQN
......
# (c) https://github.com/MontiCore/monticore
from reinforcement_learning.agent import DqnAgent
from reinforcement_learning.util import AgentSignalHandler
from reinforcement_learning.cnnarch_logger import ArchLogger
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef HELPERA_H
#define HELPERA_H
#include <iostream>
......
/* (c) https://github.com/MontiCore/monticore */
#include "cartpole_master.h"
#include "cartpole_master.h"
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
#ifndef CARTPOLE_MASTER
#define CARTPOLE_MASTER
#ifndef M_PI
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef CARTPOLE_MASTER_DQN
#define CARTPOLE_MASTER_DQN
#ifndef M_PI
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef CARTPOLE_MASTER_POLICY
#define CARTPOLE_MASTER_POLICY
#ifndef M_PI
......
# (c) https://github.com/MontiCore/monticore
import mxnet as mx
import numpy as np
import time
......
# (c) https://github.com/MontiCore/monticore
import logging
import sys
import os
......@@ -93,4 +92,4 @@ if __name__ == "__main__":
and os.path.isfile(os.path.join('test_log', 'TestLogger.log')),\
'Test failed: No logfile exists'
import shutil
shutil.rmtree('test_log')
shutil.rmtree('test_log')
\ No newline at end of file
# (c) https://github.com/MontiCore/monticore
import abc
import logging
logging.basicConfig(level=logging.INFO)
......
# (c) https://github.com/MontiCore/monticore
import numpy as np
......@@ -206,4 +205,4 @@ class CombinedReplayMemory(ReplayMemory):
rewards = np.append(rewards, [self._last_reward], axis=0)
next_states = np.append(next_states, [self._last_next_state], axis=0)
terminals = np.append(terminals, [self._last_terminal], axis=0)
return states, actions, rewards, next_states, terminals
return states, actions, rewards, next_states, terminals
\ No newline at end of file
# (c) https://github.com/MontiCore/monticore
import signal
import sys
import numpy as np
......
#!/bin/bash
# (c) https://github.com/MontiCore/monticore
python CNNTrainer_cartpole_master_dqn.py
python CNNTrainer_cartpole_master_dqn.py
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
#ifndef CNNBUFFERFILE_H
#define CNNBUFFERFILE_H
......
# (c) https://github.com/MontiCore/monticore
import mxnet as mx
import logging
import os
......
# (c) https://github.com/MontiCore/monticore
import mxnet as mx
import numpy as np
from mxnet import gluon
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef CNNPREDICTOR_MOUNTAINCAR_MASTER_ACTOR
#define CNNPREDICTOR_MOUNTAINCAR_MASTER_ACTOR
......
# (c) https://github.com/MontiCore/monticore
from reinforcement_learning.agent import DdpgAgent
from reinforcement_learning.util import AgentSignalHandler
from reinforcement_learning.cnnarch_logger import ArchLogger
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef HELPERA_H
#define HELPERA_H
#include <iostream>
......
/* (c) https://github.com/MontiCore/monticore */
#include "mountaincar_master.h"
#include "mountaincar_master.h"
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
#ifndef MOUNTAINCAR_MASTER
#define MOUNTAINCAR_MASTER
#ifndef M_PI
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef MOUNTAINCAR_MASTER_ACTOR
#define MOUNTAINCAR_MASTER_ACTOR
#ifndef M_PI
......
# (c) https://github.com/MontiCore/monticore
import mxnet as mx
import numpy as np
from mxnet import gluon
......
# (c) https://github.com/MontiCore/monticore
import mxnet as mx
import numpy as np
import time
......
# (c) https://github.com/MontiCore/monticore
import logging
import sys
import os
......@@ -93,4 +92,4 @@ if __name__ == "__main__":
and os.path.isfile(os.path.join('test_log', 'TestLogger.log')),\
'Test failed: No logfile exists'
import shutil
shutil.rmtree('test_log')
shutil.rmtree('test_log')
\ No newline at end of file
# (c) https://github.com/MontiCore/monticore
import abc
import logging
logging.basicConfig(level=logging.INFO)
......
# (c) https://github.com/MontiCore/monticore
import numpy as np
......@@ -206,4 +205,4 @@ class CombinedReplayMemory(ReplayMemory):
rewards = np.append(rewards, [self._last_reward], axis=0)
next_states = np.append(next_states, [self._last_next_state], axis=0)
terminals = np.append(terminals, [self._last_terminal], axis=0)
return states, actions, rewards, next_states, terminals
return states, actions, rewards, next_states, terminals
\ No newline at end of file
# (c) https://github.com/MontiCore/monticore
import signal
import sys
import numpy as np
......
#!/bin/bash
# (c) https://github.com/MontiCore/monticore
python CNNTrainer_mountaincar_master_actor.py
python CNNTrainer_mountaincar_master_actor.py
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
#ifndef CNNBUFFERFILE_H
#define CNNBUFFERFILE_H
......
# (c) https://github.com/MontiCore/monticore
import mxnet as mx
import logging
import os
......
# (c) https://github.com/MontiCore/monticore
import mxnet as mx
import numpy as np
from mxnet import gluon
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef CNNPREDICTOR_TORCS_AGENT_TORCSAGENT_DQN
#define CNNPREDICTOR_TORCS_AGENT_TORCSAGENT_DQN
......
# (c) https://github.com/MontiCore/monticore
from reinforcement_learning.agent import DqnAgent
from reinforcement_learning.util import AgentSignalHandler
from reinforcement_learning.cnnarch_logger import ArchLogger
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef HELPERA_H
#define HELPERA_H
#include <iostream>
......
# (c) https://github.com/MontiCore/monticore
import mxnet as mx
import numpy as np
import time
......
# (c) https://github.com/MontiCore/monticore
import logging
import sys
import os
......@@ -93,4 +92,4 @@ if __name__ == "__main__":
and os.path.isfile(os.path.join('test_log', 'TestLogger.log')),\
'Test failed: No logfile exists'
import shutil
shutil.rmtree('test_log')
shutil.rmtree('test_log')
\ No newline at end of file
# (c) https://github.com/MontiCore/monticore
import abc
import logging
logging.basicConfig(level=logging.INFO)
......
# (c) https://github.com/MontiCore/monticore
import numpy as np
......@@ -206,4 +205,4 @@ class CombinedReplayMemory(ReplayMemory):
rewards = np.append(rewards, [self._last_reward], axis=0)
next_states = np.append(next_states, [self._last_next_state], axis=0)
terminals = np.append(terminals, [self._last_terminal], axis=0)
return states, actions, rewards, next_states, terminals
return states, actions, rewards, next_states, terminals
\ No newline at end of file
# (c) https://github.com/MontiCore/monticore
import signal
import sys
import numpy as np
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef HELPERA_H
#define HELPERA_H
#include <iostream>
......
/* (c) https://github.com/MontiCore/monticore */
#include "torcs_agent_dqn_reward_executor.h"
void torcs_agent_dqn_reward_executor::init() {
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef _TORCS_AGENT_DQN_REWARD_EXECUTOR_H_
#define _TORCS_AGENT_DQN_REWARD_EXECUTOR_H_
#include "armadillo"
......
/* (c) https://github.com/MontiCore/monticore */
#include "torcs_agent_dqn_reward.h"
#include "torcs_agent_dqn_reward.h"
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
#ifndef TORCS_AGENT_DQN_REWARD
#define TORCS_AGENT_DQN_REWARD
#ifndef M_PI
......
#!/bin/bash
# (c) https://github.com/MontiCore/monticore
python CNNTrainer_torcs_agent_torcsAgent_dqn.py
python CNNTrainer_torcs_agent_torcsAgent_dqn.py
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
#include "torcs_agent_torcsAgent.h"
#include "torcs_agent_torcsAgent.h"
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
#ifndef TORCS_AGENT_TORCSAGENT
#define TORCS_AGENT_TORCSAGENT
#ifndef M_PI
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef TORCS_AGENT_TORCSAGENT_DQN
#define TORCS_AGENT_TORCSAGENT_DQN
#ifndef M_PI
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef TORCS_AGENT_TORCSAGENT_POLICY
#define TORCS_AGENT_TORCSAGENT_POLICY
#ifndef M_PI
......
/* (c) https://github.com/MontiCore/monticore */
#include "mnist_mnistClassifier.h"
#include "mnist_mnistClassifier.h"
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
#ifndef MNIST_MNISTCLASSIFIER
#define MNIST_MNISTCLASSIFIER
#ifndef M_PI
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef MNIST_MNISTCLASSIFIER_CALCULATECLASS
#define MNIST_MNISTCLASSIFIER_CALCULATECLASS
#ifndef M_PI
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef MNIST_MNISTCLASSIFIER_NET
#define MNIST_MNISTCLASSIFIER_NET
#ifndef M_PI
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef CNNTRANSLATOR_H
#define CNNTRANSLATOR_H
#include <armadillo>
......
Markdown is supported
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