Switching javascript neural network to java

Generally speaking, you shouldn’t try to convert code line-by-line. Instead, you should take a step back and think about what the program is doing in the first language, and then implement that in the target language. It’s a bit like translating literature: you don’t just go word-by-word. Instead, you take the overall feel of the entire thing and try to approximate that the best you can in the target language.

But for this question, can you be more specific about what you’re asking? Does your code compile? Does it do what you expected?

2 Likes