Using Collection Data Values

I want to manipulate matrices which are outputs of "word vector apply" node after word2vec. But I couldn't manage to do it. I can't convert to float and reading as a 2d numpy array. I want to calculate mean or mod to find the document vector?

What can I do?

 

Thank you

Hi kktsch,

calculating the mean of all vectors which are outputted by the Word Vector Apply nodes can be directly done by the node itself. Just check the checkbox in the node configuration.

If you want to calculate something else, you could first split the collection of vectors using the Split Collection Column node. Then use a Chunk Loop with chunk size one to get all vectors for one specific document. Next, a Transpose and a GroupBy to calculate what you want.

Cheers

David