Closed snehankekre closed 4 years ago
Thank you for reporting this issue and for providing the PR. We have merged your PR and updated the download method regarding the SSL warnings. Please reopen the issue if you experience more issues with the download script.
Bug
Set up of the demo project fails and throws a ValueError when following the instructions.
System details
Steps to reproduce
!pip install tfx
!git clone https://github.com/Building-ML-Pipelines/building-machine-learning-pipelines.git
!cd building-machine-learning-pipelines/;python3 utils/download_dataset.py
Cause
In line 101 of
utils/download_dataset.py
,usecols
looks for columns defined infeatures_cols
within the consumer_complaints_with_narrative.csv dataset. It does not find the'company_response_to_consumer', 'zipcode', 'consumer_disputed?'
columns and throws a ValueError. A simple case of column name mismatch. The dataset actually contains the following column names:Fix
Update the column names in
feature_cols
and remove lines 103 - 110 inutils/download_dataset.py
. i.e. Lines 88 through 110 can be replaced by the following:Expected output
!cd building-machine-learning-pipelines/;python3 utils/download_dataset.py