This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
from keras.models import load_model | |
model = load_model('trained_model.h5') | |
X = pd.read_csv("proposed_new_product.csv").values | |
prediction = model.predict(X) | |
# Grab just the first element of the first prediction (since we only have one) | |
prediction = prediction[0][0] |