Skip to main content
. 2020 Dec 23;7(12):201293. doi: 10.1098/rsos.201293
from sklearn.model_selection import train_test_split
X = df ['fibre_diameter','pore_diameter', 'contact_angle','youngs_modulus']
Y = df ['nb_cells’]
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 0.2,
random_state = 0)