Modelleri kullanma

Python ile Deep Learning'e Giriş

Dan Becker

Data Scientist and contributor to Keras and TensorFlow libraries

Modelleri kullanma

  • Kaydet
  • Yeniden yükle
  • Tahmin yap
Python ile Deep Learning'e Giriş

Modelinizi kaydetme, yeniden yükleme ve kullanma

from tensorflow.keras.models import load_model
model.save('model_file.h5')
my_model = load_model('model_file.h5')
predictions = my_model.predict(data_to_predict_with)
probability_true = predictions[:,1]
Python ile Deep Learning'e Giriş

Model yapısını doğrulama

my_model.summary()
_____________________________________________________________________________________________
Katman (türü)                    Çıkış Şekli          Param #     Bağlandığı
=========================================================================================
dense_1 (Dense)                  (None, 100)           1100        dense_input_1[0][0]
_____________________________________________________________________________________________
dense_2 (Dense)                  (None, 100)           10100       dense_1[0][0]
_____________________________________________________________________________________________
dense_3 (Dense)                  (None, 100)           10100       dense_2[0][0]
_____________________________________________________________________________________________
dense_4 (Dense)                  (None, 2)             202         dense_3[0][0]
=========================================================================================
Toplam parametre: 21,502
Eğitilebilir parametre: 21,502
Eğitilemez parametre: 0
Python ile Deep Learning'e Giriş

Haydi pratik yapalım!

Python ile Deep Learning'e Giriş

Preparing Video For Download...