Advanced Designer Learning Path is now live! Read More

vector variable example

Level 3
vector variable example

Hi can I get an example of vector variables?

There is nothing in the documentation here :

what should be the format? what is the default delimiter?

I have comma delimited text and got this error during training:

 'Invalid vector data in column 'segments': No JSON object could be decoded'

So it looks like it should be JSON format.But can I get an example?



0 Kudos
1 Reply
Dataiker Alumni

Indeed, the documentation has to be completed.

- It works only on vectors of numerical values
- The vectors should be detected as “array” in prepare steps.
- The format of an array is a string like "[ 1.111 , 2.222, 3]" (json format). To create an array from columns, you can use a formula to concatenate them.

Nicolas Omont
0 Kudos
Labels (2)
A banner prompting to get Dataiku DSS