Module ImportFrom alias alias alias alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore TupleLoad Str ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad keyword Num keyword Num FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Raise Call NameLoad Str Assign NameStore AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeStore NameLoad attr Call NameLoad TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore AttributeStore NameLoad attr Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore CompareEq NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad NameLoad Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr keyword Num attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num Return BinOpDiv AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num If CompareNotEq NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return BinOpDiv Call NameLoad AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr keyword Num decorator_list decorator_list
N/A numpy unique zeros dot sum np_sum neupy.utils format_data neupy.core.properties BoundedProperty neupy.network.base BaseNetwork neupy.network.learning LazyLearning utils pdf_between_data N/A __all__ N/A PNN PNN N/A LazyLearning BaseNetwork N/A N/A  Probabilistic Neural Network for classification.

    Parameters
    ----------
    std : float
        standard deviation for PDF function, default to 0.1.
    {Verbose.verbose}

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

    Examples
    --------
    >>> import numpy as np
    >>>
    >>> from sklearn import datasets
    >>> from sklearn import metrics
    >>> from sklearn.cross_validation import train_test_split
    >>> from neupy import algorithms, environment
    >>>
    >>> environment.reproducible()
    >>>
    >>> dataset = datasets.load_digits()
    >>> x_train, x_test, y_train, y_test = train_test_split(
    ...     dataset.data, dataset.target, train_size=0.7
    ... )
    >>>
    >>> nw = algorithms.PNN(std=10, verbose=False)
    >>> nw.train(x_train, y_train)
    >>> result = nw.predict(x_test)
    >>> metrics.accuracy_score(y_test, result)
    0.98888888888888893
     N/A std N/A BoundedProperty default 0.1 minval 0 __init__ N/A N/A self N/A options N/A N/A N/A N/A N/A super PNN self __init__ options N/A N/A self classes None N/A train N/A N/A self input_train target_train copy N/A True N/A N/A input_train N/A format_data input_train copy copy N/A target_train N/A format_data target_train copy copy N/A N/A N/A LazyLearning train self input_train target_train N/A N/A N/A N/A target_train shape N/A 1 1 N/A N/A N/A ValueError Target value must be in 1 dimention N/A classes N/A self classes N/A unique target_train N/A number_of_classes N/A classes size N/A row_comb_matrix N/A self row_comb_matrix N/A zeros N/A number_of_classes N/A N/A input_train shape N/A 0 N/A class_ratios N/A self class_ratios N/A zeros number_of_classes N/A N/A i class_name N/A enumerate classes N/A N/A class_val_positions N/A target_train i N/A N/A row_comb_matrix N/A N/A i N/A N/A class_val_positions ravel 1 N/A N/A class_ratios N/A i N/A np_sum class_val_positions N/A predict_proba N/A N/A self input_data N/A N/A N/A raw_output N/A N/A self predict_raw input_data N/A total_output_sum N/A N/A N/A N/A raw_output sum axis 0 reshape N/A N/A N/A raw_output shape N/A 1 1 N/A N/A N/A raw_output T total_output_sum N/A predict_raw N/A N/A self input_data N/A N/A N/A input_data N/A format_data input_data N/A N/A N/A N/A super PNN self predict input_data N/A N/A N/A self classes None N/A N/A N/A ValueError Train network before predict data N/A input_data_size N/A N/A input_data shape N/A 1 N/A train_data_size N/A N/A N/A self input_train shape N/A 1 N/A N/A input_data_size train_data_size N/A N/A N/A ValueError N/A N/A Input data must contains {0} features, got {1} format train_data_size input_data_size N/A class_ratios N/A self class_ratios N/A pdf_outputs N/A pdf_between_data N/A self input_train input_data N/A self std N/A N/A N/A dot N/A self row_comb_matrix pdf_outputs N/A N/A class_ratios reshape N/A N/A class_ratios size 1 N/A predict N/A N/A self input_data N/A N/A N/A raw_output N/A N/A self predict_raw input_data N/A N/A N/A self classes N/A N/A N/A raw_output argmax axis 0 N/A N/A