Skip to content

Instantly share code, notes, and snippets.

View tetsugps's full-sized avatar
🎯
Focusing

tetsugps tetsugps

🎯
Focusing
View GitHub Profile
@gosyujin
gosyujin / android-adb.md
Last active December 20, 2015 12:19
android-adb
@noriaki
noriaki / command line
Last active April 7, 2016 17:09
LINE BOT APIにちゃんとアカウント登録できてるか確認するためのcurlコマンド。{ほげほげ}の部分には管理画面の各値をあてはめる。レスポンスに自分の設定したアカウント情報が返ってくれば正しく登録できてる
curl -H "X-Line-ChannelID: {Channel ID}" \
-H "X-Line-ChannelSecret: {Channe lSecret}" \
-H "X-Line-Trusted-User-With-ACL: {MID}" \
"https://trialbot-api.line.me/v1/profiles?mids={MID}"
@reiji1020
reiji1020 / WhatisCNN.md
Last active February 8, 2017 05:03
卒研用のメモ,機械学習の基礎と畳み込みニューラルネットワークとは何か

畳み込みニューラルネットワーク

RBMとは何か

  • Restricted Bolzmann Machine
  • 通常のボルツマンマシンとは違い,可視ユニット同士,不可視ユニット同士の連結を認めない 制限付きボルツマンマシン のことを指す
  • 通常1層ではなく,何層かに重ねて使われる
  • RBMを1段階学習した後,不可視ユニットの活性(値)をより高階層のRBMの入力データとする
  • 不可視ユニットを効率的に学習させることができ,また計算量を現実的な水準に落としている
  • ある訓練データvが与えられたとき、条件付き確率p(hj=1|v)が計算でき、その意味は「vが与えられたとき hjがONになる(1になる)確率 」
@katsugeneration
katsugeneration / iris_tensorflow.py
Created July 18, 2016 07:34
TensorFlow basic DNN
import tensorflow as tf
import numpy as np
import pandas as pd
import math
# Data sets
IRIS_TRAINING = "iris_training.csv"
IRIS_TEST = "iris_test.csv"
IRIS_DATA_SIZE = 4
CLASS_SIZE = 3
@komiya-atsushi
komiya-atsushi / apriori.rb
Created June 9, 2013 13:37
アルゴリズムの理解のために、Apriori algorithm を Ruby で実装してみました。 お勉強用なので、性能は度外視しています。
# -*- coding: utf-8 -*-
# Apriori algorithm の実装です
#
# http://en.wikipedia.org/wiki/Apriori_algorithm の擬似コードと
# http://www.codeproject.com/Articles/70371/Apriori-Algorithm を
# 参考にしています
require 'set'
@uramonk
uramonk / mnist_for_ml_beginners.py
Created May 12, 2016 02:31
TensorFlow MNIST For ML Beginners チュートリアルのコード
# -*- coding: utf-8 -*-
# TensowFlowのインポート
import tensorflow as tf
# MNISTを読み込むためinput_data.pyを同じディレクトリに置きインポートする
# input_data.pyはチュートリアル内にリンクがあるのでそこから取得する
# https://tensorflow.googlesource.com/tensorflow/+/master/tensorflow/examples/tutorials/mnist/input_data.py
import input_data
import time
@tyoshikawa1106
tyoshikawa1106 / CreateTaskEmailExample.cls
Created July 31, 2013 04:34
Messaging.InboundEmailHandler
global class CreateTaskEmailExample implements Messaging.InboundEmailHandler {
global Messaging.InboundEmailResult handleInboundEmail(Messaging.inboundEmail email,
Messaging.InboundEnvelope env) {
Messaging.InboundEmailResult result = new Messaging.InboundEmailResult();
String myPlainText= email.plainTextBody;
Task[] newTask = new Task[0];
@Hi-king
Hi-king / crop.py
Last active January 24, 2019 04:14
chainerで画像分類するための補助スクリプト
!/usr/bin/python
# -*- coding: utf-8 -*-
import cv2
import argparse
import os
import numpy
parser = argparse.ArgumentParser()
parser.add_argument("source_dir")
parser.add_argument("target_dir")
#!/usr/bin/env python
# coding: utf-8
"""Create Sample Sequence Data"""
import random
from cPickle import dump, HIGHEST_PROTOCOL
import tensorflow as tf
import json
#!/usr/bin/env python
# coding: utf-8
"""Compare data distribution"""
import json
from itertools import chain
import cPickle as pickle
import tensorflow as tf
import pandas as pd