-
Notifications
You must be signed in to change notification settings - Fork 11
Feat/basic presets #146
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
Feat/basic presets #146
Conversation
|
@Samoed с последним коммитом локально у меня тесты прошли, можно работать над включением **clf_args: Any |
autointent/_dataset/_dataset.py
Outdated
| sample["label"] = ohe_vector | ||
| return sample | ||
|
|
||
| def validate_descriptions(self) -> None: |
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.
Добавь докстринг, тк не понятно зачем это
autointent/_pipeline/_pipeline.py
Outdated
| if isinstance(config, Path | str): | ||
| with Path(config).open() as file: | ||
| dict_params = yaml.safe_load(file) | ||
| elif isinstance(config, dict): | ||
| dict_params = config |
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.
| 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 |
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.
я assert_never поставлю, ок же?
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.
Да
| clf_args: dict[str, Any] | None = None, | ||
| clf_name: str, | ||
| embedder_config: EmbedderConfig | str | None = None, | ||
| **clf_args: Any, # noqa: ANN401 |
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.
Вроде для генерации конфигов надо
| **clf_args: Any, # noqa: ANN401 | |
| **clf_args: int | float | Any, |
| "default": [ | ||
| null | ||
| ], | ||
| "clf_args": { |
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.
Кажется, что с этим конфигом перебор параметров работать не будет для sklearn
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.
Я пока валидацию отключил, все работает
Samoed
left a comment
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.
Тогда потом поправлю sklearn
No description provided.