NetEvaluationMode
✖
NetEvaluationMode
詳細

- net[input,NetEvaluationMode->spec]は,ネットが入力に適用された場合に,ネット内のDropoutLayerのような層がどのように動作すべきかを指定する.
- NetEvaluationMode->"Test"と設定すると,DropoutLayerのような層の通常の動作が使われる.
- NetEvaluationMode->"Train"と設定すると,DropoutLayerのような層の訓練特有の動作が使われる.
- LongShortTermMemoryLayerのような回帰層にもまた,"Dropout"オプションを介した訓練特有の動作がある.
- NetTrain[net,…]でネットを訓練すると,訓練特有の動作が自動的に使われる.
例題
すべて開くすべて閉じる例 (2)基本的な使用例
通常,DropoutLayerのような訓練層は恒等式のように振る舞う.ドロップアウト層を作り,入力に適用する:

https://wolfram.com/xid/0c0rhshlwdek4-m8xhmo


https://wolfram.com/xid/0c0rhshlwdek4-un467n

ドロップアウト層をその訓練動作とともに適用する.ベクトル成分のほぼ半分が0に設定され,残りの半分が2倍される:

https://wolfram.com/xid/0c0rhshlwdek4-usw7a9

サイズ128×128の画像を取ってサイズ64×64の切り取られた画像を返すImageAugmentationLayerを作る:

https://wolfram.com/xid/0c0rhshlwdek4-cz9q25


https://wolfram.com/xid/0c0rhshlwdek4-w8pza0

訓練動作を使うように指定してこの層を画像に適用する.ランダムな切取りが行われ,画像は与えられた確率を反映する:

https://wolfram.com/xid/0c0rhshlwdek4-djcxfj

考えられる問題 (1)よく起る問題と予期しない動作
現在のところ,NetEvaluationMode->"Train"によって呼び起こされる任意のランダム性はSeedRandomおよびBlockRandomの影響は受けない:

https://wolfram.com/xid/0c0rhshlwdek4-c9zqq8


https://wolfram.com/xid/0c0rhshlwdek4-oouzin


https://wolfram.com/xid/0c0rhshlwdek4-wzmtxu

Wolfram Research (2017), NetEvaluationMode, Wolfram言語関数, https://reference.wolfram.com/language/ref/NetEvaluationMode.html.
テキスト
Wolfram Research (2017), NetEvaluationMode, Wolfram言語関数, https://reference.wolfram.com/language/ref/NetEvaluationMode.html.
Wolfram Research (2017), NetEvaluationMode, Wolfram言語関数, https://reference.wolfram.com/language/ref/NetEvaluationMode.html.
CMS
Wolfram Language. 2017. "NetEvaluationMode." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NetEvaluationMode.html.
Wolfram Language. 2017. "NetEvaluationMode." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NetEvaluationMode.html.
APA
Wolfram Language. (2017). NetEvaluationMode. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NetEvaluationMode.html
Wolfram Language. (2017). NetEvaluationMode. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NetEvaluationMode.html
BibTeX
@misc{reference.wolfram_2025_netevaluationmode, author="Wolfram Research", title="{NetEvaluationMode}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/NetEvaluationMode.html}", note=[Accessed: 06-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_netevaluationmode, organization={Wolfram Research}, title={NetEvaluationMode}, year={2017}, url={https://reference.wolfram.com/language/ref/NetEvaluationMode.html}, note=[Accessed: 06-April-2025
]}