Skip to content

Instantly share code, notes, and snippets.

TensorFlow勉強会

  • 「Googleスケールの機械学習テクノロジー」
    • Google Inc クラウドデベロッパーアドボケイト 佐藤一憲氏
  • 「TensorFlowで趣味の画像収集サーバーを作る 4月号」
    • 有限会社シーリス 代表 有山 圭二氏
  • 「ニューラルネット以外でのTensorFlow活用法」
    • faho氏
  • 「TensorFlow Tutorialの数学的背景」クイックツアー(パート1)
  • 中井悦司氏
@taise
taise / eratosthenes_sieve.rb
Last active April 3, 2016 02:33
Rubyの組み込みPrimeで実装されているエラトステネスのふるいの解説 https://github.com/ruby/ruby/blob/3e92b635fb5422207b7bbdc924e292e51e21f040/lib/prime.rb#L422
=begin
## エラトステネスのふるい とは
エラトステネスのふるいは、x^(1/2) 以下の素数が既知のとき、
x^(1/2) 以上 x 以下の素数を決定するには、x 以下の整数で
x^(1/2) 以下の素数の倍数を全て取り除けばよいというものです
## なぜ組み込みのエラトステネスのふるい は早いのか
set LANG en_US.UTF-8
# for homebrew
set -x PATH=/usr/local/bin $PATH
set -x PATH=/usr/local/sbin $PATH
# Customize to your needs...
export LSCOLORS=gxfxcxdxbxegedabagacad
alias ls='ls -G'
alias today='mkdir `date +"%Y%m%d"`'
package main
import (
"log"
"runtime"
"time"
)
func f(msg string) {
log.Println(msg)
package main
import (
"fmt"
"math"
)
/*
* ## グラフの基礎知識
*
# -*- coding: utf-8 -*-
import numpy as np
data_set = {
'transaction_1': [0,1,0,0,1],
'transaction_2': [1,0,1,1,0],
'transaction_3': [1,0,1,0,0],
'transaction_4': [0,1,0,1,0],
'transaction_5': [0,0,0,1,0]
@taise
taise / multi.py
Created June 11, 2015 23:34
multiprocessingのサンプル
from multiprocessing import Process
import os
MAX_PROCESS = 4
def info(title):
print("%s, 'module: %s, pid: %s" % (title, __name__, os.getpid()))
def f(name):
info('function f')
@taise
taise / iris.py
Created June 11, 2015 23:02
sqlalchemyのサンプル
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
db = {
'driver': 'mysql+mysqldb',
'user': 'root',
'password': '',
'host': 'localhost',
'database': 'sample_data',
'opt': '?charset=utf8'
@taise
taise / file0.go
Last active August 29, 2015 14:20
Go言語入門してつまったアレコレ ref: http://qiita.com/taise/items/e6cf4639356b46152768
var matrix [2][2]int = [2][2]int {}
// #=> [[0 0] [0 0]]
matrix2 := [2][2]int {}
// #=> [[0 0] [0 0]]
matrix3 := [3][2]int {{0, 1}, {}, {2, 3}}
// #=> [[0 1] [0 0] [2 3]]
@taise
taise / Dockerifle
Last active August 29, 2015 14:18
Dockerfile / cloudera hue on CentOS7
FROM centos:centos7
MAINTAINER yusaku.omasa
RUN yum -y update
# Install dependency
RUN yum -y install ant \
asciidoc \
cyrus-sasl-devel \