のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

NameError: name 'cross_entropy_with_softmax' is not defined

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-16-bb8c1973018f> in <module>()
      1 label = input_variable((num_output_classes), np.float32)
----> 2 loss = cross_entropy_with_softmax(z, label)

NameError: name 'cross_entropy_with_softmax' is not defined

cntk.を前につけた。
cntk.cross_entropy_with_softmax(z, label)

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-18-6f5cea00d80d> in <module>()
----> 1 eval_error = classification_error(z, label)

NameError: name 'classification_error' is not defined

cntk.