Module Import alias Import alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias Assign NameStore TupleLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults vararg body Assign NameStore ListLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword BinOpAdd ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad keyword Num keyword Num FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list
N/A N/A theano N/A theano.typed_list N/A theano.tensor T neupy.core.properties BoundedProperty neupy.utils asfloat neupy.algorithms.gd NoStepSelection neupy.algorithms.utils parameters2vector count_parameters iter_parameters setup_parameter_updates base GradientDescent N/A __all__ N/A Hessian find_hessian_and_gradient N/A N/A error_function parameters N/A N/A N/A  Find Hessian and gradient for the Neural Network cost function.

    Parameters
    ----------
    function : Theano function
    parameters : list
        List of all Neural Network parameters.

    Returns
    -------
    Theano function
     N/A n_parameters N/A N/A T sum N/A N/A parameter size N/A parameter parameters N/A gradients N/A N/A T grad error_function wrt parameters N/A full_gradient N/A N/A T concatenate N/A N/A N/A grad flatten N/A grad gradients find_hessian N/A N/A i full_gradient N/A parameters N/A N/A second_derivatives N/A N/A g N/A full_gradient N/A i N/A parameter parameters N/A N/A second_derivative N/A N/A T grad g wrt parameter N/A N/A N/A second_derivatives append N/A N/A second_derivative flatten N/A N/A N/A T concatenate second_derivatives N/A N/A N/A hessian _ N/A N/A theano scan find_hessian sequences N/A N/A T arange n_parameters non_sequences N/A N/A full_gradient parameters N/A hessian_matrix N/A N/A hessian reshape N/A n_parameters n_parameters N/A N/A hessian_matrix full_gradient N/A Hessian N/A NoStepSelection GradientDescent N/A N/A  Hessian gradient decent optimization. This GD algorithm
    variation using second derivative information helps choose better
    gradient direction and as a consequence better weight update
    parameter after eqch epoch.

    Parameters
    ----------
    penalty_const : float
        Inverse hessian could be singular matrix. For this reason
        algorithm include penalty that add to hessian matrix identity
        multiplied by defined constant. Defaults to ``1``.
    {GradientDescent.addons}
    {ConstructableNetwork.connection}
    {ConstructableNetwork.error}
    {BaseNetwork.show_epoch}
    {BaseNetwork.shuffle_data}
    {BaseNetwork.epoch_end_signal}
    {BaseNetwork.train_end_signal}
    {Verbose.verbose}

    Methods
    -------
    {BaseSkeleton.predict}
    {SupervisedLearning.train}
    {BaseSkeleton.fit}
    {BaseNetwork.plot_errors}

    See Also
    --------
    :network:`HessianDiagonal` : Hessian diagonal approximation.
     N/A penalty_const N/A BoundedProperty default 1 minval 0 init_train_updates N/A N/A self N/A N/A N/A n_parameters N/A count_parameters self N/A parameters N/A list N/A iter_parameters self N/A param_vector N/A parameters2vector self N/A penalty_const N/A asfloat N/A self penalty_const N/A N/A hessian_matrix full_gradient N/A find_hessian_and_gradient N/A N/A self variables error_func parameters N/A hessian_inverse N/A N/A N/A T nlinalg matrix_inverse N/A hessian_matrix N/A penalty_const N/A N/A T eye n_parameters N/A updated_parameters N/A param_vector N/A N/A hessian_inverse dot full_gradient N/A updates N/A setup_parameter_updates parameters updated_parameters N/A updates N/A N/A