Skip to content

Commit

Permalink
init validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Samoed committed Jan 26, 2025
1 parent 1824ce3 commit 83bce21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions autointent/_pipeline/_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ def default_optimizer(cls, multilabel: bool, seed: int = 42) -> "Pipeline":
Create pipeline optimizer with default search space for given classification task.
:param multilabel: Whether the task multi-label, or single-label.
:param seed: random seed
:return: Pipeline
"""
return cls.from_search_space(search_space=load_default_search_space(multilabel), seed=seed)

Expand Down
6 changes: 1 addition & 5 deletions autointent/custom_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""

from enum import Enum
from typing import Literal, TypeAlias, TypedDict
from typing import Literal, TypeAlias


class LogLevel(Enum):
Expand Down Expand Up @@ -46,10 +46,6 @@ class LogLevel(Enum):
"""


class BaseMetadataDict(TypedDict):
"""Base metadata dictionary for storing additional information."""


class NodeType(str, Enum):
"""Enumeration of node types in the AutoIntent pipeline."""

Expand Down

0 comments on commit 83bce21

Please sign in to comment.