{
  "id": 1144,
  "title": "I gave up. Maybe this will help.",
  "url": "/competitions/WhatDoYouKnow/discussion/1144",
  "author_name": "",
  "post_date": "2011-12-10T17:52:55.843Z",
  "votes": 1,
  "comment_count": 1,
  "views": 2144,
  "content": "<div style=\"margin:8px; color:#000000; line-height:1.4em; font-family:Arial,Helvetica,sans-serif; font-size:13px; background-color:#ffffff\">\r\n<p>It takes me so long to seperate the user_strength so I gave up. As a stufdent, I don't have that much of time. I have already tried to manipulate my algorithm to do faster calculation. But it still is a very time consuming process. I post it and if anyone\r\n is interested, just copy it. By the, it is in Matlab. Userid is for valid_train and arranged according to the sequence that user id appear in the dataset. Anyone prefer csv can just change file name to csv. Codes are in para.txt and userid is in userid.txt.</p>\r\n<p>Hope you guys can do great.</p>\r\n<p>Bill Wang</p>\r\n<p>&nbsp;</p>\r\n</div>",
  "messages": [
    {
      "id": "7060",
      "postDate": "12/10/2011 17:52:55",
      "content": "<div style=\"margin:8px; color:#000000; line-height:1.4em; font-family:Arial,Helvetica,sans-serif; font-size:13px; background-color:#ffffff\">\r\n<p>It takes me so long to seperate the user_strength so I gave up. As a stufdent, I don't have that much of time. I have already tried to manipulate my algorithm to do faster calculation. But it still is a very time consuming process. I post it and if anyone\r\n is interested, just copy it. By the, it is in Matlab. Userid is for valid_train and arranged according to the sequence that user id appear in the dataset. Anyone prefer csv can just change file name to csv. Codes are in para.txt and userid is in userid.txt.</p>\r\n<p>Hope you guys can do great.</p>\r\n<p>Bill Wang</p>\r\n<p>&nbsp;</p>\r\n</div>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "7062",
      "postDate": "12/10/2011 17:57:50",
      "content": "<p>I don't know why, but files are not attached.<br>\r\nSo code :</p>\r\n<p>data = load('el.txt');<br>\r\ny = data(:,1);<br>\r\nX = data(:,3:end);<br>\r\nuserid = load ('userid.txt');<br>\r\nnum = max(X(:,2));<br>\r\nnum = num&#43;1;<br>\r\nuserid = [userid zeros(length(userid),2)];<br>\r\nquestionid = zeros(num,3);<br>\r\nfor k = 1 :num,<br>\r\nquestionid(k,1) = k-1;<br>\r\nend<br>\r\n[m n] = size(X);<br>\r\ni = 1;<br>\r\nfor k = 1:m,<br>\r\nt = userid(i,1) - X(1,1); <br>\r\nif t == 0,<br>\r\nuserid(i,2) = userid(i,2) &#43; y(1,1);<br>\r\nuserid(i,3) = userid(i,3) &#43; 1;<br>\r\nX = X(2:end,:);<br>\r\ny = y(2:end,:);<br>\r\nend<br>\r\nif t ~= 0,%% is not equal to<br>\r\ni = i&#43;1;<br>\r\nuserid(i,2) = userid(i,2) &#43; y(1,1);<br>\r\nuserid(i,3) = userid(i,3) &#43; 1;<br>\r\nX = X(2:end,:); %% shorten the file and calculate faster<br>\r\ny = y(2:end,:);<br>\r\nend<br>\r\nk = k&#43;1;<br>\r\nend</p>\r\n<p>for i = 1 : num,<br>\r\nfor q = 1 : length(X),<br>\r\nif question(i,1) - X(q,2) == 0,<br>\r\nquestionid(i,2) = question(i,2) &#43; y(q,1);<br>\r\nquestionid(i,3) = question(i,3) &#43; 1;<br>\r\nend<br>\r\nend<br>\r\nend</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 7062,
      "author_name": "",
      "author_url": "",
      "post_date": "12/10/2011 17:57:50",
      "content": "<p>I don't know why, but files are not attached.<br>\r\nSo code :</p>\r\n<p>data = load('el.txt');<br>\r\ny = data(:,1);<br>\r\nX = data(:,3:end);<br>\r\nuserid = load ('userid.txt');<br>\r\nnum = max(X(:,2));<br>\r\nnum = num&#43;1;<br>\r\nuserid = [userid zeros(length(userid),2)];<br>\r\nquestionid = zeros(num,3);<br>\r\nfor k = 1 :num,<br>\r\nquestionid(k,1) = k-1;<br>\r\nend<br>\r\n[m n] = size(X);<br>\r\ni = 1;<br>\r\nfor k = 1:m,<br>\r\nt = userid(i,1) - X(1,1); <br>\r\nif t == 0,<br>\r\nuserid(i,2) = userid(i,2) &#43; y(1,1);<br>\r\nuserid(i,3) = userid(i,3) &#43; 1;<br>\r\nX = X(2:end,:);<br>\r\ny = y(2:end,:);<br>\r\nend<br>\r\nif t ~= 0,%% is not equal to<br>\r\ni = i&#43;1;<br>\r\nuserid(i,2) = userid(i,2) &#43; y(1,1);<br>\r\nuserid(i,3) = userid(i,3) &#43; 1;<br>\r\nX = X(2:end,:); %% shorten the file and calculate faster<br>\r\ny = y(2:end,:);<br>\r\nend<br>\r\nk = k&#43;1;<br>\r\nend</p>\r\n<p>for i = 1 : num,<br>\r\nfor q = 1 : length(X),<br>\r\nif question(i,1) - X(q,2) == 0,<br>\r\nquestionid(i,2) = question(i,2) &#43; y(q,1);<br>\r\nquestionid(i,3) = question(i,3) &#43; 1;<br>\r\nend<br>\r\nend<br>\r\nend</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "7060": "",
    "7062": ""
  },
  "source": "meta"
}