-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feedback #1
base: feedback
Are you sure you want to change the base?
Feedback #1
Conversation
기존 baseline model에 상승 하락 예측 binary model을 ensemble함.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코드 완성도가 매우 높네요! 깔끔하게 잘 정리되어서 편하게 이해할 수 있었습니다. 고생하셨습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
README에 프로젝트에 대한 설명, 결과 등이 자세하게 적혀 있어서 너무 좋네요 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
param 정해두신 점 너무 좋습니다
import pandas as pd | ||
from typing import List | ||
|
||
def data_loader(dataset_name: str, drop_column=None) -> pd.DataFrame: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I/O 정해져 있고 명시되어 있는 점 좋습니다
y_train_list = [] | ||
x_valid_list = [] | ||
y_valid_list = [] | ||
from sklearn.model_selection import StratifiedKFold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import 함수는 처음에 다 적어주시면 좋을 것 같아요!
test_df_filled = pd.DataFrame(final_test, columns=self.test_df.columns) | ||
|
||
# 원래 데이터에서 ID, target, _type 컬럼을 가져와서 결합 | ||
df2 = pd.concat([train_df_filled, test_df_filled], axis=0).reset_index(drop=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
df2 보다는 명확히 어떤 상황에서 쓰이는 df인지 알 수 있는 변수명을 쓰면 좋을 것 같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EDA 과정은 따로 프로젝트에 포함하지 않아도 될 것 같아요! 프로젝트 코드에는 .ipynb 파일은 없는 게 깔끔해보입니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
중복되는 코드가 조금 있어보이는데, 모듈화를 하면 더 깔끔할 것 같네요!
model = BinaryEnsemble() | ||
else: | ||
print("Invalid model name") | ||
exit(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error handling 좋습니다.
accuracy, auroc = get_accuracy_and_auroc(args.valid_type, model, train_df) | ||
model = train_model(model, train_df) | ||
save_submission(model, test_df, submission_df) | ||
save_log(args, accuracy, auroc, params) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
로그 저장도 너무 좋네요 👍
from sklearn.model_selection import train_test_split | ||
|
||
|
||
def get_accuracy_and_auroc(valid_type, model, train_df): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
함수마다 I/O 명시되면 좋을 것 같습니다. 어떤 용도로 사용되는지 잘 보이게 하는 게 좋습니다.
👋! GitHub Classroom created this pull request as a place for your teacher to leave feedback on your work. It will update automatically. Don’t close or merge this pull request, unless you’re instructed to do so by your teacher.
In this pull request, your teacher can leave comments and feedback on your code. Click the Subscribe button to be notified if that happens.
Click the Files changed or Commits tab to see all of the changes pushed to the default branch since the assignment started. Your teacher can see this too.
Notes for teachers
Use this PR to leave feedback. Here are some tips:
For more information about this pull request, read “Leaving assignment feedback in GitHub”.
Subscribed: @SooMiiii @seoo2001 @ardkyer @yunhyechoi @doffice0827