aapatel09 / handson-unsupervised-learning

Code for Hands-on Unsupervised Learning Using Python (O'Reilly Media)
651 stars 324 forks source link

08 Autoencoders possible error #4

Closed amit-dingare closed 4 years ago

amit-dingare commented 5 years ago

On line 36, you are passing two arguments to anomalyScores; X_test and predictions. Is that right? Shouldn't the arguments be y_test and predictions?

aapatel09 commented 4 years ago

No, anomalyScores is comparing the original X with the predicted X so two DataFrames passed into the function are X_test (the original) and predictions (the predicted X_test).