Deep Learning with R Cookbook by Swarna Gupta

Deep Learning with R Cookbook by Swarna Gupta

Author:Swarna Gupta [Swarna Gupta]
Language: eng
Format: epub
Tags: COM014000 - COMPUTERS / Computer Science, COM062000 - COMPUTERS / Data Modeling and Design, COM025000 - COMPUTERS / Expert Systems
Publisher: Packt
Published: 2020-02-21T08:33:54+00:00


We now compile and train the autoencoder:

# compile

autoencoder %>% compile(loss='mse', optimizer='adam')

# train the autoencoder

autoencoder %>% fit(x_train_gray,

x_train,

validation_data= list(x_test_gray, x_test),

epochs=20,

batch_size=batch_size)

We use the trained model to generate predictions for test data:

predicted <- autoencoder %>% predict(x_test_gray)

The following screenshot depicts how our autoencoder colorized the grayscale images:

In the next section, we will get down to the nitty-gritty of all of the steps we implemented.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.