I am very new to Dl4j and has setup the environment with Scala in IntelliJ Idea.
While following the quickstart Dl4j Tutorial, Idea is showing a bunch of red lines. Dl4j_Scala|486x500
I would appreciate any help provided regarding a fix or workaround for this.
It looks like your problem is in line 61. Instead of assigning the built config to your variable, you are assigning just the builder. All of the errors that follow are because of that.
Similar error is thrown on using accuracy(), precision(), etc.
Even if I remove stats() from the lines please let me know how to view different evaluation results.
There you run into a peculiarity with Scala, it fails to infer the return type of evaluate and thinks it is Nothing while it actually is Evaluation. You should be able to replace it with evaluate[Evaluation] and evaluateROC[ROC] and things should work fine then.
A heartful thanks for the helping hand and pulling me to the world of DL4J. Now I’ve been able to remove all build and runtime errors and succeeded to take the first step in learning DL4J. Looking forward to the learning.