Add shuffling

This commit is contained in:
yagudin 2021-06-01 17:29:57 +03:00
parent 1573598c53
commit 192c2c6037

View File

@ -120,7 +120,9 @@ if __name__ == "__main__":
y_true, y_pred = np.array(y_true), np.array(y_pred) y_true, y_pred = np.array(y_true), np.array(y_pred)
st.write(f"Which gives us {len(y_pred)} datapoints to work with.") order = np.arange(len(y_true))
np.random.default_rng(0).shuffle(order)
y_true, y_pred = y_true[order], y_pred[order]
# --- # ---