Azure / mlops-v2

Azure MLOps (v2) solution accelerators. Enterprise ready templates to deploy your machine learning models on the Azure Platform.
https://learn.microsoft.com/en-us/azure/machine-learning/concept-model-management-and-deployment
MIT License
520 stars 259 forks source link

several issue #129

Open shoresh57 opened 2 months ago

shoresh57 commented 2 months ago

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:

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

robert4os commented 2 months ago

+1 Same findings. Thank you shoresh57 for workarounds