DeepLearning4J 环境搭建【转】

深度学习Deeplearning4j eclipse 开发环境搭建

eclipse设置deeplearning4j开发环境:手动添加jar包

https://deeplearning4j.org/cn/eclipse

eclipse maven设置deeplearning4j开发环境

https://depiesml.wordpress.com/2015/08/26/dl4j-gettingstarted/

准备:首先要配置eclipse  maven  以及maven插件

1.      创建maven工程:

点击eclipse File->new->other 弹出对话框输入maven

 

点击 Maven Preject  next  选择maven-archtype-quickstart1.1 选择项输入grouptid : com.test  ArtifactID :dl4j  点击finish

2.      修改pom文件

将下边pom内容复制到原来pom中 :

         https://github.com/deeplearning4j/dl4j-examples/blob/master/pom.xml

 pom中添加依赖:

[plain] view plain copy

  1. <dependencyManagement>  

  2.         <dependencies>  

  3.             <dependency>  

  4.                 <groupId>org.nd4j</groupId>  

  5.                 <artifactId>nd4j-native-platform</artifactId>  

  6.                 <version>${nd4j.version}</version>  

  7.             </dependency>  

  8.             <dependency>  

  9.                 <groupId>org.nd4j</groupId>  

  10.                 <artifactId>nd4j-cuda-7.5-platform</artifactId>  

  11.                 <version>${nd4j.version}</version>  

  12.             </dependency>  

  13.             <dependency>  

  14.                 <groupId>org.nd4j</groupId>  

  15.                 <artifactId>nd4j-cuda-8.0-platform</artifactId>  

  16.                 <version>${nd4j.version}</version>  

  17.             </dependency>  

  18.         </dependencies>  

  19.     </dependencyManagement>  

  20.     <dependencies>  

  21.         <!-- ND4J backend. You need one in every DL4J project. Normally define   

  22.             artifactId as either "nd4j-native-platform" or "nd4j-cuda-7.5-platform" -->  

  23.         <dependency>  

  24.             <groupId>org.nd4j</groupId>  

  25.             <artifactId>${nd4j.backend}</artifactId>  

  26.         </dependency>  

  27.         <!-- Core DL4J functionality -->  

  28.         <dependency>  

  29.             <groupId>org.deeplearning4j</groupId>  

  30.             <artifactId>deeplearning4j-core</artifactId>  

  31.             <version>${dl4j.version}</version>  

  32.         </dependency>  

  33.         <dependency>  

  34.             <groupId>org.deeplearning4j</groupId>  

  35.             <artifactId>deeplearning4j-nlp</artifactId>  

  36.             <version>${dl4j.version}</version>  

  37.         </dependency>  

  38.         <!-- deeplearning4j-ui is used for HistogramIterationListener + visualization:   

  39.             see http://deeplearning4j.org/visualization -->  

  40.         <dependency>  

  41.             <groupId>org.deeplearning4j</groupId>  

  42.             <artifactId>deeplearning4j-ui_${scala.binary.version}</artifactId>  

  43.             <version>${dl4j.version}</version>  

  44.         </dependency>  

  45.         <!-- Force guava versions for using UI/HistogramIterationListener -->  

  46.         <dependency>  

  47.             <groupId>com.google.guava</groupId>  

  48.             <artifactId>guava</artifactId>  

  49.             <version>${guava.version}</version>  

  50.         </dependency>  

  51.         <!-- datavec-data-codec: used only in video example for loading video data -->  

  52.         <dependency>  

  53.             <artifactId>datavec-data-codec</artifactId>  

  54.             <groupId>org.datavec</groupId>  

  55.             <version>${datavec.version}</version>  

  56.         </dependency>  

  57.         <!-- Used in the feedforward/classification/MLP* and feedforward/regression/RegressionMathFunctions   

  58.             example -->  

  59.         <dependency>  

  60.             <groupId>jfree</groupId>  

  61.             <artifactId>jfreechart</artifactId>  

  62.             <version>${jfreechart.version}</version>  

  63.         </dependency>  

  64.         <dependency>  

  65.             <groupId>org.jfree</groupId>  

  66.             <artifactId>jcommon</artifactId>  

  67.             <version>${jcommon.version}</version>  

  68.         </dependency>  

  69.         <!-- Used for downloading data in some of the examples -->  

  70.         <dependency>  

  71.             <groupId>org.apache.httpcomponents</groupId>  

  72.             <artifactId>httpclient</artifactId>  

  73.             <version>4.3.5</version>  

  74.         </dependency>  

  75.     </dependencies>  

3.      更新

右击项目名->Maven ->Update Project

点赞
收藏

评论区

加载中...

相关推荐

MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1

文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s

Oracle 分组与拼接字符串同时使用

SELECTT.,ROWNUMIDFROM(SELECTT.EMPLID,T.NAME,T.BU,T.REALDEPART,T.FORMATDATE,SUM(T.S0)S0,MAX(UPDATETIME)CREATETIME,LISTAGG(TOCHAR(

MySQL部分从库上面因为大量的临时表tmp_table造成慢查询

背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_

手写Java HashMap源码

HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22

PPDB:今晚老齐直播

【今晚老齐直播】今晚(本周三晚)20:0021:00小白开始“用”飞桨(https://www.oschina.net/action/visit/ad?id1185)由PPDE(飞桨(https://www.oschina.net/action/visit/ad?id1185)开发者专家计划)成员老齐,为深度学习小白指点迷津。

2020年前端实用代码段,为你的工作保驾护航

有空的时候,自己总结了几个代码段,在开发中也经常使用,谢谢。1、使用解构获取json数据let jsonData  id: 1,status: "OK",data: 'a', 'b';let  id, status, data: number   jsonData;console.log(id, status, number )