この文書の現在のバージョンと選択したバージョンの差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
4_モデルと最適化アルゴリズムの設定 [2017/11/07] adash333 [L.Classifier()] |
4_モデルと最適化アルゴリズムの設定 [2018/10/07] (現在) |
||
---|---|---|---|
ライン 58: | ライン 58: | ||
次は、[[(5)学習と結果の出力(Chainer)]]に進んでください。 | 次は、[[(5)学習と結果の出力(Chainer)]]に進んでください。 | ||
+ | |||
+ | ===== L.Classifier() ===== | ||
+ | |||
+ | <code> | ||
+ | import chainer.links as L | ||
+ | |||
+ | # Network definition | ||
+ | class MLP(chainer.Chain): | ||
+ | # MLPモデルを定義 | ||
+ | |||
+ | model = L.Classifier(MLP(1000, 10)) | ||
+ | </code> | ||
+ | |||
+ | A simple classifier model. | ||
+ | |||
+ | This is an example of chain that wraps another chain. It computes the loss and accuracy based on a given input/label pair. | ||
+ | だそう。 | ||
+ | |||
+ | https://docs.chainer.org/en/stable/reference/generated/chainer.links.Classifier.html | ||
+ | |||
===== 参考文献 ===== | ===== 参考文献 ===== |