LoginSignup
1
0

More than 5 years have passed since last update.

convnet.jsの作法 その4

Last updated at Posted at 2018-04-14

概要

convnet.jsの作法を調べる。

convnetjs.Net()には、toJSON()とfromJSON()がある。

ネットを保存できる。tensorflow.js,deeplearn.js,keras.jsには、無い。
しかも、1ファイルで、モデルとweightを扱える。
convnet.jsのアドバンテージ。

サンプルコード

保存

var json = net.toJSON();
var str = JSON.stringify(json);

読み込み

var json = JSON.parse(str);
var net = new convnetjs.Net();
net.fromJSON(json);

成果物

ネットをパースして、表示。

以上。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0