Main Content

generateSamples

Generate data sets for training deep-learning-based CHOMP optimizer

Since R2024a

    Description

    [trainingData,validationData] = generateSamples(dlchomp,options,folderpath) generates training and validation data samples for training the specified dlCHOMP object using the specified data options, and writes the data samples to the specified folder path. For more information about how to generate samples, see Train Deep-Learning-Based CHOMP Optimizer for Motion Planning.

    The generateSamples function requires Deep Learning Toolbox™.

    [___] = generateSamples(___,Verbose=verbose) specifies whether to stop running the function when it cannot generate samples using the specified DLCHOMP data options, and returns an error with recommendations for data option values, in addition to the arguments from the previous syntax.

    Input Arguments

    collapse all

    Deep-learning-based CHOMP optimizer, specified as a dlCHOMP object.

    Data sample generation options, specified as a dlCHOMPDataOptions object.

    Folder path to store generated data samples, specified as a string scalar or character array.

    Data Types: string | char

    Enable data sampling tips, specified as a logical 1 (true) or 0 (false). When verbose is true, the function stops generating samples when it cannot use the specified data options to generate the desired number of new samples. The function returns an error with recommendations for data option values.

    Output Arguments

    collapse all

    Training samples data set, returned as a dlCHOMPDatastore object.

    Validation samples data set, returned as a dlCHOMPDatastore object.

    Version History

    Introduced in R2024a