Editing Kaggle

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
Noisebridge Kaggle team!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
We're doing this kaggle comp
We use this wiki to archive information. We use this google group to communicate with each other:
The Noisebridge neuro hacking dream team has a lot of useful stuff on their reading list:
Here is a link to the competition:
Line 30: Line 23:
= Code =
= Code =
How should we organize our code? A github organization?
== reading the data ==  
== reading the data ==  
Line 43: Line 36:
import pandas as pd
from scipy.io import loadmat
def mat_to_pandas(path):
    mat = loadmat(path)
    names = mat['dataStruct'].dtype.names
    ndata = {n: mat['dataStruct'][n][0, 0] for n in names}
    sequence = -1
    if 'sequence' in names:
        sequence = mat['dataStruct']['sequence']
    return pd.DataFrame(ndata['data'], columns=ndata['channelIndices'][0]), sequence
via https://www.kaggle.com/zfturbo/melbourne-university-seizure-prediction/seizure-boost-0-6-lb/code

Please note that all contributions to Noisebridge are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Noisebridge:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)