Skip to content

chaluemwut/non-newsworthy-remove

Repository files navigation

    import numpy as np
    from sklearn.cross_validation import train_test_split
    X, y,indices = (0.1*np.arange(10)).reshape((5, 2)),range(10,15),range(5)
    print X
    print y
    X_train, X_test, y_train, y_test,indices_train,indices_test = train_test_split(X, y,indices, test_size=0.33, random_state=42)
    print X_train
    print X_test
    print indices_train,indices_test

About

No description, website, or topics provided.

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published