import json
import pickle
from pathlib import Path

from sklearn.datasets import make_regression

CURR_DIR = Path(__file__).parent
model = pickle.load(open(f"{CURR_DIR}/models/model.pkl", "rb"))

# Generate some data for validation
X_test, y = make_regression(1000, n_features=11)

# Test on the model
y_hat = model.predict(X_test)
