티스토리 뷰

Introduction To Tensorflow

 

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
링크
«   2025/04   »
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
글 보관함