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

HW6 #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

dkopylov1337
Copy link

No description provided.

Copy link

@belou5ov belou5ov left a comment

Choose a reason for hiding this comment

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

В целом ок. 10 баллов.
Просьба раскидывать файлы по папкам: отдельно DAG-и, отдельно csv, отдельно скрины.

Comment on lines +19 to +20
uplift_train_df: pd.DataFrame = pd.read_csv('uplift_train.csv')
clients_df: pd.DataFrame = pd.read_csv('clients.csv')

Choose a reason for hiding this comment

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

io операции стоит вызывать внутри функции. Иначе при импорте файла будет происходить выполнение.

from sklearn.ensemble import RandomForestClassifier

@pytest.fixture
def sample_data() -> pd.DataFrame:

Choose a reason for hiding this comment

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

Фикстуру с данными стоит располагать отдельно от тестов. Тут подошло бы сохранить в conftest.py.

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.

2 participants