일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- TensorFlow
- softmax
- DFS
- 시간초과
- PIR
- deep learning
- c++
- 큐
- sung kim
- deque
- 모두를 위한 딥러닝
- Neural Network
- Machine learning
- Programmers
- 프로그래머스
- join
- Queue
- 한화오션
- SQL
- 백준
- CSAP
- BOJ
- 모두를 위한 머신러닝
- stl
- ML
- Linear Regression
- 정렬
- sort
- mysql
- 알고리즘 고득점 kit
Archives
- Today
- Total
목록placeholder (1)
hello, world!
[ML lab 02] TensorFlow로 간단한 linear regression을 구현
X가 1일 때 Y가 1, X가 2일 때 Y가 2, X가 3일 때 Y가 3인 값들을 보고 학습한 후 cost function이 최소가 되는 hypothesis의 W(weight)와 b(bias)예측해 보라는 예제이다. import tensorflow.compat.v1 as tf tf.disable_v2_behavior() ## 그래프 구현 # X and Y data x_train = [1, 2, 3] y_train = [1, 2, 3] W = tf.Variable(tf.random_normal([1]), name = 'weight') b = tf.Variable(tf.random_normal([1]), name = 'bias') # hypothesis = XW + b hypothesis = x_train ..
AI/모두를 위한 ML (SungKim)
2021. 2. 15. 11:18