comparison nnet_ops.py @ 381:e4473d9697d7

Added xent loss
author Joseph Turian <turian@gmail.com>
date Tue, 08 Jul 2008 01:57:33 -0400
parents f6a7eb1b7970
children b4efd192d880
comparison
equal deleted inserted replaced
373:42cc94cf6c12 381:e4473d9697d7
377 """ % dict(locals(), **sub) 377 """ % dict(locals(), **sub)
378 378
379 def crossentropy_softmax_1hot(x, y_idx, **kwargs): 379 def crossentropy_softmax_1hot(x, y_idx, **kwargs):
380 b = tensor.zeros_like(x[0,:]) 380 b = tensor.zeros_like(x[0,:])
381 return crossentropy_softmax_1hot_with_bias(x, b, y_idx, **kwargs) 381 return crossentropy_softmax_1hot_with_bias(x, b, y_idx, **kwargs)
382