Discover this year's submissions to the Dataiku Frontrunner Awards and give kudos to your favorite use cases and success stories!READ MORE

vector variable example

Solved!
n0thing233
Level 3
vector variable example

Hi can I get an example of vector variables?



There is nothing in the documentation here :

https://doc.dataiku.com/dss/latest/machine-learning/features-handling/vectors.html



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?



Thanks.



 

0 Kudos
1 Solution
nomont
Dataiker Alumni
Hi,

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

View solution in original post

0 Kudos
3 Replies
nomont
Dataiker Alumni
Hi,

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
Jason
Level 3

I know this is several years old, but the documentation still has not been updated, so I'm bouncing this back to the top.  It would also be a nice feature to accept JSON strings that include key value pairs, and simply ignore the keys.

0 Kudos
CoreyS
Community Manager
Community Manager

Hi @Jason  please feel free to utilize the Product Ideas board. The Product Ideas board is here to let you share and exchange your ideas on how to improve Dataiku. Here are some resources to help get you started:

How to suggest Dataiku ideas 
Participating on the Product Ideas board 
Suggest an idea

 

I hope this helps!

Looking for more resources to help you use Dataiku effectively and upskill your knowledge? Check out these great resources: Dataiku Academy | Documentation | Knowledge Base

A reply answered your question? Mark as ‘Accepted Solution’ to help others like you!
0 Kudos

Labels

?
Labels (2)
A banner prompting to get Dataiku