[Coursera] DeepLearning.AI TensorFlow Developer ( Tensorflow In Practice ) 강의 정리
Course 1 : Introduction to TensorFlow for Artificial Intelligence, Machine Learning, and Deep Learning
Course 2 : Convolutional Neural Networks in TensorFlow
- Week 1 - Exploring a Larger Dataset
- Week 2 - Augmentation: A technique to avoid overfitting
- Week 3 - Transfer Learning
- Week 4 - Multiclass Classifications
Course 3 : Natural Language Processing in TensorFlow
Course 4 : Sequences, Time Series and Prediction
Training with the cats vs. dogs dataset
이미지 생성
1 | |
ImageDataGenerator(rescale = 1.0/255.) - 이미지 정규화
train_dir - train 이미지가 포함 된 하위 디렉토리
target_size=(150, 150) - 이미지 사이즈 조정
class_mode='binary' - 이진분류
1 | |
모델 생성
week1 사람 / 말 분류 방법과 유사
1 | |
MaxPooling2D(), Conv2D 세 세트로 구성
Output :
Model: "sequential"
_________________________________________________________________
Layer (type) Output Shape Param #
=================================================================
conv2d (Conv2D) (None, 148, 148, 16) 448
_________________________________________________________________
max_pooling2d (MaxPooling2D) (None, 74, 74, 16) 0
_________________________________________________________________
conv2d_1 (Conv2D) (None, 72, 72, 32) 4640
_________________________________________________________________
max_pooling2d_1 (MaxPooling2 (None, 36, 36, 32) 0
_________________________________________________________________
conv2d_2 (Conv2D) (None, 34, 34, 64) 18496
_________________________________________________________________
max_pooling2d_2 (MaxPooling2 (None, 17, 17, 64) 0
_________________________________________________________________
flatten (Flatten) (None, 18496) 0
_________________________________________________________________
dense (Dense) (None, 512) 9470464
_________________________________________________________________
dense_1 (Dense) (None, 1) 513
=================================================================
Total params: 9,494,561
Trainable params: 9,494,561
Non-trainable params: 0
_________________________________________________________________1 | |
optimizer=RMSprop(lr=0.001) - learning rate 조정
모델학습
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
https://www.coursera.org/professional-certificates/tensorflow-in-practice