org.nd4j.linalg.factory.Nd4j.writeTxt()方法的使用及代码示例

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

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

Nd4j.writeTxt介绍

[英]Write NDArray to a text file
[中]将数据数组写入文本文件

代码示例

代码示例来源:origin: deeplearning4j/nd4j

  1. /**
  2. * Write NDArray to a text file
  3. *
  4. * @param write
  5. * @param filePath
  6. * @param split
  7. * @deprecated custom col and higher dimension separators are no longer supported; uses ","
  8. * Use {@link #writeTxt(INDArray, String)}
  9. */
  10. public static void writeTxt(INDArray write, String filePath, String split) {
  11. writeTxt(write,filePath);
  12. }

代码示例来源:origin: deeplearning4j/nd4j

  1. /**
  2. * Write NDArray to a text file
  3. *
  4. * @param write
  5. * @param filePath
  6. * @param precision
  7. * @deprecated Precision is no longer used.
  8. * Defaults to scientific notation with 18 digits after the decimal
  9. * Use {@link #writeTxt(INDArray, String)}
  10. */
  11. public static void writeTxt(INDArray write, String filePath, int precision) {
  12. writeTxt(write, filePath);
  13. }

代码示例来源:origin: deeplearning4j/nd4j

  1. /**
  2. * Write NDArray to a text file
  3. *
  4. * @param filePath
  5. * @param split the split separator, defaults to ","
  6. * @deprecated custom col separators are no longer supported; uses ","
  7. * @param precision digits after the decimal point
  8. * @deprecated Precision is no longer used.
  9. * Defaults to scientific notation with 18 digits after the decimal
  10. * Use {@link #writeTxt(INDArray, String)}
  11. */
  12. public static void writeTxt(INDArray write, String filePath, String split, int precision) {
  13. writeTxt(write,filePath);
  14. }

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

  1. /**
  2. *
  3. * @param write
  4. * @param filePath
  5. */
  6. public static void writeTxt(INDArray write, String filePath) {
  7. writeTxt(write, filePath, ", ", 2);
  8. }

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

  1. /**
  2. *
  3. * @param write
  4. * @param filePath
  5. * @param split
  6. */
  7. public static void writeTxt(INDArray write, String filePath, String split) {
  8. writeTxt(write, filePath, " " + split + "", 2);
  9. }

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

  1. /**
  2. *
  3. * @param write
  4. * @param filePath
  5. * @param precision
  6. */
  7. public static void writeTxt(INDArray write, String filePath, int precision) {
  8. writeTxt(write, filePath, ", ", precision);
  9. }

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

  1. Nd4j.writeTxt(network.params(),outputDirectory + File.separator + "outputmodel.txt",",");
  2. Nd4j.writeTxt(l.params(),outputDirectory,",");

相关文章