Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Num Assign TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareGtE AttributeLoad NameLoad attr Num CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Num CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num For NameStore Call NameLoad Num Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num Return TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad CompareEq NameLoad NameLoad attr keyword Str decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call Call NameLoad NameLoad NameLoad decorator_list
N/A N/A numpy chainer cuda chainer function chainer.utils type_check Accuracy N/A N/A function Function N/A check_type_forward N/A N/A self in_types N/A N/A N/A N/A N/A type_check expect N/A N/A N/A in_types size 2 N/A N/A x_type t_type in_types N/A N/A N/A type_check expect N/A N/A x_type dtype N/A numpy float32 N/A N/A x_type ndim 2 N/A N/A t_type dtype N/A numpy int32 N/A N/A t_type ndim 1 N/A N/A N/A t_type shape N/A 0 N/A N/A x_type shape N/A 0 N/A i N/A range 2 N/A N/A N/A x_type ndim eval N/A N/A N/A N/A type_check expect N/A N/A N/A x_type shape N/A i 1 N/A forward N/A N/A self inputs N/A N/A N/A xp N/A N/A cuda get_array_module inputs N/A N/A y t inputs N/A y N/A N/A y reshape N/A len y -1 N/A pred N/A N/A y argmax axis 1 N/A N/A N/A N/A xp asarray N/A N/A N/A pred t mean dtype f N/A N/A accuracy N/A N/A y t N/A N/A N/A Computes muticlass classification accuracy of the minibatch.

    Args:
        y (Variable): Variable holding a matrix whose (i, j)-th element
            indicates the score of the class j at the i-th example.
        t (Variable): Variable holding an int32 vector of ground truth labels.

    Returns:
        Variable: A variable holding a scalar array of the accuracy.

    .. note:: This function is non-differentiable.

     N/A N/A N/A Accuracy y t N/A