org.nd4j.linalg.factory.Nd4j cannot be applied to given types

2015-07-15 21:18:11 +08:00
 luolianhai

i am trying to compile the project deeplearning4j but the following errors occur:

[ERROR] /home/luolianhai/deeplearning4j/deeplearning4j-core/src/test/java/org/deeplearning4j/plot/TsneTest.java:[44,29] method readTxt in class org.nd4j.linalg.factory.Nd4j cannot be applied to given types;
required: java.lang.String
found: java.lang.String,java.lang.String
reason: actual and formal argument lists differ in length

[ERROR] /home/luolianhai/deeplearning4j/deeplearning4j-core/src/test/java/org/deeplearning4j/plot/BarnesHutTsneTest.java:[49,29] method readTxt in class org.nd4j.linalg.factory.Nd4j cannot be applied to given types;
required: java.lang.String
found: java.lang.String,java.lang.String
reason: actual and formal argument lists differ in length
however, the APIDocs display that method readTxt has been overwrited an following:

static INDArray readTxt(String filePath)

Read line via input streams

static INDArray readTxt(String filePath, String split)

Read line via input streams

and this is the link for the APIDocs:http://nd4j.org/apidocs/org/nd4j/linalg/factory/Nd4j.html
i have no idea and the problem confuses me for some days
wish someone could help me

2031 次点击
所在节点    问与答
2 条回复
kaneg
2015-07-16 00:17:48 +08:00
Maybe the api doc is not consistent with actual class. You need check whether there is a override readTxt method in class
luolianhai
2015-07-16 09:32:30 +08:00
Thanks. It looks like the documentation is out of date as there is no longer a readTxt(String, String) method. I have check the class and there is no longer an override readTxt method.

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/205943

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX