Editing Kaggle

Jump to navigation Jump to 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 publish the changes below to finish undoing the edit.

Latest revision Your text
Line 2: Line 2:


We use this wiki to archive information. We use this google group to communicate with each other:
We use this wiki to archive information. We use this google group to communicate with each other:
https://groups.google.com/forum/#!forum/nbkaggle
https://groups.google.com/forum/#!forum/nbkaggle


The Noisebridge neuro hacking dream team has a lot of useful stuff on their reading list:
Here is a link to the competition:
https://noisebridge.net/wiki/DreamTeam/Reading#Seizure_Detection


Here is a link to the competition:
https://www.kaggle.com/c/melbourne-university-seizure-prediction/data
https://www.kaggle.com/c/melbourne-university-seizure-prediction/data


Line 30: Line 29:
= Code =
= Code =


https://github.com/cowlicks/kaggle-seizure-prediction
How should we organize our code? A github organization?


== reading the data ==  
== reading the data ==  
Line 43: Line 42:


</nowiki>
</nowiki>
<nowiki>
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
</nowiki>
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)