We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a66d772 commit ac970aeCopy full SHA for ac970ae
oncoclear/steps/model_trainer.py
@@ -23,6 +23,7 @@
23
from sklearn.linear_model import SGDClassifier
24
from typing_extensions import Annotated
25
from zenml import ArtifactConfig, step
26
+from zenml.enums import ArtifactType
27
from zenml.logger import get_logger
28
29
logger = get_logger(__name__)
@@ -34,7 +35,7 @@ def model_trainer(
34
35
model_type: str = "sgd",
36
target: Optional[str] = "target",
37
) -> Annotated[
- ClassifierMixin, ArtifactConfig(name="sklearn_classifier", is_model_artifact=True)
38
+ ClassifierMixin, ArtifactConfig(name="sklearn_classifier", artifact_type=ArtifactType.MODEL)
39
]:
40
"""Configure and train a model on the training dataset.
41
0 commit comments