def random_dense_design_matrix_for_regression(rng, num_examples, dim, reg_min, reg_max):
 X = rng.randn(num_examples, dim)
 Y = rng.randint(reg_min, reg_max, (num_examples, 1))
 return DenseDesignMatrix(X=X, y=Y)

def random_dense_design_matrix_for_regression ( rng , num_examples , dim , reg_min , reg_max ) : X = rng . randn ( num_examples , dim ) Y = rng . randint ( reg_min , reg_max , ( num_examples , 1 ) ) return DenseDesignMatrix ( X = X , y = Y )
creates a random dense design matrix for regression .