ium_z444439/predictions.py
2023-05-11 18:11:43 +02:00

13 lines
263 B
Python

import keras
import numpy as np
import tensorflow as tf
import pandas as pd
test_data = pd.read_csv("adult_test.csv")
model = keras.models.load_model("model.h5")
predictions = model.predict(test_data)
np.savetxt("predictions.csv", predictions, delimiter=",")