<reponame>ImranRiazChohan/ml_pipeline_using_kubeflow<gh_stars>0
from sklearn import datasets
from sklearn.model_selection import train_test_split
import  numpy as np


def _preprocess_data():
    x,y=datasets.load_boston(return_X_y=True)
    x_train,x_test,y_train,y_test=train_test_split(x,y,test_size=0.33)
    np.save('x_train.npy', x_train)
    np.save('x_test.npy', x_test)
    np.save('y_train.npy', y_train)
    np.save('y_test.npy', y_test)


if __name__ == '__main__':
    print("Preprocessing data....")
    _preprocess_data()
from sklearn import datasets
from sklearn.model_selection import train_test_split
import  numpy as np


def _preprocess_data():
    x,y=datasets.load_boston(return_X_y=True)
    x_train,x_test,y_train,y_test=train_test_split(x,y,test_size=0.33)
    np.save('x_train.npy', x_train)
    np.save('x_test.npy', x_test)
    np.save('y_train.npy', y_train)
    np.save('y_test.npy', y_test)


if __name__ == '__main__':
    print("Preprocessing data....")
    _preprocess_data()