Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
기존 GcTrainer 가 build/classes 기준으로 모델 파일을 저장하던 문제 수정
→ 이제 항상 프로젝트 루트(build.gradle.kts 위치 기준) 의 /ai-models/ 디렉터리에 저장됨
LogisticRegression.save() 제거 및 직접 직렬화(ObjectOutputStream) 방식으로 교체
→ Smile 2.x 버전에는 save() API가 존재하지 않으므로, 표준 Java 직렬화로 저장하도록 변경
학습 완료 후 모델을 gc_train.model, gc_test.model 두 가지 버전으로 자동 저장
→ 각 모델은 프로젝트 루트의 /ai-models/ 디렉터리에 생성됨
→ 기존 파일이 존재할 경우 자동 덮어쓰기 (overwrite) 처리
TODO