nd_clean                                         ││    26 from steps.importer import (                                                               │

│    27 │   import_season_schedule,                                                                │

│                                                                                                  │

│ /home/dnth/Documents/zenml-projects/nba-pipeline/steps/trainer.py:24 in <module>                 │

│                                                                                                  │

│   21 │   max_depth: int = 10000                                                                  │

│   22 │   target_col: str = "FG3M"                                                                │

│   23                                                                                             │

│ ❱ 24 @step(enable_cache=False, experiment_tracker=experiment_tracker.name)                       │

│   25 def random_forest_trainer(                                                                  │

│   26 │   train_df_x: pd.DataFrame,                                                               │

│   27 │   train_df_y: pd.DataFrame,                                                               │

╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

AttributeError: 'NoneType' object has no attribute 'name'

In the above error snippet, the step on line 24 expects an experiment tracker but could not find it on the stack. To solve it, register an experiment tracker of your choice on the stack. For instance:

zenml experiment-tracker register mlflow_tracker --flavor=mlflow

and update your stack with the experiment tracker:

zenml stack update -e mlflow_tracker

This also applies to all other stack components.

PreviousInteract with secrets

NextOverview

Last updated 19 days ago