Skip to main content

Generate Sales Data

Synopsis

This operator generates an ExampleSet that represents sales data. The number of examples can be specified by the user.

Description

The Generate Sales Data operator generates an ExampleSet that represents sales data. This ExampleSet can be used when you do not have a data set that represents actual sales data. This ExampleSet can be used as a placeholder for such a requirement. This data set has 7 regular attributes and 1 special attribute. The regular attributes are store_id (nominal), customer_id (nominal), product_id (integer), product_category (nominal), date (date), amount (integer) and single_price (real). The special attribute is transaction_id (integer) which is an id attribute. The number of examples in the data set can be set by the number examples parameter. To have a look at this ExampleSet, just run the attached Example Process.

Output

output

The Generate Sales Data operator generates an ExampleSet which is delivered through this port. The meta data is also delivered along with the data.This output is the same as the output of the Retrieve operator.

Parameters

Number examples

This parameter specifies the number of examples to be generated.

Use local random seed

This parameter indicates if a local random seed should be used for randomization. Using the same value of local random seed will produce the same ExampleSet. Changing the value of this parameter changes the way examples are randomized, thus the ExampleSet will have a different set of values.

Local random seed

This parameter specifies the local random seed. This parameter is available only if the use local random seed parameter is set to true.