{
  "id": 7033,
  "title": "Sample code quickstart",
  "url": "/competitions/connectomics/discussion/7033",
  "author_name": "",
  "post_date": "2014-02-10T14:44:17.907Z",
  "votes": null,
  "comment_count": 8,
  "views": 2685,
  "content": "<p>Can someone please post step-by-step instructions for getting started with the sample code and making a submission? Thanks!</p>",
  "messages": [
    {
      "id": "38550",
      "postDate": "02/10/2014 14:44:17",
      "content": "<p>Can someone please post step-by-step instructions for getting started with the sample code and making a submission? Thanks!</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "38560",
      "postDate": "02/10/2014 15:41:32",
      "content": "<p>Hi,</p>\n<p>The sample code contains a README file indicating how to start using it (for MATLAB only):</p>\n<p>The goal of the challenge is to predict whether there is a (directed) connection between neuron i and neuron j in a network of 1000 neurons (self-connections permitted). We provide one hour of recording of the activity of all neurons as time series and the position of the neurons (arranged on a flat surface). The data, which are simulated, reproduce as faithfully as possible neural activity measured with calcium fluorescence imaging of neural cultures.</p>\n<p>The starter kit includes as sample data file from 100 neuron networks, that are substitute for the larger 1000 neuron networks used for validation and testing in the challenge.</p>\n<p>1) FLUORESCENCE = fluorescence_mockvalid.csv and fluorescence_mocktest.csv: comma separated files including time series of neural activity, each row representing a sample and each column a neuron. Signal is sampled at 20ms intervals.<br>2) NETWORK POSITIONS = networkPositions_mockvalid.csv and networkPositions_mocktest.csv: comma separated files, each row representing a neuron. First column is the X position and second column the Y position. Neurons span a 1mm2 square area.<br>3) NETWORK = network_mockvalid.csv and network_mocktest.csv: comma separated files representing the network architecture. Each row is a connection. The column structure is of the form I,J,W denoting a connection from I to J with weight W. Connections with positive weight (usually 1) are present. Pairs that are absent or have a weight -1 are inexistent or blocked in the simulations (which is the same thing as far as this challenge is concerned).</p>\n<p>All data have the same three files, prefixed with fluorescence_, networkPositions_, and network_. The postfix &quot;mockvalid&quot; or &quot;muckiest&quot; is the network name. When you substitute the sample data for the challenge data, this should be replaced.</p>\n<p>The main entry point of the starter kit is:<br>&gt; challengeMain;</p>\n<p>The script takes a few minutes to run on the sample network of 100 neurons and a few hours on the actual validation and test networks of 1000 neurons.<br>It performs the following functions:<br>1) Load the fluorescence file as a matrix F, neurons in columns; each line is a time sample.<br>2) Perform various steps to compute scores for neuron i -&gt; neuron j using the GTE algorithm, from Stetter, O., Battaglia, D., Soriano, J. &amp; Geisel, T. Model-free reconstruction of excitatory neuronal connectivity from calcium imaging signals. PLoS Comput Biol 8, e1002653 (2012). This code also produces graphs similar to those of the paper.<br>The resulting &quot;scores&quot; matrix is a matrix N x N, N being the number of neurons, each entry (i, j) indicating the &quot;confidence&quot; that neuron i -&gt; neuron j.<br>3) Writes the scores in Kaggle submission format as a 2-column csv file<br>NET_neuronI_neuronJ Strength indicating the &quot;confidence&quot; that neuron i -&gt; neuron j.</p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n<p>Also in the data section you will find a sample submission that you can use to test how to submit a file:</p>\n<p><a href=\"https://www.kaggle.com/c/connectomics/data\">https://www.kaggle.com/c/connectomics/data</a></p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "38563",
      "postDate": "02/10/2014 16:30:20",
      "content": "<p>&nbsp;</p>\n<p><code><em>Source: <a href=\"http://connectomics.chalearn.org/\" target=\"_blank\">http://connectomics.chalearn.org</a></em><br><em> <strong>&nbsp;</strong></em></code></p>\n<p>&nbsp;</p>\n<p><code><em><strong>Javier Orlandi, Mehreen Saeed, Isabelle Guyon</strong></em><br></code></p>\n<p>&nbsp;</p>\n<p><em>Just wanted to pay my compliments to the authors of the sample code and visualizations. &nbsp;Incredibly well documented and thorough work. &nbsp;Really a joy to run through. Also even when I ran it on a mac it shot me a warning said I needed windows for the movie!! &nbsp;Thats just dotting I's and crossing T's above and beyond the call of duty.</em></p>\n<p>&nbsp;</p>\n<p><em>I hope you guys get what your looking for out of this competition.. &nbsp;</em></p>\n<p>&nbsp;</p>\n<p><em>-Tim</em></p>\n<p>&nbsp;</p>\n<p><em>&nbsp;</em></p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "38622",
      "postDate": "02/11/2014 09:02:10",
      "content": "<p>Is the code compatible with Octave?&nbsp;</p>\n<p>I'm currently getting this error:</p>\n<p><code>octave:1&gt; challengeMain<br>error: @randomScore: no function and no method found<br>error: evaluating argument list element number 1<br>error: called from:<br>error: MatlabSampleCode/challengeMain.m at line 33, column 16</code></p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "38651",
      "postDate": "02/11/2014 20:20:57",
      "content": "<p>The code was not tested with Octave. But Octave seems to have similar function handles as Matlab. Your problem seems more like a path problem. You may want to check whether randomScore is found in your path by typing:</p>\n<p>&gt; which randomScore</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "38825",
      "postDate": "02/14/2014 19:37:32",
      "content": "<p>Thanks for the help, Javier. Here are a few more pointers for others getting started (others can feel free to correct me, I did some of this a few days ago and might be forgetting steps):</p>\n<ol>\n<li><span style=\"line-height: 1.4\">Download the data (valid.tgz and test.tgz), uncompress it, and put it in the SampleCode/data directory</span></li>\n<li><span style=\"line-height: 1.4\">In challengeFastBaseline.m on line 29, change mockvalid and mocktest to valid and test.</span></li>\n<li><span style=\"line-height: 1.4\">Open up matlab and run challengeFastBaseline;</span></li>\n<li><span style=\"line-height: 1.4\">This will produce a file Correlation_valid_test_XX.csv with 2000001 rows. Upload this as your submission to Kaggle.</span></li>\n</ol>\n<p><span style=\"line-height: 1.4\">&nbsp;</span></p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "39140",
      "postDate": "02/20/2014 14:39:21",
      "content": "<p>any updates on the python sample code?</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "41808",
      "postDate": "04/12/2014 18:29:35",
      "content": "<p>Hi There, I really appreciate your response but in my case when i change the values on 29th row in challengeFastBaseline.m&nbsp;as prescribed ,and on running challengeFastBaseline&nbsp;the I am getting Memory Error.any suggestions.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "42294",
      "postDate": "04/18/2014 06:49:00",
      "content": "<p>@Abhishek: See&nbsp;https://www.kaggle.com/c/connectomics/forums/t/7698/python-scripts-for-correlation-benchmarks/42293#post42293 :)</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 38560,
      "author_name": "orlandi",
      "author_url": "",
      "post_date": "02/10/2014 15:41:32",
      "content": "<p>Hi,</p>\n<p>The sample code contains a README file indicating how to start using it (for MATLAB only):</p>\n<p>The goal of the challenge is to predict whether there is a (directed) connection between neuron i and neuron j in a network of 1000 neurons (self-connections permitted). We provide one hour of recording of the activity of all neurons as time series and the position of the neurons (arranged on a flat surface). The data, which are simulated, reproduce as faithfully as possible neural activity measured with calcium fluorescence imaging of neural cultures.</p>\n<p>The starter kit includes as sample data file from 100 neuron networks, that are substitute for the larger 1000 neuron networks used for validation and testing in the challenge.</p>\n<p>1) FLUORESCENCE = fluorescence_mockvalid.csv and fluorescence_mocktest.csv: comma separated files including time series of neural activity, each row representing a sample and each column a neuron. Signal is sampled at 20ms intervals.<br>2) NETWORK POSITIONS = networkPositions_mockvalid.csv and networkPositions_mocktest.csv: comma separated files, each row representing a neuron. First column is the X position and second column the Y position. Neurons span a 1mm2 square area.<br>3) NETWORK = network_mockvalid.csv and network_mocktest.csv: comma separated files representing the network architecture. Each row is a connection. The column structure is of the form I,J,W denoting a connection from I to J with weight W. Connections with positive weight (usually 1) are present. Pairs that are absent or have a weight -1 are inexistent or blocked in the simulations (which is the same thing as far as this challenge is concerned).</p>\n<p>All data have the same three files, prefixed with fluorescence_, networkPositions_, and network_. The postfix &quot;mockvalid&quot; or &quot;muckiest&quot; is the network name. When you substitute the sample data for the challenge data, this should be replaced.</p>\n<p>The main entry point of the starter kit is:<br>&gt; challengeMain;</p>\n<p>The script takes a few minutes to run on the sample network of 100 neurons and a few hours on the actual validation and test networks of 1000 neurons.<br>It performs the following functions:<br>1) Load the fluorescence file as a matrix F, neurons in columns; each line is a time sample.<br>2) Perform various steps to compute scores for neuron i -&gt; neuron j using the GTE algorithm, from Stetter, O., Battaglia, D., Soriano, J. &amp; Geisel, T. Model-free reconstruction of excitatory neuronal connectivity from calcium imaging signals. PLoS Comput Biol 8, e1002653 (2012). This code also produces graphs similar to those of the paper.<br>The resulting &quot;scores&quot; matrix is a matrix N x N, N being the number of neurons, each entry (i, j) indicating the &quot;confidence&quot; that neuron i -&gt; neuron j.<br>3) Writes the scores in Kaggle submission format as a 2-column csv file<br>NET_neuronI_neuronJ Strength indicating the &quot;confidence&quot; that neuron i -&gt; neuron j.</p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n<p>Also in the data section you will find a sample submission that you can use to test how to submit a file:</p>\n<p><a href=\"https://www.kaggle.com/c/connectomics/data\">https://www.kaggle.com/c/connectomics/data</a></p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 38563,
      "author_name": "scharf",
      "author_url": "",
      "post_date": "02/10/2014 16:30:20",
      "content": "<p>&nbsp;</p>\n<p><code><em>Source: <a href=\"http://connectomics.chalearn.org/\" target=\"_blank\">http://connectomics.chalearn.org</a></em><br><em> <strong>&nbsp;</strong></em></code></p>\n<p>&nbsp;</p>\n<p><code><em><strong>Javier Orlandi, Mehreen Saeed, Isabelle Guyon</strong></em><br></code></p>\n<p>&nbsp;</p>\n<p><em>Just wanted to pay my compliments to the authors of the sample code and visualizations. &nbsp;Incredibly well documented and thorough work. &nbsp;Really a joy to run through. Also even when I ran it on a mac it shot me a warning said I needed windows for the movie!! &nbsp;Thats just dotting I's and crossing T's above and beyond the call of duty.</em></p>\n<p>&nbsp;</p>\n<p><em>I hope you guys get what your looking for out of this competition.. &nbsp;</em></p>\n<p>&nbsp;</p>\n<p><em>-Tim</em></p>\n<p>&nbsp;</p>\n<p><em>&nbsp;</em></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 38622,
      "author_name": "tf6452",
      "author_url": "",
      "post_date": "02/11/2014 09:02:10",
      "content": "<p>Is the code compatible with Octave?&nbsp;</p>\n<p>I'm currently getting this error:</p>\n<p><code>octave:1&gt; challengeMain<br>error: @randomScore: no function and no method found<br>error: evaluating argument list element number 1<br>error: called from:<br>error: MatlabSampleCode/challengeMain.m at line 33, column 16</code></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 38651,
      "author_name": "iguyon",
      "author_url": "",
      "post_date": "02/11/2014 20:20:57",
      "content": "<p>The code was not tested with Octave. But Octave seems to have similar function handles as Matlab. Your problem seems more like a path problem. You may want to check whether randomScore is found in your path by typing:</p>\n<p>&gt; which randomScore</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 38825,
      "author_name": "sethflaxman",
      "author_url": "",
      "post_date": "02/14/2014 19:37:32",
      "content": "<p>Thanks for the help, Javier. Here are a few more pointers for others getting started (others can feel free to correct me, I did some of this a few days ago and might be forgetting steps):</p>\n<ol>\n<li><span style=\"line-height: 1.4\">Download the data (valid.tgz and test.tgz), uncompress it, and put it in the SampleCode/data directory</span></li>\n<li><span style=\"line-height: 1.4\">In challengeFastBaseline.m on line 29, change mockvalid and mocktest to valid and test.</span></li>\n<li><span style=\"line-height: 1.4\">Open up matlab and run challengeFastBaseline;</span></li>\n<li><span style=\"line-height: 1.4\">This will produce a file Correlation_valid_test_XX.csv with 2000001 rows. Upload this as your submission to Kaggle.</span></li>\n</ol>\n<p><span style=\"line-height: 1.4\">&nbsp;</span></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 39140,
      "author_name": "abhishek",
      "author_url": "",
      "post_date": "02/20/2014 14:39:21",
      "content": "<p>any updates on the python sample code?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 41808,
      "author_name": "deepakchaturvedi1",
      "author_url": "",
      "post_date": "04/12/2014 18:29:35",
      "content": "<p>Hi There, I really appreciate your response but in my case when i change the values on 29th row in challengeFastBaseline.m&nbsp;as prescribed ,and on running challengeFastBaseline&nbsp;the I am getting Memory Error.any suggestions.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 42294,
      "author_name": "glouppe",
      "author_url": "",
      "post_date": "04/18/2014 06:49:00",
      "content": "<p>@Abhishek: See&nbsp;https://www.kaggle.com/c/connectomics/forums/t/7698/python-scripts-for-correlation-benchmarks/42293#post42293 :)</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "38550": "",
    "38560": "",
    "38563": "",
    "38622": "",
    "38651": "",
    "38825": "",
    "39140": "",
    "41808": "",
    "42294": ""
  },
  "source": "meta"
}