AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 3.5
 
Describes the data specification of a DataSource.

Inheritance Hierarchy

System.Object
  Amazon.MachineLearning.Model.S3DataSpec

Namespace: Amazon.MachineLearning.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class S3DataSpec : Object

The S3DataSpec type exposes the following members

Constructors

NameDescription
Public Method S3DataSpec()

Properties

NameTypeDescription
Public Property DataLocationS3 System.String Gets and sets the property DataLocationS3.

The location of the data file(s) used by a DataSource. The URI specifies a data file or an Amazon Simple Storage Service (Amazon S3) directory or bucket containing data files.

Public Property DataRearrangement System.String Gets and sets the property DataRearrangement.

Describes the splitting requirement of a Datasource.

Public Property DataSchema System.String Gets and sets the property DataSchema.

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.

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" ] }

Public Property DataSchemaLocationS3 System.String Gets and sets the property DataSchemaLocationS3.

Describes the schema Location in Amazon S3.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5