Skip to content

Commit

Permalink
fix : model code
Browse files Browse the repository at this point in the history
  • Loading branch information
ha-seungwon committed Aug 16, 2023
1 parent 01c661a commit 22fddb5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
9 changes: 0 additions & 9 deletions ml/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,6 @@ def set_label(df):



type_1_df=type_1_df.drop('total_score',axis=1)
type_2_df=type_2_df.drop('total_score',axis=1)
type_3_df=type_3_df.drop('total_score',axis=1)
type_4_df=type_4_df.drop('total_score',axis=1)
type_5_df=type_5_df.drop('total_score',axis=1)
type_6_df=type_6_df.drop('total_score',axis=1)




class LSTMModel(nn.Module):
def __init__(self, input_size, hidden_size, num_layers, output_size):
Expand Down
Binary file modified redis/data/dump.rdb
Binary file not shown.
10 changes: 5 additions & 5 deletions src/main/resources/static/js/record.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// const currentDomain = window.location.origin
//const currentDomain = window.location.origin
const currentDomain = "http://localhost:8080"
const scorePattern = /^(?!-)(?!.*[a-zA-Z])(?!.*[!@#$%^&*()])(?!.*\d{5,})(?=.*\d)[^\s]+$/;

Expand Down Expand Up @@ -137,16 +137,16 @@ async function fetchMyInfo() {
currentScore.innerText = "현재 점수 : " + responseScoreInfoValue.currentScore + "점"
expectedPassPercent.innerText = "합격 예상 :" + responseScoreInfoValue.expectedPassPercent.toFixed(2) + "%"

if(responseScoreInfoValue.expectedPassPercent >= 95) {
if(responseScoreInfoValue.expectedPassPercent == 0) {
expectedGrade.innerText = "예측 결과 : 합격 확실"
}
if(responseScoreInfoValue.expectedPassPercent < 95 && responseScoreInfoValue.expectedPassPercent >= 90) {
if(responseScoreInfoValue.expectedPassPercent ==1) {
expectedGrade.innerText = "예측 결과 : 합격 유력"
}
if(responseScoreInfoValue.expectedPassPercent < 90 && responseScoreInfoValue.expectedPassPercent >= 85) {
if(responseScoreInfoValue.expectedPassPercent == 2) {
expectedGrade.innerText = "예측 결과 : 탈락 예상"
}
if(responseScoreInfoValue.expectedPassPercent < 85) {
if(responseScoreInfoValue.expectedPassPercent == 3) {
expectedGrade.innerText = "예측 결과 : 탈락 유력"
}
}
Expand Down

0 comments on commit 22fddb5

Please sign in to comment.