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

Feedback #1

Open
wants to merge 70 commits into
base: feedback
Choose a base branch
from
Open

Feedback #1

wants to merge 70 commits into from

Conversation

github-classroom[bot]
Copy link

@github-classroom github-classroom bot commented Sep 6, 2024

👋! 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:

  • Click the Files changed tab to see all of the changes pushed to the default branch since the assignment started. To leave comments on specific lines of code, put your cursor over a line of code and click the blue + (plus sign). To learn more about comments, read “Commenting on a pull request”.
  • Click the Commits tab to see the commits pushed to the default branch. Click a commit to see specific changes.
  • If you turned on autograding, then click the Checks tab to see the results.
  • This page is an overview. It shows commits, line comments, and general comments. You can leave a general comment below.
    For more information about this pull request, read “Leaving assignment feedback in GitHub”.

Subscribed: @SooMiiii @seoo2001 @ardkyer @yunhyechoi @doffice0827

@doffice0827 doffice0827 linked an issue Sep 25, 2024 that may be closed by this pull request
2 tasks
@doffice0827 doffice0827 removed a link to an issue Sep 25, 2024
2 tasks
seoo2001 and others added 29 commits September 28, 2024 20:35
[010] data generator 기능 추가 #10
Copy link

@shawnhyeonsoo shawnhyeonsoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

코드 완성도가 매우 높네요! 깔끔하게 잘 정리되어서 편하게 이해할 수 있었습니다. 고생하셨습니다!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

README에 프로젝트에 대한 설명, 결과 등이 자세하게 적혀 있어서 너무 좋네요 👍

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:

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

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)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

df2 보다는 명확히 어떤 상황에서 쓰이는 df인지 알 수 있는 변수명을 쓰면 좋을 것 같아요!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EDA 과정은 따로 프로젝트에 포함하지 않아도 될 것 같아요! 프로젝트 코드에는 .ipynb 파일은 없는 게 깔끔해보입니다

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)

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)

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):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

함수마다 I/O 명시되면 좋을 것 같습니다. 어떤 용도로 사용되는지 잘 보이게 하는 게 좋습니다.

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.

6 participants