Adversarial Validation and Training in Stock Market Price Prediction


Adversarial validation and adversarial training approaches are used in order to face the concept drift problem and the the adversarial attacks to your model. These two concepts are mainly used in computer vision and NLP models. We will see a specialization in the financial stock market for predictive models, in particular in this session we will see these two approaches applied in the field of prediction of stock price market.

To face these scenario we will use a forecasting model trained to predict when to BUY or SELL a stock. We will see a complete pipeline implementation from stock market data aquisition to real time prediction in PRODUCTION. We will see the performace of this model in a first phase when subject to concept drift between training data and test data and to adversarial attacks which make the model powerless in the task of predicting. Then we will see how adopting adversarial validation and adversarial training techniques clearly improves the quality of predictions increasing the robustness to variations in the features of dataset that you will face in production. The implemented model will be evaluated on what are the optimal predictions that can be made with the test data. In order to create these benchmarks, the price and volumes of the stocks will be analyzed in advance so as to be able to calculate in advance when to BUY and when to SELL. After calculating the earnings based on these perfect transactions, the training of the model can begin. The implemented model uses as training features calculated on optimal transactions performed on the dataset. These features will be used as the foundation of the predictive model in order to be able to read possible optimal transitions even in production, in real time. A significant improvement of the model will be dictated by the adoption of the concepts of adversarial validation and adversarial training.


Giacomo is a Computer Science Engineer at Machine Learning Reply. He has a Master's Degree in Computer Science and Engineering at Politecnico di Milano. Giacomo is passionate about time series forecasting and robotics. He is actually working on Embodied AI Agents with Visual Language Models.

Open Data Science




Open Data Science
One Broadway
Cambridge, MA 02142

Privacy Settings
We use cookies to enhance your experience while using our website. If you are using our Services via a browser you can restrict, block or remove cookies through your web browser settings. We also use content and scripts from third parties that may use tracking technologies. You can selectively provide your consent below to allow such third party embeds. For complete information about the cookies we use, data we collect and how we process them, please check our Privacy Policy
Consent to display content from - Youtube
Consent to display content from - Vimeo
Google Maps
Consent to display content from - Google