CoolFace
Apppublic

yoon-gu/drift-detection-ui

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes
App README

Drift Detection UI

Gradio 기반의 모델 드리프트 모니터링 대시보드입니다.

기능

  • drift_record 테이블 데이터를 DataFrame으로 시각화
  • 모델별 필터링
  • Precision, Recall, JS Divergence 범위 필터링
  • 실시간 통계 정보 표시

설치 및 실행

1. 데이터베이스 생성

bash
uv run python create_database.py

2. Gradio UI 실행

bash
uv run python app.py

브라우저에서 자동으로 열립니다 (기본: http://127.0.0.1:7860)

데이터베이스 스키마

model_info

  • 모델 정보 저장
  • modelid, modelname, releasedate, predictionperiod

total_result

  • 전체 예측 결과
  • customerid, modelid, score, prediction_date

delivered

  • 전달된 예측
  • customerid, modelid, rank, prediction_date

drift_record

  • 드리프트 메트릭
  • customerid, modelid, precision, recall, samplenumbers, jsvalue, wdvalue, predictiondate

UI 기능

  • 모델 선택: 특정 모델의 드리프트 레코드만 조회
  • Precision/Recall 필터: 성능 메트릭 범위 설정
  • JS Divergence 필터: 분포 차이 범위 설정
  • 통계: 선택된 데이터의 평균 및 요약 정보
  • 초기화: 모든 필터를 기본값으로 리셋