Skip to content

Example code Error #11

@ArthurQianyiZhao

Description

@ArthurQianyiZhao

In the Example code:

To generate sample data
X_train, y_train, X_test, y_test =
generate_data(n_train=1000,
n_test=100,
n_features=3,
contamination=0.5,
random_state=42)

Here, the generate_data function was used improperly.
Should be:
X_train, X_test, y_train, y_test = ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions