batch_model_predict module¶
- batch_model_predict.batch_model_predict()¶
Orchestration flow to predict on new data and save the predictions to the database
- batch_model_predict.predict(model: object, data: DataFrame, get_probs: bool = False) DataFrame ¶
Predicts on the data using the model provided. If get_probs is True, it also returns the probabilities of the predictions.
- batch_model_predict.read_new_data(table_name: str) DataFrame ¶
Reads data to be predicted from the database
- batch_model_predict.save_predictions(data: DataFrame, table_name: str) None ¶
Saves the predictions to the database