Skip to content

Instantly share code, notes, and snippets.

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)
@alexeyche
alexeyche / gist:b300ea8892642436804a
Created September 16, 2015 14:46
Decorator Python
#!/usr/bin/env python
@alexeyche
alexeyche / main.cpp
Last active August 29, 2015 14:09
protobuf repeated field error
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>
@alexeyche
alexeyche / gist:443089ec12bdbb733e84
Created June 19, 2014 19:21
нейронные функции
#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