yeomko22 / TIL

Today I learned
1 stars 0 forks source link

DS School - Shadow mode #127

Open yeomko22 opened 2 years ago

yeomko22 commented 2 years ago

Shadow mode

yeomko22 commented 2 years ago

testing models in production

class LassoModelPredictions(Base):
    __tablename__ = "regression_model_predictions"
    id = Column(Integer, primary_key=True)
    user_id = Column(String(36), nullable=False)
    datetime_captured = Column(
        DateTime(timezone=True), server_default=func.now(), index=True
    )
    model_version = Column(String(36), nullable=False)
    inputs = Column(JSONB)
    outputs = Column(JSONB)

class GradientBoostingModelPredictions(Base):
    __tablename__ = "gradient_boosting_model_predictions"
    id = Column(Integer, primary_key=True)
    user_id = Column(String(36), nullable=False)
    datetime_captured = Column(
        DateTime(timezone=True), server_default=func.now(), index=True
    )
    model_version = Column(String(36), nullable=False)
    inputs = Column(JSONB)
    outputs = Column(JSONB)