Preparing Data

Before using ModelArts to build a predictive analytics model, upload data to OBS.

Uploading Data to OBS

This operation uses the OBS client to upload data. For more information about how to create a bucket and upload files, see Creating a Bucket and Uploading a File.

Perform the following operations to import data to the dataset for model training and building.

  1. Log in to OBS Console and create a bucket
  2. Upload the local data to the OBS bucket. If you have a large amount of data, you are advised to use OBS Browser+ to upload data or folders. The uploaded data must meet the dataset requirements of the ExeML project.

Requirements on Datasets

Requirements for Files Uploaded to OBS

The OBS path of the predictive analytics projects must comply with the following rules:

Predictive Analytics File Example

Example: Predict whether customers would be interested in a time deposit based on their characteristics.
Table 1 Parameters and meanings of data sources

Parameter

Meaning

Type

Description

attr_1

Age

Integer

Age of the customer

attr_2

Occupation

String

Occupation of the customer

attr_3

Marital status

String

Marital status of the customer

attr_4

Education status

String

Education status of the customer

attr_5

Real estate

String

Real estate of the customer

attr_6

Loan

String

Loan of the customer

attr_7

Deposit

String

Deposit of the customer

Table 2 Sample data

attr_1

attr_2

attr_3

attr_4

attr_5

attr_6

attr_7

58

management

married

tertiary

yes

no

no

44

technician

single

secondary

yes

no

no

33

entrepreneur

married

secondary

yes

yes

no

47

blue-collar

married

unknown

yes

no

no

33

unknown

single

unknown

no

no

no

35

management

married

tertiary

yes

no

no