Skip to content

Commit

Permalink
fix: Resolve ColSpec TypeError by updating dependencies in conda.yml
Browse files Browse the repository at this point in the history
- Updated `conda.yml` for the `test_regression_model` component to address compatibility issues:
  - Set `python` to version 3.10.0 for consistency.
  - Upgraded `scikit-learn` to 1.5.2 to match the version used during model saving.
  - Adjusted `pip` to 23.3.1 and `requests` to 2.24.0 for dependency compatibility.
  - Included `pandas` version 2.1.3 to align with other components.
  - Updated `mlflow` to 2.18.0 for improved support.
- Ensured all required dependencies are explicitly listed for compatibility with the `wandb-utils` component.
- This fixes the `TypeError: ColSpec.__init__() got an unexpected keyword argument 'required'` error encountered during model loading.
  • Loading branch information
ruddyscent committed Nov 24, 2024
1 parent a87658f commit 77d1a74
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions components/conda.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: components
name: test_regression_model
channels:
- conda-forge
- defaults
dependencies:
- mlflow=2.8.1
- python=3.10.0
- pip=23.3.1
- requests=2.24.0
- scikit-learn=1.5.2
- pandas=2.1.3
- pip:
- mlflow==2.18.0
- wandb==0.16.0
- git+https://github.com/udacity/Project-Build-an-ML-Pipeline-Starter.git#egg=wandb-utils&subdirectory=components

0 comments on commit 77d1a74

Please sign in to comment.