This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set.seed(11) | |
dt = 1.0 | |
M = 1 | |
tau_pmean = 1000 | |
epochs = 10 | |
input.signal = as.matrix(read.table("guitar_lick.csv", sep=",", header=FALSE)) | |
N = ncol(input.signal) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using namespace std; | |
#include <iostream> | |
#include <stdlib.h> | |
#include <fstream> | |
#include <sstream> | |
#include <google/protobuf/io/zero_copy_stream_impl.h> | |
#include <google/protobuf/io/coded_stream.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define LINEAR 1 | |
#define EXP 2 | |
#define EXP2 3 | |
#define B_HARD 1 | |
#define B_SOFT 2 | |
#define PROB_FUNC EXP2 | |
#define WEIGHT_BOUND B_HARD |