Skip to content

[doc][minor] VotingClassifier predict / predict_proba docstrings #12994

@agamemnonc

Description

@agamemnonc

Description

The X argument in the predict and predict_proba methods is described as "training vectors".

def predict(self, X):
""" Predict class labels for X.
Parameters
----------
X : {array-like, sparse matrix}, shape = [n_samples, n_features]
Training vectors, where n_samples is the number of samples and
n_features is the number of features.

@property
def predict_proba(self):
"""Compute probabilities of possible outcomes for samples in X.
Parameters
----------
X : {array-like, sparse matrix}, shape = [n_samples, n_features]
Training vectors, where n_samples is the number of samples and
n_features is the number of features.

Steps/Code to Reproduce

Look at the code above.

Expected Results

E.g. same as in

def predict(self, X):
"""Predict using the linear model
Parameters
----------
X : array_like or sparse matrix, shape (n_samples, n_features)
Samples.

Actual Results

Wrong X description.

Versions

n/a

TODO

Happy to submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions