Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
"""
Created on Mon Jun 29 14:55:33 2015
@author: sakurai
"""
import numpy as np
import matplotlib.pyplot as plt
from sklearn import preprocessing
# -*- coding: utf-8 -*-
"""
Created on Tue May 21 12:50:16 2013
@author: ryuhei
"""
import numpy as np
import matplotlib.pyplot as plt
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ronekko
ronekko / kinematics_basic.py
Last active October 8, 2017 09:01
numpy, matplotlibを使った一番簡単な順運動学の例
# -*- coding: utf-8 -*-
"""
Created on Sun Oct 8 17:42:55 2017
@author: ryuhei
"""
import numpy as np
import matplotlib.pyplot as plt
@ronekko
ronekko / plot_sequential_labels.py
Last active July 26, 2017 06:27
Draw a sequence of segments of integers as color bar (e.g. for prediction of sequential classification)
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 25 17:12:25 2017
@author: sakurai
"""
import matplotlib.pyplot as plt
import numpy as np
@ronekko
ronekko / opencv_imshow_fullscreen.py
Last active November 18, 2023 16:13
Python example to show an image in full screen by opencv
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 22 16:44:27 2017
@author: sakurai
"""
import numpy as np
import cv2
# -*- coding: utf-8 -*-
"""
Created on Fri Jun 9 13:13:26 2017
@author: sakurai
MNIST dataset.
It comsists of 60,000 training examples and 10,000 testing examples.
x: each image is an ndarray of uint8 dtype, 1*28*28 shape.
c: scalar of uint32
@ronekko
ronekko / matplotlib_dynamic_update.py
Last active March 22, 2017 08:10
matplotlibで一つのfigureウィンドウの内容を逐次的に更新してアニメーションする
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 22 16:44:14 2017
@author: sakurai
"""
import numpy as np
import matplotlib.pyplot as plt
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 20 18:00:58 2017
@author: ryuhei
"""
import os
import itertools
from glob import glob
@ronekko
ronekko / convert_linear_to_conv1x1.py
Created January 13, 2017 06:40
全結合Linkを1×1のConvolution2Dに置き換える例
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 13 14:52:21 2017
@author: sakurai
平均値プーリングと全結合変換は、適用順序を入れ替えても同じ結果になる。
全結合Linkを1×1のConvolution2Dに置き換える例。
"""