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 = ...
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_datafunction was used improperly.Should be:
X_train, X_test, y_train, y_test = ...