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 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:
https://groups.google.com/forum/#!forum/nbkaggle
The Noisebridge neuro hacking dream team has a lot of useful stuff on their reading list:
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 26: Line 19:


https://drive.google.com/open?id=0ByjOj5sb0Oj_UzVxdGpkcTNPV0E
https://drive.google.com/open?id=0ByjOj5sb0Oj_UzVxdGpkcTNPV0E
= Code =
https://github.com/cowlicks/kaggle-seizure-prediction
== reading the data ==
Here is a python function to load a file from the matplotlib file format.
<nowiki>
from scipy.io import loadmat
def load(fn):
    return loadmat(fn, struct_as_record=False)['dataStruct'][0, 0].data
</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)