About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Last updated: Feb 11, 2025
The User Input node provides an easy way to create synthetic data—either from
scratch or by altering existing data. This is useful, for example, when you want to create a test
dataset for modeling.
Example
node = stream.create("userinput", "My node") node.setPropertyValue("names", ["test1", "test2"]) node.setKeyedPropertyValue("data", "test1", "2, 4, 8") node.setKeyedPropertyValue("custom_storage", "test1", "Integer") node.setPropertyValue("data_mode", "Ordered")
properties |
Data type | Property description |
---|---|---|
|
||
|
Structured slot that sets or returns a list of field names generated by the node. | |
|
|
Keyed slot that sets or returns the storage for a field. |
|
|
If is specified, records are generated for each combination of set
values and min/max values. The number of records generated is equal to the product of the number of
values in each field. If is specified, one value is taken from each column
for each record in order to generate a row of data. The number of records generated is equal to the
largest number values associated with a field. Any fields with fewer data values will be padded with
null values. |
Was the topic helpful?
0/1000