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
sigmoid(x) = 1.0 ./ (1.0 + exp(-x)) | |
dsigmoid(y) = y .* (1.0 - y) | |
type MLP3 | |
W¹::Matrix{Float64} | |
b¹::Vector{Float64} | |
W²::Matrix{Float64} | |
b²::Vector{Float64} | |
end |
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
#!/bin/bash | |
# e.g. bash vim_benchmark.sh 10 | |
LOGFILE=$(mktemp) | |
ITER=$1 | |
function echo_mean_and_std() { | |
m=$(grep "editing files" $1 | awk 'BEGIN{m=0.0} {m+=$1} END{print m/NR}') |
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
const libapr = "./libapr-1.0" | |
@assert dlopen(libapr) != C_NULL | |
argc = Array(Cint, 1) | |
argv = Array(Ptr{Cchar}, 1) | |
env = Array(Ptr{Cchar}, 1) | |
# 引数なしの初期化 | |
# ccall((:apr_initialize, libapr), Void, ()) |
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
53c53 | |
< double *waveform) { | |
--- | |
> double *waveform, int waveform_length) { | |
66c66,68 | |
< for (int i = 0; i <= half_window_length * 2; ++i) | |
--- | |
> int upper_bound = half_window_length * 2 > waveform_length - 1 ? | |
> waveform_length - 1 : half_window_length * 2; | |
> for (int i = 0; i <= upper_bound; ++i) |
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
# NOTE: requires julia v0.4 | |
import Base: eltype, size, length, getindex | |
import SPTK | |
### Generic interface ### | |
abstract SpectralEnvelopeDef |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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
Log: | |
CMake Warning (dev) at cmake/OpenCVUtils.cmake:203 (if): | |
Policy CMP0054 is not set: Only interpret if() arguments as variables or | |
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy | |
details. Use the cmake_policy command to set the policy and suppress this | |
warning. | |
Quoted variables like "APPLE" will no longer be dereferenced when the | |
policy is set to NEW. Since the policy is not set the OLD behavior will be | |
used. |