You plan to run a Python script as an Azure Machine Learning experiment.
The script contains the following code:
import os, argparse, glob
from azureml.core import Run
parser = argparse.ArgumentParser()
parser.add_argument('--input-data',
type=str, dest='data_folder')
args = parser.parse_args()
data_path = args.data_folder
file_paths = glob.glob(data_path + "/*.jpg")
You must specify a file dataset as an input to the script. The dataset consists of multiple large image files and must be streamed directly from its source.
You need to write code to define a ScriptRunConfig object for the experiment and pass the ds dataset as an argument.
Which code segment should you use?
If you have structured data not yet registered as a dataset, create a TabularDataset and use it directly in your training script for your local or remote experiment.
To load the TabularDataset to pandas DataFrame
df = dataset.to_pandas_dataframe()
Note: TabularDataset represents data in a tabular format created by parsing the provided file or list of files.
https://docs.microsoft.com/en-us/azure/machine-learning/how-to-train-with-datasets
Sage
13 days agoTonette
19 days agoLawrence
24 days agoMakeda
29 days agoCecilia
1 month agoMing
1 month agoGlenna
1 month agoJenifer
2 months agoGoldie
2 months agoThersa
2 months agoFrederica
2 months agoAlbina
2 months agoMarva
3 months agoTesha
3 months agoRenea
3 months agoMaryrose
3 months agoChi
4 months agoCristal
4 months agoRasheeda
3 months ago