Skip to content

Commit 5eeb715

Browse files
committed
refactor to main
2 parents 2fd4af8 + af5d8cc commit 5eeb715

34 files changed

+107042
-2129
lines changed

examples/ISEFlow_predict.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from ise.models.ISEFlow import ISEFlow_AIS, ISEFlow_GrIS
2+
from ise.utils import get_data, unscale
3+
import numpy as np
4+
5+
iseflowais = ISEFlow_AIS.load(version="v1.0.0")
6+
7+
data_directory = r"/oscar/home/pvankatw/data/pvankatw/pvankatw-bfoxkemp/ISEFlow/data/ml/AIS/"
8+
X_train, y_train, X_val, y_val, X_test, y_test = get_data(data_directory, return_format='numpy')
9+
y_test = unscale(y_test.reshape(-1,1), f"{data_directory}/scaler_y.pkl")
10+
11+
preds, uq = iseflowais.predict(X_test, )
12+
13+
print("MSE: ", np.mean((y_test - preds)**2)) # reported in ISEFlow paper: 1.20
14+

0 commit comments

Comments
 (0)