dataSchema property
A JSON string that represents the schema for an Amazon S3
DataSource. The DataSchema defines the structure
of the observation data in the data file(s) referenced in the
DataSource.
You must provide either the DataSchema or the
DataSchemaLocationS3.
Define your DataSchema as a series of key-value pairs.
attributes and excludedVariableNames have an array
of key-value pairs for their value. Use the following format to define your
DataSchema.
{ "version": "1.0",
"recordAnnotationFieldName": "F1",
"recordWeightFieldName": "F2",
"targetFieldName": "F3",
"dataFormat": "CSV",
"dataFileContainsHeader": true,
"attributes": [
{ "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" } ],
"excludedVariableNames": "F6" }
Implementation
final String? dataSchema;