azureml工作空间, - data-folder SyntaxError:无法分配给operator [英] azureml workspace, --data-folder SyntaxError: can't assign to operator

查看:64
本文介绍了azureml工作空间, - data-folder SyntaxError:无法分配给operator的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个图像分类脚本,并在azure中配置了一个群集来运行作业并从blob存储中获取数据, 

I developed a image classification script and configured a cluster in azure to run the job and get the data from the blob storage, 

基本实验"使用Azure机器学习训练带有MNIST数据和scikit-learn的图像分类模型"在微软网站上。

A basic experiment "Train image classification models with MNIST data and scikit-learn using Azure Machine Learning" is in the microsoft website.

但是这个工作没有成功运行,这里是下面的错误

however the job isn't running success, here's the error below

mycode:

#defined参数在Train.py中给出

#defined the argument parameters as given in Train.py

parser = argparse.ArgumentParser()

parser = argparse.ArgumentParser()

args = parser.parse_args()

args = parser.parse_args()

data_folder = args.data_folder

data_folder = args.data_folder

#these参数在这里调用

#these parameters are called here

推荐答案

Hello Sridhar,

Hello Sridhar,

我相信你正在使用这个
文档
运行实验和错误似乎是在您创建估算器时。您能否检查估算器的所有其他参数是否设置正确,因为语法错误可能是传递给
估算器的参数之一的问题。

I believe you are using this documentation to run the experiment and the error seems to be when you create the estimator. Could you please check if all the other parameters to the estimator are set correctly as the syntax error could be an issue in one of the parameters passed to the estimator.

from azureml.train.estimator import Estimator

script_params = {
    '--data-folder': ds.path('mnist').as_mount(),
    '--regularization': 0.8
}

est = Estimator(source_directory=script_folder,
                script_params=script_params,
                compute_target=compute_target,
                entry_script='train.py',
                conda_packages=['scikit-learn'])


这篇关于azureml工作空间, - data-folder SyntaxError:无法分配给operator的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆