250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- error
- shell
- TensorFlow
- 알고리즘
- 턱걸이
- 공부
- C언어
- 딥러닝
- 학습
- 백준알고리즘
- 리눅스
- 회귀
- Windows10
- python
- 프로그래밍
- C++
- CV
- 텐서플로우
- 프로세스
- OpenCV
- 영상처리
- 운영체제
- 쉘
- 코딩
- 시스템프로그래밍
- Windows 10
- c
- 백준
- Computer Vision
- linux
Archives
- Today
- Total
목록or 뉴런 (1)
줘이리의 인생적기
[tensorflow 06] OR 연산 뉴런
AND 연산에 이어 OR 연산 뉴런을 만들어 보겠습니다. 뉴런 계산식도 AND 연산과 동일합니다. AND 연산과 다른점은 출력 y가 바뀌었죠. import tensorflow as tf import math import numpy as np def sigmoid(x): return 1 / (1 + math.exp(-x)) x = np.array([[1,1], [1,0], [0,1], [0,0]]) y = np.array([[1], [1], [1], [0]]) # 참 참 참 거짓 w = tf.random.normal([2], 0, 1) b = tf.random.normal([1], 0, 1) for i in range(2000): error_sum = 0 for j in range(4): output = ..
공부/tensorflow
2021. 4. 8. 22:00