Skip to content

Instantly share code, notes, and snippets.

@oiehot
oiehot / pydl_funcs.py
Last active February 18, 2017 02:53
딥 러닝 기초 함수들
import numpy as np
def step(x):
return np.array( x > 0, dtype=np.int )
def sigmoid(x):
y = 1 / (1 + np.exp(-x))
return y
def relu(x):