Skip to content

Commit ac970ae

Browse files
committed
Update model_trainer.py to use ArtifactType from zenml.enums
1 parent a66d772 commit ac970ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

oncoclear/steps/model_trainer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from sklearn.linear_model import SGDClassifier
2424
from typing_extensions import Annotated
2525
from zenml import ArtifactConfig, step
26+
from zenml.enums import ArtifactType
2627
from zenml.logger import get_logger
2728

2829
logger = get_logger(__name__)
@@ -34,7 +35,7 @@ def model_trainer(
3435
model_type: str = "sgd",
3536
target: Optional[str] = "target",
3637
) -> Annotated[
37-
ClassifierMixin, ArtifactConfig(name="sklearn_classifier", is_model_artifact=True)
38+
ClassifierMixin, ArtifactConfig(name="sklearn_classifier", artifact_type=ArtifactType.MODEL)
3839
]:
3940
"""Configure and train a model on the training dataset.
4041

0 commit comments

Comments
 (0)