About saving feature vectors to CSV file

Concerning processing components: filters, file load/save, visualizations, communication ...
Post Reply
atom2004
Posts: 3
Joined: Wed Sep 19, 2012 5:48 pm

About saving feature vectors to CSV file

Post by atom2004 »

Hi,

I want to save feature vectors to CSV file for me to analysis using matlab and data mining softwares.
So I connected the output of the feature aggregator from P300-speller-train-classifier scenarios to a CSV writer as follows
Image
And in this case the feature vector saved are from the target epochs.
However, when I opened the CSV file, it is not a 2-d matrix (epoch X feature) I hoped. Instead, it is a 1-D matrix.
I wonder if there are any thing I can do to convert the 1-D matrix to 2-D or I need to write a customized box to handle this problem.

Thanks in advance!

Best,

Yichuan

jlegeny
Posts: 239
Joined: Tue Nov 02, 2010 8:51 am
Location: Mensia Technologies Paris FR
Contact:

Re: About saving feature vectors to CSV file

Post by jlegeny »

Hello Yichuan,

CVS File Writer indeed writes data as it arrives into a 2D matrix, however the second dimension consists of channels!

If you want to cut the data by epochs, I would suggest calculating the number of vectors in 1 epoch and then slicing the file accordingly in another program.

Cheers
Jozef

amjg92
Posts: 4
Joined: Sun Feb 24, 2013 11:16 am

Re: About saving feature vectors to CSV file

Post by amjg92 »

Did you manage to solve this problem, because I am facing the same one right now If yes can you please give me a set of steps how to do it pls thanks

Post Reply