Autoencoder And Dbscan Algorithm In Python Definition Function