{"action":"created","issue":{"url":"https://api.github.com/repos/BrainTech/openbci/issues/8","repository_url":"https://api.github.com/repos/BrainTech/openbci","labels_url":"https://api.github.com/repos/BrainTech/openbci/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/BrainTech/openbci/issues/8/comments","events_url":"https://api.github.com/repos/BrainTech/openbci/issues/8/events","html_url":"https://github.com/BrainTech/openbci/pull/8","id":149516596,"number":8,"title":"P300test md","user":{"login":"mdovgialo","id":6193380,"avatar_url":"https://avatars.githubusercontent.com/u/6193380?v=3","gravatar_id":"","url":"https://api.github.com/users/mdovgialo","html_url":"https://github.com/mdovgialo","followers_url":"https://api.github.com/users/mdovgialo/followers","following_url":"https://api.github.com/users/mdovgialo/following{/other_user}","gists_url":"https://api.github.com/users/mdovgialo/gists{/gist_id}","starred_url":"https://api.github.com/users/mdovgialo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdovgialo/subscriptions","organizations_url":"https://api.github.com/users/mdovgialo/orgs","repos_url":"https://api.github.com/users/mdovgialo/repos","events_url":"https://api.github.com/users/mdovgialo/events{/privacy}","received_events_url":"https://api.github.com/users/mdovgialo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-19T16:44:55Z","updated_at":"2016-04-21T15:54:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/BrainTech/openbci/pulls/8","html_url":"https://github.com/BrainTech/openbci/pull/8","diff_url":"https://github.com/BrainTech/openbci/pull/8.diff","patch_url":"https://github.com/BrainTech/openbci/pull/8.patch"},"body":"Only discussion for now, don't merge...\r\nAdded P300 classifier, added tester peer for p300 classifiers - it sends synthetic signals with p300 (gaussians) burried in noise, simulating N-fields of p300 gui. While sending targets it sends nontarget tags too, simulating  highlights of other fields, while focus of the \"person\" is on target field. Then it saves statistics such as - selected field (focus), how many targets were sent for selection of that field and response from classifier\r\n\r\nFor now there is no jitter, it can be added quite easily, and I thinking about adding possibility to send real epochs instead of simulated gaussians, and noise in between.\r\n\r\nMine classifier with some quite high noise makes no mistakes while needing 2-4 averages, that's strange.\r\n\r\nYou can test it yourself, if you use attached data for training. (P300 offline calibration scenario)\r\n\r\nAnd then run P300 online synthetic test for testing and saving statistics. Like those:\r\n[synthetic_results_dec_stop2.txt](https://github.com/BrainTech/openbci/files/226372/synthetic_results_dec_stop2.txt)\r\n\r\n\r\n\r\n\r\n[test1.obci.raw.zip](https://github.com/BrainTech/openbci/files/226361/test1.obci.raw.zip)\r\n\r\nWIP any coments are welcome.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/BrainTech/openbci/issues/comments/212984561","html_url":"https://github.com/BrainTech/openbci/pull/8#issuecomment-212984561","issue_url":"https://api.github.com/repos/BrainTech/openbci/issues/8","id":212984561,"user":{"login":"mdovgialo","id":6193380,"avatar_url":"https://avatars.githubusercontent.com/u/6193380?v=3","gravatar_id":"","url":"https://api.github.com/users/mdovgialo","html_url":"https://github.com/mdovgialo","followers_url":"https://api.github.com/users/mdovgialo/followers","following_url":"https://api.github.com/users/mdovgialo/following{/other_user}","gists_url":"https://api.github.com/users/mdovgialo/gists{/gist_id}","starred_url":"https://api.github.com/users/mdovgialo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdovgialo/subscriptions","organizations_url":"https://api.github.com/users/mdovgialo/orgs","repos_url":"https://api.github.com/users/mdovgialo/repos","events_url":"https://api.github.com/users/mdovgialo/events{/privacy}","received_events_url":"https://api.github.com/users/mdovgialo/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T15:54:30Z","updated_at":"2016-04-21T15:54:30Z","body":"Looks like classifier works best with sklearn 0.17 (ubuntu 15.10 has older, can be upgraded by pip).\r\n\r\nTester work quite well. You can use this script to prepare some EEG recording for playback though synthetic_generator. (Launch in commandline with adress to recording ex: python prepare_signal.py ./dataset/test.obci\r\n\r\nfilename without .raw or .xml\r\n\r\nAccepted tag format:\r\n<tag channelNumber=\"-1\" length=\"0.09999990463256836\" name=\"blink\" position=\"2.58203125\"><index>0</index><target>1</target></tag>\r\nwhen index==target epochs are TARGETS.\r\nEpochs will be cut by 0.2 second baseline before tag and 0.5 seconds after tag.\r\nIn working directory files:\r\n\r\n- targets.npy\r\n- nontargets.npy\r\n- meta.json\r\n\r\nshould appear. You should provide path to them in the scenario settings of the synthetic stimulator.\r\n\r\n[prepare_signal.py.txt](https://github.com/BrainTech/openbci/files/230259/prepare_signal.py.txt)\r\n\r\n\r\n"}}