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

Feature/training #1

Merged
merged 9 commits into from
Sep 4, 2021
Merged

Feature/training #1

merged 9 commits into from
Sep 4, 2021

Conversation

ehddnr301
Copy link
Contributor

No description provided.

database.py 설정이 오류가 나지않도록 수정하였습니다.
줄바꿈을 적용하다가 실수가 있어 제대로 작동하지않았습니다.
upload_file 을 구현하였습니다.
파일을 받아서 file_name(path) 와 db에 저장되는 형식인 pickle 이라는 dictionary를 리턴합니다.
임시적인 구현입니다.
임시로 /train/mnist 로 post request 하면 model을 training 하고
model을 file로 저장한 후 path를 얻어서 그 정보들로 db에 저장합니다.
/test/model 로 get request를 보내면 저장된 model을 불러와서
임시적으로 있는 test_mnist 에 대해 예측하여 값을 반환합니다.
원래 Pickle이라 model, schema name등을 지정했는데 적절하지 않은 이름으로 보여서 Dataset으로 변경하였습니다.
추후에 저장방법이 통일되거나? 하면 적절한 이름을 찾아 다시 수정하겠습니다.
convention에 맞게 import 를 수정하였습니다.
NNi 로 튜닝되는 과정에서 DB와 통신합니다.
DB의 기록과 비교해서 성능이 더 잘나온다면 덮어씁니다.
RegModel 에 대해서 원래는 validation mae만 저장하던것을
train, validation 에 대해 MAE와 MSE모두 저장합니다.
프로젝트 구조를 변경했습니다.
기존에 app 밑에 router가 바로있었는데
api에 사용되는 부분을 구분하기 위해서 api폴더를 따로 만들어서
router 폴더와 schema.py 파일을 이동하였습니다.
@ehddnr301 ehddnr301 merged commit 7349d92 into develop Sep 4, 2021
@ehddnr301 ehddnr301 deleted the feature/training branch September 4, 2021 04:16
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

Successfully merging this pull request may close these issues.

1 participant