An iterative stacked weighted auto-encoder