Module Import alias identifier ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body TryExcept body Return SubscriptLoad NameLoad Index AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad NameLoad Str body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign TupleStore NameStore NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore ListComp Call NameLoad SubscriptLoad NameLoad Slice SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A numpy np sklearn.base BaseEstimator ClassifierMixin sklearn.metrics accuracy_score sklearn.externals six _decode DECODERS _utils atleast2d_or_csr safe_sparse_dot validate_lengths BaseSequenceClassifier N/A BaseEstimator ClassifierMixin N/A _get_decoder N/A N/A self N/A N/A N/A N/A N/A N/A DECODERS N/A N/A self decode N/A N/A N/A KeyError N/A N/A N/A ValueError N/A N/A Unknown decoder {0!r} format N/A self decode N/A predict N/A N/A self X lengths N/A None N/A N/A Predict labels/tags for samples X.

        Parameters
        ----------
        X : {array-like, sparse matrix}, shape (n_samples, n_features)
            Feature matrix.

        lengths : array-like of integer, shape (n_sequences,), optional
            Lengths of sequences in X. If not given, X is assumed to be a
            single sequence of length n_samples.

        Returns
        -------
        y : array, shape (n_samples,)
            Labels per sample in X.
         N/A X N/A atleast2d_or_csr X N/A scores N/A safe_sparse_dot X N/A N/A self coef_ T N/A N/A hasattr self coef_trans_ N/A N/A n_classes N/A len N/A self classes_ N/A coef_t N/A N/A N/A N/A self coef_trans_ T reshape -1 N/A N/A N/A self coef_trans_ shape N/A -1 N/A trans_scores N/A safe_sparse_dot X N/A coef_t T N/A trans_scores N/A N/A trans_scores reshape -1 n_classes n_classes N/A N/A trans_scores None N/A decode N/A N/A self _get_decoder N/A N/A lengths None N/A N/A y N/A decode scores trans_scores N/A self intercept_trans_ N/A self intercept_init_ N/A self intercept_final_ N/A N/A N/A start end N/A validate_lengths N/A N/A X shape N/A 0 lengths N/A y N/A N/A decode N/A scores N/A N/A start N/A i N/A end N/A i trans_scores N/A self intercept_trans_ N/A self intercept_init_ N/A self intercept_final_ N/A i N/A N/A N/A six moves xrange N/A len lengths N/A y N/A N/A np hstack y N/A N/A N/A self classes_ N/A y N/A score N/A N/A self X y lengths N/A None N/A N/A Returns the mean accuracy on the given test data and labels.

        Parameters
        ----------
        X : array-like, shape = (n_samples, n_features)
            Test samples.

        y : array-like, shape = (n_samples,)
            True labels for X.

        lengths : array-like of integer, shape (n_sequences,), optional
            Lengths of sequences in X. If not given, X is assumed to be a
            single sequence of length n_samples.

        Returns
        -------
        score : float
            Mean accuracy of self.predict(X, lengths) wrt. y.
         N/A N/A accuracy_score y N/A N/A self predict X lengths N/A N/A