本文整理了Java中org.nd4j.linalg.factory.Nd4j.saveBinary()
方法的一些代码示例,展示了Nd4j.saveBinary()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Nd4j.saveBinary()
方法的具体详情如下:
包路径:org.nd4j.linalg.factory.Nd4j
类名称:Nd4j
方法名:saveBinary
[英]Save an ndarray to the given file
[中]将数据数组保存到给定文件
代码示例来源:origin: deeplearning4j/nd4j
/**
* Save the current mean and std
* @param mean the mean
* @param std the std
* @throws IOException
*/
public void save(File mean, File std) throws IOException {
Nd4j.saveBinary(this.mean, mean);
Nd4j.saveBinary(this.std, std);
}
代码示例来源:origin: deeplearning4j/nd4j
/**
* Save distribution statistics to the file system
*
* @param meanFile file to contain the means
* @param stdFile file to contain the standard deviations
*/
public void save(@NonNull File meanFile, @NonNull File stdFile) throws IOException {
Nd4j.saveBinary(getMean(), meanFile);
Nd4j.saveBinary(getStd(), stdFile);
}
代码示例来源:origin: deeplearning4j/nd4j
/**
* Save the current min and max
*
* @param files the statistics to save
* @throws IOException
* @deprecated use {@link NormalizerSerializer instead}
*/
public void save(File... files) throws IOException {
Nd4j.saveBinary(getMin(), files[0]);
Nd4j.saveBinary(getMax(), files[1]);
if (isFitLabel()) {
Nd4j.saveBinary(getLabelMin(), files[2]);
Nd4j.saveBinary(getLabelMax(), files[3]);
}
}
代码示例来源:origin: deeplearning4j/dl4j-examples
try {
Nd4j.saveBinary(params, f);
log.info("Saved parameters to file: {}", f.getAbsolutePath());
} catch (IOException e) {
代码示例来源:origin: deeplearning4j/dl4j-examples
wrapper.fit(trainData);
Nd4j.saveBinary(net.params(),new File("videomodel.bin"));
FileUtils.writeStringToFile(new File("videoconf.json"), conf.toJson());
System.out.println("Epoch " + i + " complete");
代码示例来源:origin: org.nd4j/nd4j-api
/**
* Save the current mean and std
* @param mean the mean
* @param std the std
* @throws IOException
*/
public void save(File mean, File std) throws IOException {
Nd4j.saveBinary(this.mean, mean);
Nd4j.saveBinary(this.std, std);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* Save distribution statistics to the file system
*
* @param meanFile file to contain the means
* @param stdFile file to contain the standard deviations
*/
public void save(@NonNull File meanFile, @NonNull File stdFile) throws IOException {
Nd4j.saveBinary(getMean(), meanFile);
Nd4j.saveBinary(getStd(), stdFile);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* Save the current min and max
*
* @param files the statistics to save
* @throws IOException
* @deprecated use {@link NormalizerSerializer instead}
*/
public void save(File... files) throws IOException {
Nd4j.saveBinary(getMin(), files[0]);
Nd4j.saveBinary(getMax(), files[1]);
if (isFitLabel()) {
Nd4j.saveBinary(getLabelMin(), files[2]);
Nd4j.saveBinary(getLabelMax(), files[3]);
}
}
内容来源于网络,如有侵权,请联系作者删除!