ValueError: Found array with 0 sample(s) (shape=(0, 13)) while a minimum of 1 is required
It looks like there are no rows in your X_train array or y_train array. Check the shape and contents of X_train using
np.shape(X_train) if X_train is an array or X_train.shape if X_train is a pandas dataframe.
Also, if you are using a pandas dataframe for X_train, you should change tmp_model = lr_model(X_train[0:12], y_train[0:12] ) to tmp_model = lr_model(X_train.iloc[0:12,:], y_train[0:12] )  as this way you are correctly accessing the rows and columns of the pandas dataframe.