การสร้างโมเดล Keras

Introduction to Deep Learning in Python

Dan Becker

Data Scientist and contributor to Keras and TensorFlow libraries

ขั้นตอนการสร้างโมเดล

  • กำหนดสถาปัตยกรรม

  • คอมไพล์

  • ฝึกโมเดล

  • พยากรณ์

Introduction to Deep Learning in Python

การกำหนดสถาปัตยกรรมโมเดล

import numpy as np
from tensorflow.keras.layers import Dense
from tensorflow.keras.models import Sequential

predictors = np.loadtxt('predictors_data.csv', delimiter=',')
n_cols = predictors.shape[1]

model = Sequential()
model.add(Dense(100, activation='relu', input_shape = (n_cols,)))
model.add(Dense(100, activation='relu'))
model.add(Dense(1))
Introduction to Deep Learning in Python

มาฝึกกันเถอะ!

Introduction to Deep Learning in Python

Preparing Video For Download...