V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
luolianhai
V2EX  ›  问与答

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

  •  
  •   luolianhai · Jul 15, 2015 · 2657 views
    This topic created in 3939 days ago, the information mentioned may be changed or developed.

    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 replies    2015-07-16 09:32:30 +08:00
    kaneg
        1
    kaneg  
       Jul 16, 2015 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
       Jul 16, 2015
    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.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   995 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 19:24 · PVG 03:24 · LAX 12:24 · JFK 15:24
    ♥ Do have faith in what you're doing.