Fixing Jenkins issue with >80 characters long lines

This commit is contained in:
Konstantin Sidorov
2017-07-31 12:36:22 +03:00
parent 1bc1258860
commit 0dbd053b2c
3 changed files with 10 additions and 4 deletions
@@ -44,8 +44,12 @@ void AddTask::GenerateData(arma::field<arma::irowvec>& input,
// Random uniform length from [2..bitLen]
size_t size_A = 2 + std::rand() % (bitLen - 1);
size_t size_B = 2 + std::rand() % (bitLen - 1);
// Construct sequence of the form (binary number with size_A bits) + '+' + (binary number with size_B bits)
input(i) = arma::randi<arma::irowvec>(size_A + size_B + 1, arma::distr_param(0, 1));
// Construct sequence of the form
// (binary number with size_A bits) + '+'
// + (binary number with size_B bits)
input(i) = arma::randi<arma::irowvec>(
size_A + size_B + 1, arma::distr_param(0, 1)
);
input(i).at(size_A) = +100;
int val_A = 0;
for (size_t k = 0; k < size_A; ++k) {
@@ -30,7 +30,8 @@ namespace ann /* Artificial Neural Network */ {
namespace augmented /* Augmented neural network */ {
namespace tasks /* Task utilities for augmented */ {
SortTask::SortTask(size_t maxLength, size_t bitLen) : maxLength(maxLength), bitLen(bitLen) {}
SortTask::SortTask(size_t maxLength, size_t bitLen)
: maxLength(maxLength), bitLen(bitLen) {}
void SortTask::GenerateData(arma::field<arma::imat>& input,
arma::field<arma::imat>& labels,
@@ -124,7 +124,8 @@ public:
auto digit = predictors.at(i);
if (digit != 0 && digit != 1)
{
// We should not see two separators - we are adding *two* numbers in the task
// We should not see two separators
// since we are adding *two* numbers in the task
assert(!num);
num = true;
}