koalaverse / homlr

Supplementary material for Hands-On Machine Learning with R, an applied book covering the fundamentals of machine learning with R.
https://koalaverse.github.io/homlr
Creative Commons Attribution Share Alike 4.0 International
229 stars 88 forks source link

Is Potential Problem with code or my machine? #27

Closed mccurcio closed 4 years ago

mccurcio commented 4 years ago

I am working through sections of HOML/autoencoders.html and found an error message pop up.

In section: 19.2.3 Visualizing the reconstruction, I found an error associated with the line:

# Predict reconstructed pixel values  
best_model_id <- grid_perf@model_ids[[1]]

after this line I get:

Error: object 'grid_perf' not found

Up to this point, I have followed the code from the Autoencoder section, should I look at my setup or is this a change in H2O.ai and code? HTH

bradleyboehmke commented 4 years ago

Good catch @mccurcio , this is actually an error on the code side. If you replace that line with

best_model_id <- ae_grid@model_ids[[1]]

then it should work just fine. I will be updating the online version of the book with this correction shortly.

bradleyboehmke commented 4 years ago

The online version of the book has been updated. Thanks @mccurcio