很抱歉,我对使用Maven非常陌生,尝试按照dl4j网站上的说明,通过以下命令为所提供的示例安装dl4j:
mvn clean install -DskipTests -Dmaven.javadoc.skip=true
这有点继续,但随后以错误终止:
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project dl4j-examples: Compilation failure: Compilation failure:
[ERROR] /Users/nick/Downloads/dl4j-examples/dl4j-examples/src/main/java/org/deeplearning4j/examples/unsupervised/variational/plot/PlotUtil.java:[158,13] cannot find symbol
[ERROR] symbol: method setDomainPannable(boolean)
[ERROR] location: variable plot of type org.jfree.chart.plot.XYPlot
[ERROR] /Users/nick/Downloads/dl4j-examples/dl4j-examples/src/main/java/org/deeplearning4j/examples/unsupervised/variational/plot/PlotUtil.java:[159,13] cannot find symbol
[ERROR] symbol: method setRangePannable(boolean)
[ERROR] location: variable plot of type org.jfree.chart.plot.XYPlot
[ERROR] -> [Help 1]
现在我在一个可通过classpath搜索的目录中有jfreechart库,那么,有人可以帮我解决上述问题吗?
在2016年macbook pro上运行mac high sierra。
答案 0 :(得分:0)
无需构建/安装dl4j即可运行示例。 直接来自dl4j quickstart:
git clone https://github.com/deeplearning4j/dl4j-examples.git
cd dl4j-examples/
mvn clean install