Add shuffling
This commit is contained in:
parent
1573598c53
commit
192c2c6037
|
@ -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]
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user