maldil / JavaFyPy

adapting Java AST mining tools to Python
2 stars 1 forks source link

Make the Floor division #1

Open maldil opened 3 years ago

maldil commented 3 years ago
def _synth_regression_dataset(n_samples=100000, n_features=100,
                              dtype=np.float32):
    X, y = make_regression(n_samples=n_samples, n_features=n_features,
                           n_informative=n_features // 10, noise=50,
                           random_state=0)

    X, X_val, y, y_val = train_test_split(X, y, test_size=0.1, random_state=0)
    return X, X_val, y, y_val
InfixExpression.Operator.FLOORDIV