Skip to content

Instantly share code, notes, and snippets.

@YoiTaka
YoiTaka / mnist_for_ml_beginners.py
Last active December 29, 2016 02:28
TensorFlowチュートリアル -MNIST For ML Beginners
#TensorFlowのインポート
import tensorflow as tf
#数値計算用ライブラリのNumpuのインポート
import numpy as np
#tensorflow.contrib.learn.python.learn.datasets.mnist.pyの関数read_data_setsをインポート
from tensorflow.contrib.learn.python.learn.datasets.mnist import read_data_sets
#MNISTデータの読み込み
mnist = read_data_sets("MNIST_data/", one_hot=True)
@YoiTaka
YoiTaka / CalcBall.f
Created November 16, 2016 11:43
円の体積を計算(2パターン)
C234567
IMPLICIT REAL*8(A-H,O-Z)
write(*,*) 'r,N='
read(*,*) r,N
PI=3.1415926d0
dx=r/N
v=0.0
DO 100 I=1,N+1
x=dx*(I-1)