-
Notifications
You must be signed in to change notification settings - Fork 317
Description
Describe the bug or the issue that you are facing
1- you need update initialise-project.yml since the pipeline is failed and says already we have taxi-fare-regression repo
2- install-az-cli.yml need to be updated since fail because version issue , I changed to the following ans worked
steps:
-
task: AzureCLI@2
displayName: Install AZ ML dependencies
inputs:
azureSubscription: $(ado_service_connection_aml_ws)
scriptType: bash
scriptLocation: inlineScript
workingDirectory: $(System.DefaultWorkingDirectory)
inlineScript: |
set -e # fail on error# Upgrade pip once python -m pip install -U --force-reinstall pip # Install dependencies with a compatible version of cryptography pip install azure-cli==2.35 azure-ai-ml==1.1.0 azure-common==1.1.28 \ azure-core==1.26.1 azure-identity==1.10.0 \ azure-mgmt-core==1.3.0 azure-storage-blob==12.14.1 \ azure-storage-file-datalake==12.9.1 azure-storage-file-share==12.7.0 \ pyOpenSSL==23.2.0 cryptography==39.0.0 # Check Azure CLI version az version
3- image creating never worked and need update train-conda.yml , I changed to the following and it worked
channels:
- defaults
- conda-forge
dependencies: - python=3.10
- pip
- pip:
- azureml-mlflow
- azure-ai-ml
- pyarrow
- scikit-learn
- pandas
- joblib
- matplotlib
- git+https://github.com/microsoft/AzureML-Observability#subdirectory=aml-obs-client
- git+https://github.com/microsoft/AzureML-Observability#subdirectory=aml-obs-collector
4- faile in training , need update train.py , here is the part that need to update to
def parse_args():
'''Parse input arguments'''
parser = argparse.ArgumentParser("train")
parser.add_argument("--train_data", type=str, help="Path to train dataset")
parser.add_argument("--model_output", type=str, help="Path of output model")
# classifier specific arguments
parser.add_argument('--regressor__n_estimators', type=int, default=500,
help='Number of trees')
parser.add_argument('--regressor__bootstrap', type=bool, default=True,
help='Method of selecting samples for training each tree')
parser.add_argument('--regressor__max_depth', type=int, default=10,
help=' Maximum number of levels in tree')
parser.add_argument('--regressor__max_features', type=str, default='sqrt',
help='Number of features to consider at every split')
parser.add_argument('--regressor__min_samples_leaf', type=int, default=4,
help='Minimum number of samples required at each leaf node')
parser.add_argument('--regressor__min_samples_split', type=int, default=5,
help='Minimum number of samples required to split a node')
args = parser.parse_args()
return args
Steps/Code to Reproduce
hhhh
Expected Output
nnnn
Versions
nnn
Which platform are you using for deploying your infrastrucutre?
Azure DevOps (ADO)
If you mentioned Others, please mention which platformm are you using?
nn
What are you using for deploying your infrastrucutre?
Bicep
Are you using Azure ML CLI v2 or Azure ML Python SDK v2
Azure ML CLI v2
Describe the example that you are trying to run?
nn