Skip to content

Conversation

@Samoed
Copy link
Member

@Samoed Samoed commented Feb 26, 2025

No description provided.

@Samoed Samoed requested a review from voorhs February 26, 2025 21:42
Comment on lines +45 to +89
# @pytest.mark.parametrize(
# "clf_args",
# [
# {"C": [1.0], "tol": [0.5]},
# {
# "C": {
# "low": 0.01,
# "high": 10,
# "step": 5,
# },
# },
# ],
# )
# def test_multiple_sklearn_scorers(dataset, clf_args):
# project_dir = setup_environment()
# search_space = [
# {
# "node_type": "scoring",
# "target_metric": "scoring_roc_auc",
# "search_space": [
# {
# "module_name": "sklearn",
# "clf_name": ["LogisticRegression"],
# "clf_args": clf_args,
# "embedder_config": ["sentence-transformers/all-MiniLM-L6-v2"],
# },
# ],
# },
# {
# "node_type": "decision",
# "target_metric": "decision_accuracy",
# "search_space": [
# {
# "module_name": "argmax",
# },
# ],
# },
# ]
#
# pipeline_optimizer = Pipeline.from_search_space(search_space)
#
# pipeline_optimizer.set_config(LoggingConfig(project_dir=project_dir, dump_modules=True, clear_ram=True))
# pipeline_optimizer.set_config(DataConfig(scheme="ho", separate_nodes=True))
#
# pipeline_optimizer.fit(dataset, refit_after=False)
Copy link
Member Author

@Samoed Samoed Feb 26, 2025

Choose a reason for hiding this comment

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

Я не понимаю почему тут ошибка

>       features = self._embedder.embed(utterances, TaskTypeEnum.classification)
E       AttributeError: 'SklearnScorer' object has no attribute '_embedder'

@Samoed Samoed closed this Feb 27, 2025
@voorhs voorhs deleted the fix_sklearn_search_space branch July 25, 2025 08:53
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