There are many online informations or books about machine learning. In finance the goal is normally predicting the future price direction or trade result. I suppose that's also the intention of your script. In special cases you want to predict other parameters such as volatiliy or market efficiency.