Machine learning in trading: theory, models, practice and algo-trading - page 1492

 
Maxim Dmitrievsky:

Yes, then detect them in the future and choose a model that works well on this particular cluster

You can also just submit it as a feature, NS/forest will make a submodel inside itself
 
mcpd.mcpdreport C# (CSharp) Code Examples - HotExamples
  • csharp.hotexamples.com
C# (CSharp) mcpd.mcpdreport - 6 examples found. These are the top rated real world C# (CSharp) examples of mcpd.mcpdreport extracted from open source projects. You can rate examples to help us improve the quality of examples.
 

interesting article on NS training on Habra ( just a read )Restoring photos with neural networks

the most valuable thing, as always, are the users comments - throughout the article the author talks about a major breakthrough in his work, as usual with a comparison of third-party software, but users immediately pointed out the flaw - the dominance of green

Conclusion - preparation of input data is more important than the NS training technology itself

Реставрируем фотографии с помощью нейросетей
Реставрируем фотографии с помощью нейросетей
  • habr.com
Всем привет, я работаю программистом-исследователем в команде компьютерного зрения Mail.ru Group. Ко Дню Победы в этом году мы решили сделать проект по реставрации военных фотографий. Что такое реставрация фотографий? Она состоит из трех этапов: находим все дефекты изображения: надломы, потертости, дырки; закрашиваем найденные дефекты...
 
Igor Makanu:

conclusion - the preparation of the input data is more primary than the NS learning technology itself

Sorcerer said this a billion pages ago.

Gentlemen, when will you learn to listen to each other? What is this redneck narrow-mindedness and stupidity? It is really annoying and infuriating.

 
Igor Makanu:

interesting article on NS training on Habra ( just a read )Restoring photos with neural networks

the most valuable thing, as always, are the users comments - throughout the article the author talks about a major breakthrough in his work, as usual with a comparison of third-party software, but users immediately pointed out the flaw - the dominance of green

The conclusion - the preparation of input data is more important than the technology of training NS

The fact that the picture is not moving and does not change, as well as the fingerprints. And in pattern recognition machine learning is indispensable.

But when MO is applied on historical data in forex, it only creates the illusion that it has found the best option.

And in reality, he's just learned on history to bypass all the dangerous areas, resulting in a great graph of gains.

But pricing is a dynamic process that is always changing and moving forward, and no one can guess where the price is going to go.

 
Petros Shatakhtsyan:

But when MO is applied on historical data in forex, it only creates the illusion that it has found the best option.

And in reality he has simply learned on history to bypass all the dangerous areas, resulting in a great graph of growth.

read all thishttps://habr.com/ru/post/443240/

If you want to know what I think, MO is no better and no worse than GA strategy tester,

But all the same the theme is very interesting, it's fascinating ))))

Понимание Q-learning, проблема «Прогулка по скале»
Понимание Q-learning, проблема «Прогулка по скале»
  • habr.com
Привет, Хабр! Предлагаю вашему вниманию перевод статьи «Understanding Q-Learning, the Cliff Walking problem» автора Lucas Vazquez. В последнем посте мы представили проблему «Прогулка по скале» и остановились на страшном алгоритме, который не имел смысла. На этот раз мы раскроем секреты этого серого ящика и увидим, что это совсем не так...
 

Well, it turns out pretty easy to apply. From the 1st example.

We set the number of states, and sequences of transitions (say, historical). I.e. probabilities of being in a given state. And then it counts the total probability for all states.

Or on MAshki to make a simple example for the beginning, but so far I still haven't learned how to do it, maybe@mytarmailS will explain.

//+------------------------------------------------------------------+
//|                                                          HMM.mq5 |
//|                        Copyright 2018, MetaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2018, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
#include <Math\Alglib\dataanalysis.mqh>
CMCPDState states;
CMCPDReport report;
CMatrixDouble track0, track1, results;

//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
//---
   track0.Resize(5, 2);
   track1.Resize(4,2);
   
   track0[0].Set(0, 1.0);
   track0[0].Set(1, 0.0);
   
   track0[1].Set(0, 0.95);
   track0[1].Set(1, 0.05);
   
   track0[2].Set(0, 0.92750);
   track0[2].Set(1, 0.07250);
   
   track0[3].Set(0, 0.91738);
   track0[3].Set(1, 0.08263);
   
   track0[4].Set(0, 0.91282);
   track0[4].Set(1, 0.08718);
   
   track1[0].Set(0, 0.8);
   track1[0].Set(1, 0.2);
   
   track1[1].Set(0, 0.86);
   track1[1].Set(1, 0.14);
   
   track1[2].Set(0, 0.887);
   track1[2].Set(1, 0.113);
   
   track1[3].Set(0, 0.89915);
   track1[3].Set(1, 0.10085);
   
   CMarkovCPD::MCPDCreate(2, states);
   CMarkovCPD::MCPDAddTrack(states, track0, 5);
   CMarkovCPD::MCPDAddTrack(states, track1, 4);
   CMarkovCPD::MCPDSolve(states);
   CMarkovCPD::MCPDResults(states, results, report);
   
   for(int i=0;i<results.Size();i++)
     {
      Print(results[i][0]);
      Print(results[i][1]);
     }
  }
//+------------------------------------------------------------------+
 
Market Regime Detection using Hidden Markov Models in QSTrader | QuantStart
Market Regime Detection using Hidden Markov Models in QSTrader | QuantStart
  • www.quantstart.com
In the previous article on Hidden Markov Models it was shown how their application to index returns data could be used as a mechanism for discovering latent "market regimes". The returns of the S&P500 were analysed using the R statistical programming environment. It was seen that periods of differing volatility were detected, using both...
 
Maxim Dmitrievsky:

Well, it turns out pretty easy to apply. From the 1st example.

We set the number of states, and sequences of transitions (say, historical). I.e. probabilities of being in a given state. And then it counts the total probability for all states.

Or on MAshki to make a simple example for the beginning, but so far I still do not know how to do it, maybe@mytarmailS will explain.

//+------------------------------------------------------------------+
//|                                                          HMM.mq5 |
//|                        Copyright 2018, MetaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2018, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
#include <Math\Alglib\dataanalysis.mqh>
CMCPDState states;
CMCPDReport report;
CMatrixDouble track0, track1, results;

//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
//---
   track0.Resize(5, 2);
   track1.Resize(4,2);
   
   track0[0].Set(0, 1.0);
   track0[0].Set(1, 0.0);
   
   track0[1].Set(0, 0.95);
   track0[1].Set(1, 0.05);
   
   track0[2].Set(0, 0.92750);
   track0[2].Set(1, 0.07250);
   
   track0[3].Set(0, 0.91738);
   track0[3].Set(1, 0.08263);
   
   track0[4].Set(0, 0.91282);
   track0[4].Set(1, 0.08718);
   
   track1[0].Set(0, 0.8);
   track1[0].Set(1, 0.2);
   
   track1[1].Set(0, 0.86);
   track1[1].Set(1, 0.14);
   
   track1[2].Set(0, 0.887);
   track1[2].Set(1, 0.113);
   
   track1[3].Set(0, 0.89915);
   track1[3].Set(1, 0.10085);
   
   CMarkovCPD::MCPDCreate(2, states);
   CMarkovCPD::MCPDAddTrack(states, track0, 5);
   CMarkovCPD::MCPDAddTrack(states, track1, 4);
   CMarkovCPD::MCPDSolve(states);
   CMarkovCPD::MCPDResults(states, results, report);
   
   for(int i=0;i<results.Size();i++)
     {
      Print(results[i][0]);
      Print(results[i][1]);
     }
  }
//+------------------------------------------------------------------+

In alglib, as I understood (probably incorrectly), you have to compile the tracks yourself by the required number of clusters. In those examples in Python, you ask for the right number of clusters, and it redistributes the data itself.

Although if the classification, with 2 classes, you can probably build chains like this: starting with 0 until it becomes 1; and starting with 1 until it becomes 0. Since we do not have intermediate 0.95, 0.8, etc.

 
elibrarius:

In alglib, as I understand it (probably wrong), you have to compile the tracks yourself by the required number of clusters. And in those examples in Python, you ask for the right number of clusters, and it redistributes the data itself.

Although if classification, with 2 classes, you could probably build chains like this: starting with 0 until it becomes 1; and starting with 1 until it becomes 0. Since we don't have intermediate 0.95, 0.8, etc.

I don't understand how that works at all. Then why not just use classification via NS

I don't understand how it outputs results in python, including new data. And in alglib how to get the predicted state on new data, and for each dimension separately. That's way too many bucats at a time.

and it looks like there's something wrong with the alglib, a different model
Reason: