V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
luolianhai
V2EX  ›  问与答

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

  •  
  •   luolianhai · 2015-07-15 21:18:11 +08:00 · 2018 次点击
    这是一个创建于 3426 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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

    2 条回复    2015-07-16 09:32:30 +08:00
    kaneg
        1
    kaneg  
       2015-07-16 00:17:48 +08:00 via iPhone
    Maybe the api doc is not consistent with actual class. You need check whether there is a override readTxt method in class
    luolianhai
        2
    luolianhai  
    OP
       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.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2495 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 05:55 · PVG 13:55 · LAX 21:55 · JFK 00:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.