def test_minmax_scale(clf_dataset): # noqa: F811 X_np, X = clf_dataset t_X = cu_minmax_scale(X) assert type(t_X) == type(X) sk_t_X = sk_minmax_scale(X_np) assert_allclose(t_X, sk_t_X)
def test_minmax_scale(failure_logger, clf_dataset, # noqa: F811 axis, feature_range): X_np, X = clf_dataset t_X = cu_minmax_scale(X, feature_range=feature_range, axis=axis) assert type(t_X) == type(X) sk_t_X = sk_minmax_scale(X_np, feature_range=feature_range, axis=axis) assert_allclose(t_X, sk_t_X)