Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
A
Action Status Predictor
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • KEIT Chience
  • Action Status Predictor
  • Wiki
  • Home

Last edited by AYM Dec 31, 2020
Page history

Home

프로그램 구조도

그림2

함수 명세서

__main__

  • 입력 : X
  • 반환 : X
  • 주요기능 : Model directory에 있는 first, second 모델을 user_id 별로 전역변수 Dictionary에 Load 합니다. 그리고 Flask app을 실행하여 요청을 대기합니다. 로그를 담는 파일을 생성합니다.
  • 특이사항 : X

restAPI.post([host:port]/predict)

  • 입력 : request(with JSON data)
    data: 6축 row data 리스트(str[*][6])
    user_id: user_id(str)
  • 반환 : response(with Prediction label Text)
  • 주요기능 : 요청에 대해 sliding window로 예측 배열을 생성. 각 예측에 가중치를 투표하여 가장 높은 점수를 받은 레이블을 이전 예측과 비교하여 최종 예측을 도출. 최종 예측을 응답한다. 도중에 에러가 발생하면 500 code를 응답한다.
  • 특이사항 : 많은 예외처리 케이스가 존재한다.

predict_action

  • 입력 : image(dataset), user_id
  • 반환 : first model 예측 결과
  • 주요기능 : 해당 user_id의 first model에 대한 입력 데이터셋의 예측 결과를 반환한다.
  • 특이사항 : X

predict_second

  • 입력 : image(dataset), user_id
  • 반환 : second model 예측 결과
  • 주요기능 : 해당 user_id의 second model에 대한 입력 데이터셋의 예측 결과를 반환한다.
  • 특이사항 : X

predict_with_previous_labels

  • 입력 :
    user_id: user_id
    predicted: 현재 예측 결과 레이블
  • 반환 : 최종 예측 결과 레이블
  • 주요기능 : 이전 최종 예측 결과를 저장해두었다가, 현재 예측 결과가 입력되면 두 레이블을 비교하여 현재의 최종 예측 결과를 도출한다.
  • 특이사항 : 많은 예외처리 케이스가 존재한다.
Clone repository
  • Home