Skip to content

Conversation

@voorhs
Copy link
Collaborator

@voorhs voorhs commented Feb 22, 2025

No description provided.

@voorhs
Copy link
Collaborator Author

voorhs commented Feb 24, 2025

@Samoed с последним коммитом локально у меня тесты прошли, можно работать над включением **clf_args: Any

@voorhs voorhs marked this pull request as ready for review February 25, 2025 09:59
@voorhs voorhs requested review from Darinochka and Samoed February 25, 2025 09:59
sample["label"] = ohe_vector
return sample

def validate_descriptions(self) -> None:
Copy link
Member

Choose a reason for hiding this comment

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

Добавь докстринг, тк не понятно зачем это

Comment on lines 118 to 122
if isinstance(config, Path | str):
with Path(config).open() as file:
dict_params = yaml.safe_load(file)
elif isinstance(config, dict):
dict_params = config
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if isinstance(config, Path | str):
with Path(config).open() as file:
dict_params = yaml.safe_load(file)
elif isinstance(config, dict):
dict_params = config
elif isinstance(config, Path | str):
with Path(config).open() as file:
dict_params = yaml.safe_load(file)
elif isinstance(config, dict):
dict_params = config
else:
raise Error

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

я assert_never поставлю, ок же?

Copy link
Member

Choose a reason for hiding this comment

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

Да

clf_args: dict[str, Any] | None = None,
clf_name: str,
embedder_config: EmbedderConfig | str | None = None,
**clf_args: Any, # noqa: ANN401
Copy link
Member

Choose a reason for hiding this comment

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

Вроде для генерации конфигов надо

Suggested change
**clf_args: Any, # noqa: ANN401
**clf_args: int | float | Any,

@voorhs voorhs requested a review from Samoed February 26, 2025 11:24
"default": [
null
],
"clf_args": {
Copy link
Member

Choose a reason for hiding this comment

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

Кажется, что с этим конфигом перебор параметров работать не будет для sklearn

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Я пока валидацию отключил, все работает

Copy link
Member

@Samoed Samoed left a comment

Choose a reason for hiding this comment

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

Тогда потом поправлю sklearn

@voorhs voorhs merged commit 426af0d into dev Feb 26, 2025
26 checks passed
@voorhs voorhs deleted the feat/basic-presets branch February 26, 2025 14:59
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.

3 participants