Discussion of article "Using Self-Organizing Feature Maps (Kohonen Maps) in MetaTrader 5" - page 2

 
sergeev:

attached. List of changes:

Alexei, thank you. Attached your version to the article.
 

heh-heh. While I was offline, I didn't see that there was new material.

I rewrote all the formulas for java and this is what I got:

the last picture had 640*640~410k nodes and took 510 seconds on a netbook. intel atom450 processor

thanks to the author of the article. I have been looking for clear information about self-organising maps for a long time.

I will further rewrite from µl5 to Java

 
progma137:

The last picture had 640*640~410k nodes and spent 510 seconds on netbook. intel atom450 processor

thanks to the author of the article. I have been looking for clear information about self-organising maps for a long time.

I will continue to rewrite from µl5 to Java.

Did you mean to say that the code executes much faster in Java? Please attach your sources for comparison, it's interesting to see.
 
Rosh:
Did you mean to say that code executes much faster in Java? Please attach your sources for comparison, it's interesting to see.

No. It's just that if you noticed, the work was done in Linux Ubuntu. I have neither time nor desire to search for WINE and port mt under it. But I enjoy creating programs under Java. Besides, this language is the most understandable to me.

The programs were run under eclipse, maybe it slowed down the processor a bit, so the programme took a bit longer to execute. I'll torture the code for a couple more weeks, and maybe I'll post the code for review. I've added my own features there. For example, I set in the function the number of nodes to be displayed and the aspect ratio of the picture where they will be displayed nodes, and the function returns the number of cells horizontally and vertically such that the cells become the most square. the method given in the article allows you to enter the size of the picture and the number of cells horizontally and vertically. i am a lazy man, four parameters I am not going to set, and insert only one parameter. the aspect ratio is taken based on the size of the application.

 

Excellent article! Thank you a lot!

 /tsaktuo 

 
On Windows 7 64 bit don't work.
Files:
Untitled1.jpg  246 kb
 

The reason of this error is User Access Control on Windows Vista, Windows 7.

Please change

aFromFileName=TerminalInfoString(TERMINAL_PATH)+"\\MQL5\\Files\\"+CheckExtension(aFromFileName);
aToFileName=TerminalInfoString(TERMINAL_PATH)+"\\MQL5\\Images\\"+CheckExtension(aToFileName);

to

aFromFileName=TerminalInfoString(TERMINAL_DATA_PATH)+"\\MQL5\\Files\\"+CheckExtension(aFromFileName);
aToFileName=TerminalInfoString(TERMINAL_DATA_PATH)+"\\MQL5\\Images\\"+CheckExtension(aToFileName);

in file "cIntBMP.mqh".

We will fix it in article. 

 
We will fix it in article.
Fixed.
 

Hi!

Thanks for this article.

Q: is it possible to do RPCL implemention also? (Xinyu Guo has some great publication...)

 

I notice the pattern is practically defined after awhile but the iteration is fixed at 10000 so it still continues to run until 10000.

Is it possible for the algorithm to detect and stop the iteration when the pattern is more or less defined?