티스토리 뷰
Introduction to TensorFlow for Artificial Intelligence, Machine Learning, and Deep Learning
deeplearning.ai에서 제공합니다. If you are a software developer who wants to build scalable AI-powered algorithms, you need to understand how to use the ... 무료로 등록하십시오.
www.coursera.org
Machine Learning
- Traditional Learning: Rule & Data -> Answer
- Machine Learning : Answer & Data -> Rule
Keras
Tensorflow의 API 중 하나
Neural Network를 정의하는 가장 간단하고 쉬운 tool
Neural Network
Neural Network는 "패턴 학습" 을 위한 함수의 기본적인 세트
Dense : Connected Neurons의 층을 정의
2개의 함수(loss, optimizer)는 필수로 알고 있어야 함
- loss
- 현재의 추측(패턴 학습)이 얼마나 좋은지 나쁜지를 측정
- 그 후 optimizer에게 다음 추측을 위한 데이터를 제공
- optimizer
- loss로 받은 데이터로 과거의 추측(패턴 학습)이 얼마나 좋은지 나쁜지를 측정
- Convergence : The process of getting very close to the correct answer
- 학습
- fit : X와 Y의 관계를 학습시키는 명령어
- epoch: 학습 횟수
- 예측 : predict
- 학습
하기는 Single Neural Network (Dense unit = 1)
model = keras.Sequential([keras.layers.Dense(units=1, input_shape[1])])
model.compile(optimizer='sgd', loss='mean_squared_error')
xs = np.array([-1.0, 0.0, 1.0, 2.0, 3.0, 4.0], dtype=float)
ys = np.array([-3.0, -1.0, 1.0, 3.0, 5.0, 7.0], dtype=float)
model.fit(xs, ys, epochs=500)
print(model.predict([10.0]))
'데이터분석 > Tensorflow' 카테고리의 다른 글
[Tensorflow] convolutions and pooling (0) | 2022.10.03 |
---|---|
[Tensorflow] Computer_Vision (1) | 2022.10.03 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- programmers
- 확률
- neural network
- 분당서울대병원
- leatcode
- 중앙값
- 상관관계
- counter
- 힙
- 뇌하수체
- 확률분포
- 평균
- SQL
- 군고구마
- 코딩테스트
- 조건부확률
- 분산
- TensorFlow
- random forest
- Lambda
- 사분위수
- 쿠싱
- Python
- 뇌하수체선종
- 쿠싱증후군
- 파이썬
- 프로그래머스
- 상대도수
- 통계
- hash
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함