Matlab で eigs() を実行する
$ matlab
< M A T L A B (R) >
Copyright 1984-2010 The MathWorks, Inc.
Version 7.11.0.584 (R2010b) 64-bit (glnxa64)
August 16, 2010
# -*- coding: utf-8 -*- | |
import argparse | |
import pickle | |
import os | |
import re | |
from subprocess import Popen | |
import requests | |
from bs4 import BeautifulSoup |
f(x) = \begin{cases} | |
\frac{n^+(x)}{n(x)}, & \textit{if}\;\,n(x) \ne 0 \\ | |
\frac{N^+}{N}, & \textit{otherwise} | |
\end{cases} |
""" | |
An example to check the AUC score on a validation set for each 10 epochs. | |
I hope it will be helpful for optimizing number of epochs. | |
""" | |
# -*- coding: utf-8 -*- | |
import logging | |
from sklearn.metrics import roc_auc_score | |
from keras.callbacks import Callback |
th = require 'torch' | |
mattorch = require 'fb.mattorch' | |
function main() | |
train_data = th.load('data/train_all.t7') | |
test_data = th.load('data/test_all.t7') | |
print("Convert train_all (mat)") | |
train_all_mat = {} | |
for i=1, #train_data do |
#!perl | |
use Benchmark qw(:all); | |
use Digest::MurmurHash3::PurePerl; | |
use Digest::MurmurHash3; | |
my $count = 1e7; | |
cmpthese($count, { | |
'Digest::MurmurHash3::PurePerl' => sub { Digest::MurmurHash3::PurePerl::murmur32('this is a test. ignore me.') }, |
import sys | |
import random | |
import json | |
import time | |
from influxdb import InfluxDBClient | |
def generate_gauss_value(mu, sigma, price=100.0, size=6*60*24*30): | |
current_timestamp = int(time.time()) |
FROM ubuntu:precise | |
MAINTAINER Kohei Ozaki <[email protected]> | |
ADD kafka-install.sh /kafka-install.sh | |
RUN /bin/bash /kafka-install.sh | |
EXPOSE 2888 3888 2181 9092 | |
# CMD /bin/bash /opt/kafka/run |
FROM ubuntu | |
ADD influxdb-install.sh /influxdb-install.sh | |
RUN /bin/bash /influxdb-install.sh | |
EXPOSE 8083 8086 | |
CMD /opt/influxdb/run |
package sandbox; | |
import backtype.storm.Config; | |
import backtype.storm.LocalCluster; | |
import backtype.storm.spout.SpoutOutputCollector; | |
import backtype.storm.task.OutputCollector; | |
import backtype.storm.task.TopologyContext; | |
import backtype.storm.topology.OutputFieldsDeclarer; | |
import backtype.storm.topology.TopologyBuilder; | |
import backtype.storm.topology.base.BaseRichBolt; |
Matlab で eigs() を実行する
$ matlab
< M A T L A B (R) >
Copyright 1984-2010 The MathWorks, Inc.
Version 7.11.0.584 (R2010b) 64-bit (glnxa64)
August 16, 2010