Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DS School - Shadow mode #127

Open
yeomko22 opened this issue Sep 23, 2021 · 1 comment
Open

DS School - Shadow mode #127

yeomko22 opened this issue Sep 23, 2021 · 1 comment

Comments

@yeomko22
Copy link
Owner

Shadow mode

  • deployemnt need not expose customers to a new version of your service
@yeomko22
Copy link
Owner Author

yeomko22 commented Sep 23, 2021

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)
  • 각 모델별 입력과 출력값을 ORM을 이용해서 DB에 저장한다.
  • DB에 저장하는 코드는 비동기적으로 실행되게 한다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant