C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

List of all members
CSVFeatureManager Class Reference

Methods of the class to preprocess data represented in the CSV format. More...

Class Declaration

Constructor & Destructor Documentation

CSVFeatureManager ( )
inline

Default constructor

Member Function Documentation

void addModifier ( const ModifierIface modifier)
inline

Adds a simple feature modifier

Parameters
[in]modifierThe modifier
CSVFeatureManager& addModifier ( const features::FeatureIdCollectionIfacePtr &  featureIds,
const modifiers::csv::FeatureModifierIfacePtr &  modifier,
services::Status *  status = NULL 
)
inline

Adds extended feature modifier

Parameters
[in]featureIdsThe identifiers of the features to be modified
[in]modifierThe feature modifier
[out]status(optional) The pointer to status object
Returns
Reference to itself
void finalize ( DataSourceDictionary dictionary)
inline

Finalizes CSV data parsing

Parameters
[in]dictionaryPointer to the dictionary
size_t getNumericTableNumberOfColumns ( ) const
inline

Gets number of columns which must be allocated in numeric table

Returns
The number of columns in numeric table
virtual void parseRowAsDictionary ( char *  rawRowData,
size_t  rawDataSize,
DataSourceDictionary dictionary 
)
inlinevirtual

Parses a string that represents a feature vector and fills provided data source dictionary

Parameters
[in]rawRowDataArray of characters with the string that represents the feature vector
[in]rawDataSizeSize of the rawRowData array
[in]dictionaryPointer to the dictionary

Implements StringRowFeatureManagerIface.

void parseRowAsHeader ( char *  rawRowData,
size_t  rawDataSize 
)
inline

Parses a string that represents header of CSV data

Parameters
[in]rawRowDataArray of characters with the string that represents the feature vector
[in]rawDataSizeSize of the rawRowData array
virtual void parseRowIn ( char *  rawRowData,
size_t  rawDataSize,
DataSourceDictionary dictionary,
NumericTable nt,
size_t  ntRowIndex 
)
inlinevirtual

Parses a string that represents a feature vector and converts it into a numeric representation

Parameters
[in]rawRowDataArray of characters with the string that represents the feature vector
[in]rawDataSizeSize of the rawRowData array
[in]dictionaryPointer to the dictionary
[out]ntPointer to a Numeric Table to store the result of parsing
[in]ntRowIndexPosition in the Numeric Table at which to store the result of parsing

Implements StringRowFeatureManagerIface.

void setDelimiter ( char  delimiter)
inline

Sets a new character as a delimiter for parsing CSV data (default ',')

services::Status setFeatureDetailsFromDictionary ( DataSourceDictionary dictionary)
inline

Sets information about features from the given dictionary

Parameters
dictionaryThe data source dictionary

The documentation for this class was generated from the following file:

For more complete information about compiler optimizations, see our Optimization Notice.