I have a model stack in python (scikit based with logistic regression, tree based…
- User
I have a model stack in python (scikit based with logistic regression, tree based models, bayes models etc) for binary classification. I am done with hyperparameter search, feature engineering etc.
I want to create a microservice that can receive a line of data and send back the model output predicted. The data would get transformed, enriched thanks to a MongoDb database that I have built, input to submodels to create first predictions, and lastly input to the stacking model. I want to send back : the stacking model probability and its SHAP feature importance for this prediction, as well as each submodel's probability. The stacking model can either be a logistic regression or a tree based models (I have already built the functions to get the SHAP etc)
As I said, all my research is finalized and I want to ask for advice on the architecture, tools to use for an efficient (low latency) implementation for that pipeline. Nothing is off the table, but simpler is better if it's fast enough. You may propose various levels of trade-offs between easy to implement and fast.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.