Machine learning in trading: theory, models, practice and algo-trading - page 414
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Why is it not known? The number of clusters to divide into - is set at startup as an input value: K - desired number of clusters, K>=1
Suppose I've split data into 4 groups, what should I do with them?
I meant that I don't know beforehand what class belongs to what in the sample... what to do with them afterwards with respect to trading I don't know, maybe to see which cases belong to sell signals and which to buy signals, what is more and so on...
Unfortunately, I haven't dealt with alglib. The ML packages that I got acquainted with all allowed me to change the layer's activation function.
But these are extreme methods.
I wanted to cram in and write a couple of my recurrent layers, but it's good that I came to my senses. =)
In principle, if you have enough knowledge, and if the library allows it, you can inherit the neuron class and write there your activation function.
But this is an extreme method.
Once I wanted to get into, and write a couple of my recurrent layers, and it is good that I came to my senses. =)
I have been working on the signals for a long time now, but I am still losing, I need to work better on the predictors and targets. But it is still losing, I need to work better on the predictors and targets.
I remember someone scolding me for having to orient my model every morning for further work with it. This is how my straight model worked today. Bad, you say, of course bad, I'll tell you... And now mirror it in your head and start trading from the third signal. How about now????? And you say that the orientation method is bullshit....
And no need to coddle Granny!!!! :-)))))
Well, since you're nastivate, I'll tell you one idea about the collection for processing data. It is really very difficult to train a model with high level of generalization on a large enough area, because the market is a living organism and blah, blah, blah. The longer the training period, the worse the model performs, but longer. Task: Make a long-running model. Split or method two, however for those who use a committee of two networks.
We have three states "Yes", "No" and "Don't know" when the nets show in different directions.
We train the network on the whole section, in our case 452 entries. The network learned this set at 55-60%, let's assume that the responses "Don't know" on the training sample were 50%, respectively 226 signals the network could not learn. Okay, now we build a new model ONLY on the "Don't know" states, that is, we try to build the model on such quasi states, which misled the first model. The result is about the same out of 226 only half will be recognized, the rest will get the "Don't Know" state, then build the model again. the result is 113, then 56, then 28, then 14. At 14 records are not known to any of the previous models Jprediction Optimizer will usually count up to 100% generalizability.
As a result, we have a "Pattern System" that recognizes the entire market in a three-month area.
Here's another way, besides "Context of the day" How you can break the market into subspaces and perform training by getting exactly "System of models" Here's an example....
To be honest, I have done a little different partitioning into subspaces, but the essence remains the same.
There was a general file of 288 lines, I divided it into three samples the number of records of the training sample Specified in the line Tootal patterns.
The last one:
And the last one.
Without conditionally each of them should gain, but note the total number of transactions in this area 54 pieces (the basic strategy). And here's what happened when they worked all together at once.