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
/* | |
uWSGI plugin that creates custom json-escaped logging variables. | |
build plugin with `uwsgi --build-plugin <filename.c>` | |
and use it with `uwsgi --plugin <filename_plugin.so> ...` | |
*/ | |
#include <uwsgi.h> | |
static ssize_t uwsgi_lf_json_uri(struct wsgi_request *wsgi_req, char **buf) { |
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
def zca_whiten(X): | |
""" | |
Applies ZCA whitening to the data (X) | |
http://xcorr.net/2011/05/27/whiten-a-matrix-matlab-code/ | |
X: numpy 2d array | |
input data, rows are data points, columns are features | |
Returns: ZCA whitened 2d array | |
""" |