DataSetFetcher

DataSetFetcher

Retrieves the data to be used for training and testing, and uses that data to create an instance of DataSet. Currently limited to fetching from local files. The file reads are done asynchronously. Note: Fetching via URL is coming soon!

Constructor

new DataSetFetcher(nodeLaunchArguments)

Creates an instance of DataSetFetcher.
Parameters:
Name Type Description
nodeLaunchArguments Array.<string> An array of strings, in which the 3rd and 4th are the input and target file paths, respectively. This is written specifically to take the Node launch params (process.argv).
Source:

Methods

Fetch() → {Promise.<DataSet>}

Loads the data asynchronously. Throws if a file path is missing/invalid.
Returns:
Type
Promise.<DataSet>
Source: