İlk sinir ağınız

Keras ile Deep Learning'e Giriş

Miguel Esteban

Data Scientist & Founder

Sinir ağı nedir?

Keras ile Deep Learning'e Giriş

Parametreler

Keras ile Deep Learning'e Giriş

Gradyan inişi

Keras ile Deep Learning'e Giriş

Sequential API

Keras ile Deep Learning'e Giriş

Sequential API

Keras ile Deep Learning'e Giriş

Sequential API

Keras ile Deep Learning'e Giriş

Bir sinir ağı tanımlama

from tensorflow.keras.models import Sequential

from tensorflow.keras.layers import Dense
# Create a new sequential model model = Sequential()
# Add and input and dense layer model.add(Dense(2, input_shape=(3,)))
# Add a final 1 neuron layer model.add(Dense(1))

Keras ile Deep Learning'e Giriş

Aktivasyonlar ekleme

from tensorflow.keras.models import Sequential

from tensorflow.keras.layers import Dense
# Create a new sequential model model = Sequential()
# Add and input and dense layer model.add(Dense(2, input_shape=(3,)))
# Add a final 1 neuron layer model.add(Dense(1))

Keras ile Deep Learning'e Giriş

Aktivasyonlar ekleme

from tensorflow.keras.models import Sequential

from tensorflow.keras.layers import Dense
# Create a new sequential model model = Sequential()
# Add and input and dense layer model.add(Dense(2, input_shape=(3,), activation="relu"))
# Add a final 1 neuron layer model.add(Dense(1))

Keras ile Deep Learning'e Giriş

Modelinizi özetleyin

model.summary()
Layer (type)                 Output Shape              Param #   
=================================================================
dense_3 (Dense)              (None, 2)                 8         
_________________________________________________________________
dense_4 (Dense)              (None, 1)                 3         
=================================================================
Total params: 11
Trainable params: 11
Non-trainable params: 0
_________________________________________________________________
Keras ile Deep Learning'e Giriş

Parametreleri görselleştirin

Keras ile Deep Learning'e Giriş

Parametreleri görselleştirin

Keras ile Deep Learning'e Giriş

Modelinizi özetleyin

model.summary()
Layer (type)                 Output Shape              Param #   
=================================================================
dense_3 (Dense)              (None, 2)             --> 8 <--       
_________________________________________________________________
dense_4 (Dense)              (None, 1)                 3         
=================================================================
Total params: 11
Trainable params: 11
Non-trainable params: 0
_________________________________________________________________
Keras ile Deep Learning'e Giriş

Hadi kodlayalım!

Keras ile Deep Learning'e Giriş

Preparing Video For Download...