Skip to content

Type checking of input data #40

@TobyBoyne

Description

@TobyBoyne

Input data, X, is either a list object or an ndarray object. We should ensure that the handling of these objects is consistent and predictable. For example, the type hint below: encode expects a list, but we type hint this as an ndarray.

def fit(self, X: np.ndarray, y: np.ndarray) -> None:
"""
Performs the training of you tree model using training data and labels
"""
# encode categorical features
X = self._problem_config.encode(X)

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