# OpenViBE forum

The OpenViBE community
 It is currently Sun Sep 23, 2018 11:56 pm

 All times are UTC

 Page 1 of 1 [ 2 posts ]
 Print view Previous topic | Next topic
Author Message
 Post subject: Question Regarding the Graz visualization BoxPosted: Thu Oct 12, 2017 8:16 am

Joined: Thu May 11, 2017 9:37 pm
Posts: 3
Hey guys,

I'd like to use the Graz visualization Box to visualize the output of an LDA classifier. I am using a sigmoid function, so my output lies between -1 and 1. Now I would like the bar to be e.g. for 0.5 half extended to the right and for -0.5 half extended to the left. Testwise sending constant values it seems like any positive number will just extend it all the way to the right while negative numbers extend it all the way to the left. But when I use real data I also sometimes get a less extended bar. But I can't find a connection between the bar length and the numbers I give to the Box.

I have compared with Matrix Display in parallel, so I'm sure which numbers I send.

Can you tell me how the box computes the bar length? Does it somehow 'learn' from the maximum values used? Does it even work with just one output or do I need to give probabilities? (I also tried that, but with no success)

Cheers,
Simon

Top

 Post subject: Re: Question Regarding the Graz visualization BoxPosted: Mon Oct 16, 2017 7:42 am

Joined: Tue Dec 04, 2012 3:53 pm
Posts: 751
Location: INRIA Rennes, FRANCE
Hi Simon, how it roughly works is this,

1) If you give it more than 2 dimensional input, who knows what will happen.
2) If you give it 2-dimensional input, it will convert them to probabilities, i.e. transform them into a range [0,1] so that the two numbers also sum to 1. After this,
it will compute slot2-slot1 as a signed response strength (minus means towards left if I remember right).
3) If you give it 1 dimensional input, it will use that as signed response strengh
4) With the signed response strength at hand, it will add this value to a list of such strengths collected during the trial (it assumes sliding window approach). It will compute an abs(max) of the stored responses during the trial. The blue bar is a mean of the responses buffered divided by that abs(max).
5) When stimulation OVTK_GDF_Feedback_Continuous is received, the collected list and the maximum will be cleared (at the beginning of each new trial).

The idea in the code is that the blue bar is in a sense auto-scaling but in a way that it tries to avoid a situation where the classifier outputs some outlier value and all the rest of the trials would be scaled by this outlier. I realize this scaling might have the effect that its not easy for the user to learn to do high probabilities, as a sequence of [0.7, 0.7, 0.7 ...] will have the same blue bar as a sequence of [0.9 0.9 0.9 ...]

ps. We're happy to hear about better ideas to do the scaling.

Hope this helps,
Jussi

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 2 posts ]

 All times are UTC

#### Who is online

Users browsing this forum: No registered users and 2 guests

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ General    OpenViBE News    Discussion about OpenViBE    Discussion about BCI and related topics    Feature Requests Using OpenViBE components    Acquisition server and drivers    Designer    Boxes OpenViBE scenarios    Scenarios and BCI design    Tutorial scenarios OpenViBE-related development    Help for building the software    Box and application development    Driver development    Kernel development