<jupyter_start><jupyter_text>Loading Images directly into a Dataset<jupyter_code>from azureml.core import Workspace
ws = Workspace.from_config()
from azureml.core import Datastore, Dataset
from azureml.data.datapath import DataPath


# retrieve an existing datastore in the workspace by name
datastore_name = 'mldemoblob'
datastore = Datastore.get(ws, datastore_name)

file_ds = Dataset.File.upload_directory(src_dir='./images',
                                        target=DataPath(datastore,  'mldata/STL10_unlabelled'),
                                        show_progress=True)

file_ds = file_ds.register(workspace=ws,
                           name='STL10_unlabeled',
                           description='8000 unlabeled STL-10 images')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07969151670951156, 'fraction_numerical': 0.012853470437017995, 'mean_word_length': 2.8186274509803924, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '317118', 'license': 'MIT', 'n_tokens_mistral': 243, 'n_tokens_neox': 230, 'n_words': 46, 'path': 'chapter06/03_reg_unlabeled_data.ipynb', 'repo_name': 'PacktPublishing/Mastering-Azure-Machine-Learning-Second-Edition', 'size': '778'}