Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

several issue #129

Open
shoresh57 opened this issue Sep 6, 2024 · 1 comment
Open

several issue #129

shoresh57 opened this issue Sep 6, 2024 · 1 comment
Assignees
Labels
Bug Something isn't working Needs Triage Needs Triage

Comments

@shoresh57
Copy link

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:

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

@shoresh57 shoresh57 added Bug Something isn't working Needs Triage Needs Triage labels Sep 6, 2024
@robert4os
Copy link

+1 Same findings. Thank you shoresh57 for workarounds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Needs Triage Needs Triage
Projects
None yet
Development

No branches or pull requests

3 participants