Skip to content

Instantly share code, notes, and snippets.

View zoq's full-sized avatar
💭
breathing

Marcus Edel zoq

💭
breathing
View GitHub Profile
@zoq
zoq / timer.cpp
Created June 7, 2013 20:23
timer
#if defined(__unix__) || defined(__unix)
#include <time.h> // clock_gettime()
#include <sys/time.h> // timeval, gettimeofday()
#include <unistd.h> // flags like _POSIX_VERSION
#elif defined(__MACH__) && defined(__APPLE__)
#include <mach/mach_time.h> // mach_timebase_info,
// mach_absolute_time()
#elif defined(_WIN32)
#include <windows.h> //GetSystemTimeAsFileTime(),
// QueryPerformanceFrequency(),
@zoq
zoq / makefile
Created March 27, 2015 19:16
Link against libc++ on OSX
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
# Linking against libc++ instead of the GNU libstdc++ on OSX.
if(APPLE)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lm")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}
-stdlib=libc++ -lm")
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS}
-stdlib=libc++ -lm")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
else(APPLE)
@zoq
zoq / default
Created August 12, 2015 14:24
nginx websocket
server {
listen 80;
server_name default_server;
root /home/marcus/src/nn-demos;
index index.html;
location /mnist {
index index.html;
}
@zoq
zoq / CMakeLists.txt
Created August 20, 2015 14:16
mlpack/methods/ann/CMakeLists.txt
# Define the files we need to compile
# Anything not in this list will not be compiled into MLPACK.
set(SOURCES
rnn.hpp
ffnn.hpp
cnn.hpp
network_traits.hpp
)
# Add directory name to sources.
@zoq
zoq / CMakeLists.txt
Created August 20, 2015 14:17
mlpack/methods/ann/activation_functions/CMakeLists.txt
# Define the files we need to compile
# Anything not in this list will not be compiled into MLPACK.
set(SOURCES
identity_function.hpp
logistic_function.hpp
softsign_function.hpp
tanh_function.hpp
rectifier_function.hpp
)
@zoq
zoq / CMakeLists.txt
Created August 20, 2015 14:18
/Users/marcus/src/mlpack/src/mlpack/methods/ann/connections/CMakeLists.txt
# Define the files we need to compile
# Anything not in this list will not be compiled into MLPACK.
set(SOURCES
full_connection.hpp
self_connection.hpp
fullself_connection.hpp
connection_traits.hpp
conv_connection.hpp
pooling_connection.hpp
bias_connection.hpp
@zoq
zoq / CMakeLists.txt
Created August 20, 2015 14:19
mlpack/methods/ann/convolution_rules/CMakeLists.txt
# Define the files we need to compile
# Anything not in this list will not be compiled into MLPACK.
set(SOURCES
border_modes.hpp
naive_convolution.hpp
fft_convolution.hpp
svd_convolution.hpp
)
# Add directory name to sources.
@zoq
zoq / CMakeLists.txt
Created August 20, 2015 14:20
mlpack/methods/ann/init_rules/CMakeLists.txt
# Define the files we need to compile
# Anything not in this list will not be compiled into MLPACK.
set(SOURCES
random_init.hpp
oivs_init.hpp
kathirvalavakumar_subavathi_init.hpp
nguyen_widrow_init.hpp
zero_init.hpp
)
@zoq
zoq / CMakeLists.txt
Created August 20, 2015 14:21
mlpack/methods/ann/layer/CMakeLists.txt
# Define the files we need to compile
# Anything not in this list will not be compiled into MLPACK.
set(SOURCES
layer_traits.hpp
neuron_layer.hpp
bias_layer.hpp
dropout_layer.hpp
multiclass_classification_layer.hpp
binary_classification_layer.hpp
lstm_layer.hpp
@zoq
zoq / CMakeLists.txt
Last active August 29, 2015 14:27
mlpack/methods/ann/optimizer/CMakeLists.txt
# Define the files we need to compile
# Anything not in this list will not be compiled into MLPACK.
set(SOURCES
ada_delta.hpp
steepest_descent.hpp
rpropp.hpp
rpropm.hpp
irpropp.hpp
irpropm.hpp
rmsprop.hpp