Run given keras model to make predictions on the given subset of data
get_predictions(data, maxlen, model_load_path, trained_data, max_words)
data | Given subset of data to make predictions on. |
---|---|
maxlen | Maximum length of a sequence. |
model_load_path | File path location of the trained model file. |
trained_data | Training dataset. |
max_words | Maximum number of words to consider using word frequency measure. |
Given subset of data appended with pred_polarity column for predicted values.