Machine learning in trading: theory, models, practice and algo-trading - page 23
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
How do I make the code not to make extra columns? For example, 3 columns in the function produces 9 combinations, although in fact it is enough to have three, like in my example above
there is no sense to do A/B and then B/A
Ahaha... Thanks for that too! )
seriously. no one can learn how to program except you.
ok, i'll give you a hint this time:
if(j > i) { ....... }
that's it, guys )
seriously. no one can learn how to program except you.
ok, i'll give you a hint this time:
if(j > i) { ....... }
that's all, guys )
Your code died at 30 iterations))) not enough memory, what else can you do? spent so much time writing all the features left to mix in the model check, and then this crap
I've never heard that one before! "your code is dead". It's R that died, but the code is alive and well and on the data I cited it works for less than a second.
Everything works for me. As a variant, you really don't have enough memory and very big data arrays.
In general, this algorithm uses the basic functions and features of the language. It's hard to make it simpler and more compact if your R already crashes on some 30th iteration. The lack of memory means that in order to deal with leerning machines you will have to splurge a bit on a couple of memory modules. It's a harsh reality )
I've never heard that one before! "your code is dead". It's R that died, while the code is alive and well and works for less than a second on the data I cited.
Yes I agree, that's not what I said... Then I made it a little easier, found the appropriate combinations package written in cp and tried with it, it's the same story... My computer is really useless and I got 2500++ combinations per 100 000 lines, R is just dying... I need to buy more memory for sure
Hi all. I'm into machine learning too. Tried so far to apply naive Bayesian classifier and reference vector method.
Yes I agree, I didn't say it that way... My first time I tried it I found my combinations package written in cp and tried it and it was the same story... My computer is really useless and the combinations turned out to be 2500++ for 100 000 lines, R is just dying... I need to buy more memory unequivocally
It's about the physical limitations of your machine, unambiguously.
And in general, questions about the code should first try to solve themselves. Open google, type, for example, data frame columns in cycle results list stackoverflow.
And the site mentioned above has answers to 99% of questions.