반응형
🔷 딥러닝 파라미터 정리
선형 회귀 | 로지스틱 회귀 | 멀티클래스 분류 | |
output layer activation |
X (or linear) |
sigmoid | softmax |
loss | mse | binary_crossentropy | categorical crossentropy |
🔷 라이브러리 불러오기
import tensorflow as tf
from tensorflow import keras
🔹 train set / test set 구분하기
from sklearn.model_selection import train_test_split
🔹 One-hot Encoding
from tensorflow.kears.utils import to_categorical
🔹 모델 시각화
from tensorflow.keras.utils import plot_model
=>
plot_model(model, show_shapes=True)
🔹 EarlyStopping
from tensorflow.keras.callbacks import EarlyStopping
🔹 Modelcheckpoint
from tensorflow.keras.callbacks import ModelCheckpoint
🔹 model, layers
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout
반응형
'AI > DeepLearning' 카테고리의 다른 글
CNN 개념 (0) | 2023.03.14 |
---|---|
multi-input & Concatenate layer / Add layer (0) | 2023.03.06 |
딥러닝 - 로지스틱 회귀(Logistic Regression) (0) | 2023.03.01 |
멀티클래스 분류, 히든레이어 모델링 (0) | 2023.03.01 |
딥러닝_선형회귀(Linear Regression), Sequential API, Functional API (0) | 2023.02.28 |