Skip to content

Instantly share code, notes, and snippets.

View TakuTsuzuki's full-sized avatar

Taku Tsuzuki TakuTsuzuki

  • RIKEN Osaka-u
  • Osaka
View GitHub Profile
@mikelane
mikelane / game_of_life.py
Last active March 21, 2022 22:52
Conway's Game of Life implemented using a 2d convolution.
import click
import difflib
import numpy as np
import random
import sys
import time
from os import name, system
from scipy.ndimage import convolve
@TakuTsuzuki
TakuTsuzuki / entropy2D.py
Last active August 29, 2015 14:22
PCA for image analysis
import numpy as np
def entropy(X):
#caluculate Entropy of 1D-list
X = np.array(X,dtype='f')
p = X/np.sum(X)
p = np.array([x for x in p if x>0])
H = np.sum(-p*np.log2(p))
@denis-bz
denis-bz / Nd-testfuncs-python.md
Last active November 7, 2024 11:10
N-dimensional test functions for optimization, in Python
@TakuTsuzuki
TakuTsuzuki / dA_5.py
Last active August 29, 2015 14:06
5th-layer denoising Autoencoder
import numpy
import argparse
import cPickle as pickle
import utils
class Autoencoder3(object):
def __init__(self, n_visible = 784, n_hidden1 = 784,
n_hidden2 = 784, n_hidden3 = 784,
n_hidden4 = 784, n_hidden5 = 784,
@coela
coela / visualizedeeplayer.py
Created September 17, 2014 14:50
visualizedeeplayer
from numpy.random import *
import pickle
import numpy
pixnum = 784
pixnum2 = 100
alpha = 0.1
numIterations = 500
@luispedro
luispedro / readroi.py
Last active December 16, 2020 07:50
Read ImageJ's ROI files
# UPDATE IN 2020
# You almost always will want to use the version at
# https://github.com/luispedro/imread, which is
# up-to-date and works with Python 3
# Copyright: Luis Pedro Coelho <[email protected]>, 2012
@poutyface
poutyface / git
Created December 29, 2010 17:37
gitの使い方
githubへ登録
===========
git remote add origin [email protected]:<username>/<application_name>.git
git push origin master
初期設定
=======
git config --global user.name "Foo Bar"
git config --global user.email "[email protected]"