Skip to content

Instantly share code, notes, and snippets.

View Drunkar's full-sized avatar

Akio Ohta Drunkar

View GitHub Profile
@andreas-h
andreas-h / r_stl.py
Created December 5, 2013 16:30
Python-wrapper for R's STL
# -*- coding: utf-8 -*-
import datetime
from numpy import asarray, ceil
import pandas
import rpy2.robjects as robjects
def stl(data, ns, np=None, nt=None, nl=None, isdeg=0, itdeg=1, ildeg=1,
nsjump=None, ntjump=None, nljump=None, ni=2, no=0, fulloutput=False):
@andete
andete / gist:71b531b081fbc3ac0671
Created May 25, 2015 09:02
KiCad BOM script example
#!/usr/bin/env python
# (c) 2015 Productize <joost@productize.be>
import sys, copy, collections, codecs
from bs4 import BeautifulSoup
soup = BeautifulSoup(open(sys.argv[1]))
date = soup.design.date.contents[0]
@learntheropes
learntheropes / poloniex_private_api.gs
Last active June 2, 2019 01:18
Poloniex private API for Google Apps Script (Google Sheet)
// work in progress
// you need a poloniex API key and secret with trading option enabled
// you can test it with:
// = polo("returnBalances","BTC")
// or
// = polo("returnBalances","all")
// or buy and sell:
// polo("BUY","BTC_LTC", 0.0251, 1) or polo("SELL","BTC_LTC", 0.0251, 1)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import csv
import codecs
import numpy as np
import MeCab
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.cluster import KMeans, MiniBatchKMeans
@phillro
phillro / gist:1193227
Created September 4, 2011 17:59
Elasticsearch autocomplete example with cross origin resource sharing
<html>
<head>
<link rel="stylesheet" href="/examples/stylesheets/ui-lightness/jquery-ui-1.8.16.custom.css" type="css">
<script type="text/javascript" src="/examples/javascripts/jquery.min.js"></script>
<script type="text/javascript" src="/examples/javascripts/jquery.base64.min.js"></script>
<script type="text/javascript" src="/examples/javascripts/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="/examples/javascripts/jquery.tmpl.min.js"></script>
</head>
<body>
@kiyukuta
kiyukuta / autoencoder.py
Last active January 23, 2020 06:16
Minimum implementation of denoising autoencoder.Error function is cross-entropy of reconstruction.Optimizing by SGD with mini-batch.Dataset is available at http://deeplearning.net/data/mnist/mnist.pkl.gz
#coding: utf8
"""
1. Download this gist.
2. Get the MNIST data.
wget http://deeplearning.net/data/mnist/mnist.pkl.gz
3. Run this code.
python autoencoder.py 100 -e 1 -b 20 -v
"""
import numpy
import argparse
using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.Networking.NetworkSystem;
using System.Collections;
public class Connector : MonoBehaviour {
int connectionAttemptCount;
NetworkClient client;
bool errorHappened;
void Start () {
StartClient ();

オンライン広告関連の文献

概要

オンライン広告まわりの研究へのポインタをいくつか。 以下のものから辿っていけばある程度は見つかるはず。

学会・ワークショップ

オンライン広告に関する論文は、国際学会では、ウェブ系・データマイニング系のWWW, WSDM, KDDや、情報検索系のSIGIR, CIKMあたりに出てくる印象。 後は、機械学習系のICMLやNIPSでもたまに出る。

import tensorflow as tf
import optuna
import sklearn.datasets
from sklearn.model_selection import train_test_split
class TensorFlowPruningHook(tf.train.SessionRunHook):
def __init__(self, trial, estimator, metric, is_higher_better, run_every_steps):
self.trial = trial
@alumican
alumican / testApp.cpp
Created January 14, 2012 15:32
openFrameworksとZinniaで手書き文字認識
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup()
{
ofSetDataPathRoot("data/");
ofBackground(0);
//setup recognizer
recognizer = zinnia::Recognizer::create();