org.deeplearning4j.nn.api.Layer.fit()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(99)

本文整理了Java中org.deeplearning4j.nn.api.Layer.fit()方法的一些代码示例,展示了Layer.fit()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Layer.fit()方法的具体详情如下:
包路径:org.deeplearning4j.nn.api.Layer
类名称:Layer
方法名:fit

Layer.fit介绍

暂无

代码示例

代码示例来源:origin: org.deeplearning4j/deeplearning4j-scaleout-akka

@Override
public void perform(Job job) {
  Serializable work = job.getWork();
  if(work instanceof DataSet) {
    DataSet data = (DataSet) work;
    neuralNetwork.fit(data.getFeatureMatrix());
  }
  else if(work instanceof INDArray) {
    neuralNetwork.fit((INDArray) work);
  }
  job.setResult(neuralNetwork.params());
}

代码示例来源:origin: org.deeplearning4j/deeplearning4j-cli-api

DataSetIterator iter = new RecordReaderDataSetIterator( reader , 1);
while(iter.hasNext()) {
  l.fit(iter.next().getFeatureMatrix());

代码示例来源:origin: org.deeplearning4j/cdh4

while(recordParser.hasMoreRecords()) {
  DataSet params = (DataSet) recordParser.nextRecord();
  neuralNetwork.fit(params.getFeatureMatrix());

代码示例来源:origin: org.deeplearning4j/deeplearning4j-nn

layer.fit(gv.getInputs()[0]);
layer.conf().setPretrain(false);

代码示例来源:origin: org.deeplearning4j/deeplearning4j-nn

layer.fit(layerInput);

代码示例来源:origin: org.deeplearning4j/deeplearning4j-nn

layer.fit(layerInput);
layer.conf().setPretrain(false);

相关文章