domino logo
Tech Ecosystem
Get started with Python
Step 0: Orient yourself to DominoStep 1: Create a projectStep 2: Configure your projectStep 3: Start a workspaceStep 4: Get your files and dataStep 5: Develop your modelStep 6: Clean up WorkspacesStep 7: Deploy your model
Get started with R
Step 0: Orient yourself to Domino (R Tutorial)Step 1: Create a projectStep 2: Configure your projectStep 3: Start a workspaceStep 4: Get your files and dataStep 5: Develop your modelStep 6: Clean up WorkspacesStep 7: Deploy your model
Get Started with MATLAB
Step 1: Orient yourself to DominoStep 2: Create a Domino ProjectStep 3: Configure Your Domino ProjectStep 4: Start a MATLAB WorkspaceStep 5: Fetch and Save Your DataStep 6: Develop Your ModelStep 7: Clean Up Your Workspace
Step 8: Deploy Your Model
Scheduled JobsLaunchers
Step 9: Working with Domino Datasets
Domino Reference
Projects
Projects Overview
Revert Projects and Files
Revert a ProjectRevert a File
Projects PortfolioReference ProjectsProject Goals in Domino 4+
Git Integration
Git Repositories in DominoGit-based Projects with CodeSyncWorking from a Commit ID in Git
Jira Integration in DominoUpload Files to Domino using your BrowserFork and Merge ProjectsSearchSharing and CollaborationCommentsDomino Service FilesystemCompare File RevisionsArchive a Project
Advanced Project Settings
Project DependenciesProject TagsRename a ProjectSet up your Project to Ignore FilesUpload files larger than 550MBExporting Files as a Python or R PackageTransfer Project Ownership
Domino Runs
JobsDiagnostic Statistics with dominostats.jsonNotificationsResultsRun Comparison
Advanced Options for Domino Runs
Run StatesDomino Environment VariablesEnvironment Variables for Secure Credential StorageUse Apache Airflow with Domino
Scheduled Jobs
Domino Workspaces
WorkspacesUse Git in Your WorkspaceRecreate A Workspace From A Previous CommitUse Visual Studio Code in Domino WorkspacesPersist RStudio PreferencesAccess Multiple Hosted Applications in one Workspace Session
Spark on Domino
On-Demand Spark
On-Demand Spark OverviewValidated Spark VersionConfigure PrerequisitesWork with your ClusterManage DependenciesWork with Data
External Hadoop and Spark
Hadoop and Spark OverviewConnect to a Cloudera CDH5 cluster from DominoConnect to a Hortonworks cluster from DominoConnect to a MapR cluster from DominoConnect to an Amazon EMR cluster from DominoRun Local Spark on a Domino ExecutorUse PySpark in Jupyter WorkspacesKerberos Authentication
On-Demand Ray
On-Demand Ray OverviewValidated Ray VersionConfigure PrerequisitesWork with your ClusterManage DependenciesWork with Data
On-Demand Dask
On-Demand Dask OverviewValidated Dask VersionConfigure PrerequisitesWork with Your ClusterManage DependenciesWork with Data
Customize the Domino Software Environment
Environment ManagementDomino Standard EnvironmentsInstall Packages and DependenciesAdd Workspace IDEsAdding Jupyter Kernels
Partner Environments for Domino
Use MATLAB as a WorkspaceUse Stata as a WorkspaceUse SAS as a WorkspaceNVIDIA NGC Containers
Advanced Options for Domino Software Environment
Install Custom Packages in Domino with Git IntegrationAdd Custom DNS Servers to Your Domino EnvironmentConfigure a Compute Environment to User Private Cran/Conda/PyPi MirrorsUse TensorBoard in Jupyter Workspaces
Publish your Work
Publish a Model API
Model Publishing OverviewModel Invocation SettingsModel Access and CollaborationModel Deployment ConfigurationPromote Projects to ProductionExport Model Image
Publish a Web Application
App Publishing OverviewGet Started with DashGet Started with ShinyGet Started with FlaskContent Security Policies for Web Apps
Advanced Web Application Settings in Domino
App Scaling and PerformanceHost HTML Pages from DominoHow to Get the Domino Username of an App Viewer
Launchers
Launchers OverviewAdvanced Launcher Editor
Assets Portfolio Overview
Model Monitoring and Remediation
Monitor WorkflowsData Drift and Quality Monitoring
Set up Monitoring for Model APIs
Set up Prediction CaptureSet up Drift DetectionSet up Model Quality MonitoringSet up NotificationsSet Scheduled ChecksSet up Cohort Analysis
Set up Model Monitor
Connect a Data SourceRegister a ModelSet up Drift DetectionSet up Model Quality MonitoringSet up Cohort AnalysisSet up NotificationsSet Scheduled ChecksUnregister a Model
Use Monitoring
Access the Monitor DashboardAnalyze Data DriftAnalyze Model QualityExclude Features from Scheduled Checks
Remediation
Cohort Analysis
Review the Cohort Analysis
Remediate a Model API
Monitor Settings
API TokenHealth DashboardNotification ChannelsTest Defaults
Monitoring Config JSON
Supported Binning Methods
Model Monitoring APIsTroubleshoot the Model Monitor
Connect to your Data
Data in Domino
Datasets OverviewProject FilesDatasets Best Practices
Connect to Data Sources
External Data VolumesDomino Data Sources
Connect to External Data
Connect Domino to DataRobotConnect to Amazon S3 from DominoConnect to BigQuery from DominoConnect to Generic S3 from DominoConnect to IBM DB2 from DominoConnect to IBM Netezza from DominoConnect to Impala from DominoConnect to MSSQL from DominoConnect to MySQL from DominoConnect to Okera from DominoConnect to Oracle Database from DominoConnect to PostgreSQL from DominoConnect to Redshift from DominoConnect to Snowflake from DominoConnect to Teradata from Domino
Work with Data Best Practices
Work with Big Data in DominoWork with Lots of FilesMove Data Over a Network
Advanced User Configuration Settings
User API KeysDomino TokenOrganizations Overview
Use the Domino Command Line Interface (CLI)
Install the Domino Command Line (CLI)Domino CLI ReferenceDownload Files with the CLIForce-Restore a Local ProjectMove a Project Between Domino DeploymentsUse the Domino CLI Behind a Proxy
Browser Support
Get Help with Domino
Additional ResourcesGet Domino VersionContact Domino Technical SupportSupport Bundles
domino logo
About Domino
Domino Data LabKnowledge BaseData Science BlogTraining
User Guide
>
Get Started with MATLAB
>
Step 9: Working with Domino Datasets

Step 9: Working with Domino Datasets

If your Domino project uses a large number of files (for example, more than 10,000), or a single file larger than 8GB, consider using a Domino dataset.

The following summarizes the lifecycle of a dataset:

  • Datasets are defined in a .yaml file, along with input folders and output folders.

  • A newly defined dataset is stored in the input folder specified in the .yaml file. By default, the dataset in the input folder is read-only, while files in the output folder are writable.

  • If you do not write anything to the output folder, the dataset remains unchanged.

  • You must copy any files that you’d like to persist from the dataset in the input folder to the output folder.

  • If you write to the output folder, the dataset files will be overwritten. However, datasets are saved as snapshots so you can roll back to a previous snapshot of the dataset if needed.

This topic describes how to use a dataset with the weather project.

Step 8.1: Add a dataset to your project

  1. In the navigation pane, click Data.

  2. Click Create New Dataset.

  3. Type a Name (such as get-started-MATLAB-dataset) and description for your dataset, then click Create Dataset.

    new workspace datasets

  4. To take an initial snapshot to create the initial version of your dataset, in the navigation pane, click Workspaces. Click Create New Workspace and give it a name.

  5. Select MATLAB as your workspace IDE. Click Launch Now. Your MATLAB workspace launches with a new folder used to store the data that is part of your dataset.

  6. To locate the new folder, click the "/" in the file path of your MATLAB workspace. Next, go to the dataset folder that Domino created for you: /domino/datasets/local/get-started-MATLAB-dataset.

    dataset path

  7. To populate the dataset, download weather station files from the same NOAA repository that you used earlier in the project. Use the back arrow to return to your work directory (/mnt), and create script named downloadToDatasetDir.m.

  8. Copy and paste the following to create a function to download the NOAA data:

    function downloadToDatasetDir()
    % NOAA data URL
    baseUrlString = "https://www.ncei.noaa.gov/data/global-historical-climatology-network-daily/access/";
    
    % Prefix shared by weather stations in Argentina
    baseWeatherStationId = 'AR0000000';
    
    % the location to save the files – the dataset output directory
    datasetFolder = "//domino/datasets/local/get-started-MATLAB-dataset/";
    % There are 16 weather station files. We will iterate and download each one
    for counter=1:16
        if counter<10
            weatherStationId = sprintf('%s%s%d', baseWeatherStationId, '0', counter);
        else
            weatherStationId = sprintf('%s%d', baseWeatherStationId, counter )
        end
    
        urlString = sprintf("%s%s%s", baseUrlString, weatherStationId, ".csv");
        savedFileName = sprintf("%s%s%s", datasetFolder, weatherStationId, ".csv");
    websave(savedFileName, urlString);
    
    end
    end
  9. Save the file, then type downloadToDatasetDir to run it from the Command Window in your MATLAB workspace. Click the / in the navigation bar and go to /domino/datasets/local/get-started-MATLAB-dataset to see the output.

    run command and see output

  10. To save the files to Domino, in the navigation pane, click Files Changes. Click Sync All Changes.

  11. In the navigation pane, click the Domino logo. Then, click Data and you can see that the dataset is listed.

    datasets

  12. Click the dataset to open a list of the files that you downloaded.

Step 8.2: Create a snapshot

When you are ready to version the contents of a dataset, you can create a Snapshot.

  1. From the navigation pane, click Data.

    datasets

  2. Double-click the dataset for which you want to create a snapshot.

  3. Click Take Snapshot > Include all files.

    take snapshot menu

  4. In the Confirm Dataset Snapshot? window, type a tag such as "weather." You can use this tag to mount the snapshot with a friendly name in subsequent executions. Click Confirm.

    confirm data snapshot

    When the snapshot is done, you can see it from the Snapshots list.

    snapshot complete

Domino Data LabKnowledge BaseData Science BlogTraining
Copyright © 2022 Domino Data Lab. All rights reserved.