This file contains hidden or 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
N <- 15 | |
M <- 12 | |
K <- 3 | |
Wconc <- 100 | |
Hconc <- 5 | |
Winit <- structure(c(.056,.111,.056,.111,.056,.111,.056,.111,.056,.111,.056,.111,.111,.056,.111,.056,.111,.056,.111,.056,.111,.056,.111,.056,.063,.063,.125,.063,.063,.125,.063,.063,.125,.063,.063,.125 | |
), .Dim=c(12,3)) | |
X <- structure(c(.032,.032,.091,.032,.157,.264,.157,.139,.486,.257,.709,.934,.036,.036,.08,.036,.255,.192,.255,.1,.638,.171,1.228,.62,.039,.039,.226,.039,.119,.521,.119,.128,.809,.227,.475,1.537,.047,.047,.212,.047,.113,.589,.113,.242,.717,.458,.407,2.002,.02,.02,.058,.02,.07,.189,.07,.107,.251,.203,.293,.705,.033,.033,.062,.033,.128,.268,.128,.208,.325,.403,.549,1.142,.039,.039,.245,.039,.144,.516,.144,.081,.923,.128,.609,1.39,.05,.05,.189,.05,.326,.383,.326,.091,1.077,.136,1.55,1.024,.039,.039,.245,.039,.106,.548,.106,.112,.847,.194,.407,1.565,.023,.023,.134,.023,.072,.301,.072,.065,.486,.112,.291,.862,.04,.04,.145,.04,.205,.352,.205,.131,.726,.233,.938,1.107,.028,.028,.173,.028,.076,.397,.076,.093,.593,.164,.287,1.163,.028,.028,.058,.028,.14,.1 |
This file contains hidden or 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/local/lib/python2.7/dist-packages/theano/misc/pycuda_init.py:34: UserWarning: PyCUDA import failed in theano.misc.pycuda_init | |
warnings.warn("PyCUDA import failed in theano.misc.pycuda_init") | |
Using gpu device 0: GeForce GT 730M | |
...............................................K................../usr/local/lib/python2.7/dist-packages/theano/compile/profilemode.py:103: UserWarning: DEPRECATION WARNING: The ProfileMode is deprecated. Use the Theano flags/parameter to theano.function 'profile=True' instead of 'mode=ProfileMode' | |
"DEPRECATION WARNING: The ProfileMode is deprecated. Use the Theano" | |
................................................../usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:729: UserWarning: CVM does not support memory profile, using Stack VM. | |
'CVM does not support memory profile, using Stack VM.') | |
................................./usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeWarning: numpy.ndarray size changed, may indicate binary incompatibility | |
rva |
This file contains hidden or 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 | |
# Simple example of Wiener deconvolution in Python. | |
# We use a fixed SNR across all frequencies in this example. | |
# | |
# Written 2015 by Dan Stowell. Public domain. | |
import numpy as np | |
from numpy.fft import fft, ifft, ifftshift |
This file contains hidden or 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
init_OSC | |
empty | |
compiling class library... | |
NumPrimitives = 711 | |
compiling dir: '/usr/local/share/SuperCollider/SCClassLibrary' | |
compiling dir: '/usr/local/share/SuperCollider/Extensions' | |
pass 1 done | |
ERROR: Class extension for nonexistent class 'Document' | |
In file:'/deprecated/3.7/deprecated-3.7.sc' | |
ERROR: Class extension for nonexistent class 'KDTree' |
This file contains hidden or 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
import numpy as np | |
from numpy import float32 | |
import theano | |
import theano.tensor as T | |
import lasagne | |
###################################################### | |
# Test of reversing maxpooling |
This file contains hidden or 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
import numpy as np | |
from numpy import float32 | |
import theano | |
import theano.tensor as T | |
import lasagne | |
###################################################### | |
# Test of reversing maxpooling |
This file contains hidden or 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
// schroeder-phase waveforms | |
s.boot | |
s.scope | |
// we'll do the simple flat-spectra case | |
// (The paper I saw this version in is "Phase effects on the perceived elevation of complex tones", <http://dx.doi.org/10.1121/1.3372753>.) | |
~nb = 5; | |
~nt = 250; |
This file contains hidden or 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
import os, sys, re | |
from datetime import datetime | |
from imposm.parser import OSMParser | |
######################################################## | |
#osmsourcelbl = 'greater-london' | |
#osmsourcelbl = 'great-britain' | |
osmsourcelbl = 'planet' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
import numpy as np | |
from numpy import log | |
# we generate two independent "parent" processes, then for each one we independently create thinnings. | |
# we aim to have a distance measure that correctly clusters the two sets according to their parent. | |
# by Dan Stowell, copyright Feb 2018 | |
parents = [np.cumsum(np.random.exponential(size=100)) for whichp in range(2)] |