{
  "id": 343912,
  "title": "\"token\" output always the same",
  "url": "/competitions/ai-village-ctf/discussion/343912",
  "author_name": "",
  "post_date": "2022-08-12T23:42:56.861138400Z",
  "votes": 6,
  "comment_count": 11,
  "views": 0,
  "content": "<p>Thanks for being so responsive to our questions!  Here's another one:</p>\n<p>For the \"token\" challenge, no matter what my input is, I always get the output:</p>\n<p>{\"output\": 0.0175}</p>\n<p>(unless there's an error).</p>\n<p>Is that because I just haven't figured out what to do yet? (so that's expected)? Or should the output be different for different line inputs?</p>",
  "messages": [
    {
      "id": "1896576",
      "postDate": "08/12/2022 23:42:56",
      "content": "<p>Thanks for being so responsive to our questions!  Here's another one:</p>\n<p>For the \"token\" challenge, no matter what my input is, I always get the output:</p>\n<p>{\"output\": 0.0175}</p>\n<p>(unless there's an error).</p>\n<p>Is that because I just haven't figured out what to do yet? (so that's expected)? Or should the output be different for different line inputs?</p>",
      "rawMarkdown": "Thanks for being so responsive to our questions!  Here's another one:\n\nFor the \"token\" challenge, no matter what my input is, I always get the output:\n\n{\"output\": 0.0175}\n\n(unless there's an error).\n\nIs that because I just haven't figured out what to do yet? (so that's expected)? Or should the output be different for different line inputs?",
      "votes": null
    },
    {
      "id": "1896579",
      "postDate": "08/12/2022 23:51:58",
      "content": "<p>Keep trying 😉</p>",
      "rawMarkdown": "Keep trying 😉",
      "votes": null
    },
    {
      "id": "1896585",
      "postDate": "08/13/2022 00:02:54",
      "content": "<p>This challenge is confusing to me too (because i always see <code>{\"output\": 0.0175}</code>). </p>\n<p>Just to confirm <a href=\"https://www.kaggle.com/lucasjt\" target=\"_blank\">@lucasjt</a> , in this challenge the only thing we can do is choose two numbers <code>X, Y</code>? And these numbers are between 1 and <code>len(test.csv) = 1973</code> inclusive? (The file test.csv rows are indexed with 0 thru 1972, but it appears that line numbers need to be 1 thru 1973 to avoid error.)</p>\n<p>EDIT: changed 1758 to 1973 to avoid misleading people.</p>\n<pre><code>data = json.dumps(\n    {\n        \"line1\": X, \n        \"line2\": Y, \n    }\n)\n</code></pre>",
      "rawMarkdown": "This challenge is confusing to me too (because i always see `{\"output\": 0.0175}`). \n\nJust to confirm @lucasjt , in this challenge the only thing we can do is choose two numbers `X, Y`? And these numbers are between 1 and `len(test.csv) = 1973` inclusive? (The file test.csv rows are indexed with 0 thru 1972, but it appears that line numbers need to be 1 thru 1973 to avoid error.)\n\nEDIT: changed 1758 to 1973 to avoid misleading people.\n\n    data = json.dumps(\n        {\n            \"line1\": X, \n            \"line2\": Y, \n        }\n    )",
      "votes": null
    },
    {
      "id": "1896625",
      "postDate": "08/13/2022 02:05:31",
      "content": "<p>Yup, that’s right. </p>",
      "rawMarkdown": "Yup, that’s right.",
      "votes": null
    },
    {
      "id": "1899858",
      "postDate": "08/15/2022 14:44:13",
      "content": "<p>You have to delete the raw lines in the actual file on the disk, not the corresponding rows in the Dataframe.<br>\nI am sorry, if this is more sharing then allowed. But as  <a href=\"https://www.kaggle.com/lucasjt\" target=\"_blank\">@lucasjt</a>  basically agreed to \"numbers need to be 1 thru 1759\" with \"Yup, that’s right.\", that would distract people even more from the already (intended, I guess) confusing problem description.</p>",
      "rawMarkdown": "You have to delete the raw lines in the actual file on the disk, not the corresponding rows in the Dataframe.\nI am sorry, if this is more sharing then allowed. But as  @lucasjt  basically agreed to \"numbers need to be 1 thru 1759\" with \"Yup, that’s right.\", that would distract people even more from the already (intended, I guess) confusing problem description.",
      "votes": null
    },
    {
      "id": "1900091",
      "postDate": "08/15/2022 17:35:05",
      "content": "<p><a href=\"https://www.kaggle.com/cepheidq\" target=\"_blank\">@cepheidq</a> <em>tokenizer reads from the file at ./static/token/test.csv</em><br>\nBut it seems to me that this is wrong directory, or at least it does not exist </p>",
      "rawMarkdown": "cepheidq *tokenizer reads from the file at ./static/token/test.csv*\nBut it seems to me that this is wrong directory, or at least it does not exist",
      "votes": null
    },
    {
      "id": "1900118",
      "postDate": "08/15/2022 18:00:01",
      "content": "<p><a href=\"https://www.kaggle.com/cepheidq\" target=\"_blank\">@cepheidq</a> The raw file and the rows in the dataframe are the same thing. The only confusing part of my question and Joe's answer is the number 1759. So I've updated my question to use the correct number (so as not to confuse people). When we read <code>df = pd.read_csv('test.csv',quoting=3)</code> then the shape of <code>df</code> is <code>(1973,2)</code> and there are <code>1974</code> lines on disk. The first line on disk is the header and then each line thereafter on disk corresponds to one row in the dataframe.</p>",
      "rawMarkdown": "cepheidq The raw file and the rows in the dataframe are the same thing. The only confusing part of my question and Joe's answer is the number 1759. So I've updated my question to use the correct number (so as not to confuse people). When we read `df = pd.read_csv('test.csv',quoting=3)` then the shape of `df` is `(1973,2)` and there are `1974` lines on disk. The first line on disk is the header and then each line thereafter on disk corresponds to one row in the dataframe.",
      "votes": null
    },
    {
      "id": "1900123",
      "postDate": "08/15/2022 18:06:25",
      "content": "<p><a href=\"https://www.kaggle.com/druggist\" target=\"_blank\">@druggist</a> that is the location of the file that the server API uses. We should ignore that full directory path. We can view the same file <code>test.csv</code> by downloading it from the competitions dataset.</p>",
      "rawMarkdown": "druggist that is the location of the file that the server API uses. We should ignore that full directory path. We can view the same file `test.csv` by downloading it from the competitions dataset.",
      "votes": null
    },
    {
      "id": "1901276",
      "postDate": "08/16/2022 14:44:21",
      "content": "<p>Yeah, unable to make any progress even when getting rid of the lines that should definitely affect parsing of the file. Zero feed back at all. Trying up to -3/+3 just in case they're counting differently, or changing the index when the first line gets deleted. This one is very uninformative. </p>",
      "rawMarkdown": "Yeah, unable to make any progress even when getting rid of the lines that should definitely affect parsing of the file. Zero feed back at all. Trying up to -3/+3 just in case they're counting differently, or changing the index when the first line gets deleted. This one is very uninformative.",
      "votes": null
    },
    {
      "id": "1918084",
      "postDate": "08/29/2022 09:57:48",
      "content": "<p><a href=\"https://www.kaggle.com/lucasjt\" target=\"_blank\">@lucasjt</a> Hi do you mean the range is [1, 1973] or [1, 1758]? Thanks!</p>",
      "rawMarkdown": "lucasjt Hi do you mean the range is [1, 1973] or [1, 1758]? Thanks!",
      "votes": null
    },
    {
      "id": "1918488",
      "postDate": "08/29/2022 15:58:15",
      "content": "<p>For each of the two numbers you must pick, the range is <code>[1,1973]</code> inclusive. This is because there are 1974 lines in the file on disk and we do not want to remove the first header line which is referred to as line 0. (And there is no point picking a number 1974 or higher).</p>\n<p>Furthermore if you read in the file as a CSV (to view it etc), you must use <code>df = pd.read_csv('test.csv',quoting=3)</code> so that Pandas processes the quotation symbols correctly and produces a dataframe of length 1973.</p>",
      "rawMarkdown": "For each of the two numbers you must pick, the range is `[1,1973]` inclusive. This is because there are 1974 lines in the file on disk and we do not want to remove the first header line which is referred to as line 0. (And there is no point picking a number 1974 or higher).\n\nFurthermore if you read in the file as a CSV (to view it etc), you must use `df = pd.read_csv('test.csv',quoting=3)` so that Pandas processes the quotation symbols correctly and produces a dataframe of length 1973.",
      "votes": null
    },
    {
      "id": "1919061",
      "postDate": "08/30/2022 05:12:47",
      "content": "<p>Thanks so much for the details!!</p>",
      "rawMarkdown": "Thanks so much for the details!!",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1896579,
      "author_name": "lucasjt",
      "author_url": "",
      "post_date": "08/12/2022 23:51:58",
      "content": "<p>Keep trying 😉</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1896585,
      "author_name": "cdeotte",
      "author_url": "",
      "post_date": "08/13/2022 00:02:54",
      "content": "<p>This challenge is confusing to me too (because i always see <code>{\"output\": 0.0175}</code>). </p>\n<p>Just to confirm <a href=\"https://www.kaggle.com/lucasjt\" target=\"_blank\">@lucasjt</a> , in this challenge the only thing we can do is choose two numbers <code>X, Y</code>? And these numbers are between 1 and <code>len(test.csv) = 1973</code> inclusive? (The file test.csv rows are indexed with 0 thru 1972, but it appears that line numbers need to be 1 thru 1973 to avoid error.)</p>\n<p>EDIT: changed 1758 to 1973 to avoid misleading people.</p>\n<pre><code>data = json.dumps(\n    {\n        \"line1\": X, \n        \"line2\": Y, \n    }\n)\n</code></pre>",
      "votes": null,
      "replies": [
        {
          "id": 1896625,
          "author_name": "lucasjt",
          "author_url": "",
          "post_date": "08/13/2022 02:05:31",
          "content": "<p>Yup, that’s right. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1899858,
          "author_name": "cepheidq",
          "author_url": "",
          "post_date": "08/15/2022 14:44:13",
          "content": "<p>You have to delete the raw lines in the actual file on the disk, not the corresponding rows in the Dataframe.<br>\nI am sorry, if this is more sharing then allowed. But as  <a href=\"https://www.kaggle.com/lucasjt\" target=\"_blank\">@lucasjt</a>  basically agreed to \"numbers need to be 1 thru 1759\" with \"Yup, that’s right.\", that would distract people even more from the already (intended, I guess) confusing problem description.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1900091,
          "author_name": "druggist",
          "author_url": "",
          "post_date": "08/15/2022 17:35:05",
          "content": "<p><a href=\"https://www.kaggle.com/cepheidq\" target=\"_blank\">@cepheidq</a> <em>tokenizer reads from the file at ./static/token/test.csv</em><br>\nBut it seems to me that this is wrong directory, or at least it does not exist </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1900118,
          "author_name": "cdeotte",
          "author_url": "",
          "post_date": "08/15/2022 18:00:01",
          "content": "<p><a href=\"https://www.kaggle.com/cepheidq\" target=\"_blank\">@cepheidq</a> The raw file and the rows in the dataframe are the same thing. The only confusing part of my question and Joe's answer is the number 1759. So I've updated my question to use the correct number (so as not to confuse people). When we read <code>df = pd.read_csv('test.csv',quoting=3)</code> then the shape of <code>df</code> is <code>(1973,2)</code> and there are <code>1974</code> lines on disk. The first line on disk is the header and then each line thereafter on disk corresponds to one row in the dataframe.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1900123,
          "author_name": "cdeotte",
          "author_url": "",
          "post_date": "08/15/2022 18:06:25",
          "content": "<p><a href=\"https://www.kaggle.com/druggist\" target=\"_blank\">@druggist</a> that is the location of the file that the server API uses. We should ignore that full directory path. We can view the same file <code>test.csv</code> by downloading it from the competitions dataset.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1918084,
          "author_name": "xeniayan",
          "author_url": "",
          "post_date": "08/29/2022 09:57:48",
          "content": "<p><a href=\"https://www.kaggle.com/lucasjt\" target=\"_blank\">@lucasjt</a> Hi do you mean the range is [1, 1973] or [1, 1758]? Thanks!</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1918488,
          "author_name": "cdeotte",
          "author_url": "",
          "post_date": "08/29/2022 15:58:15",
          "content": "<p>For each of the two numbers you must pick, the range is <code>[1,1973]</code> inclusive. This is because there are 1974 lines in the file on disk and we do not want to remove the first header line which is referred to as line 0. (And there is no point picking a number 1974 or higher).</p>\n<p>Furthermore if you read in the file as a CSV (to view it etc), you must use <code>df = pd.read_csv('test.csv',quoting=3)</code> so that Pandas processes the quotation symbols correctly and produces a dataframe of length 1973.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1919061,
          "author_name": "xeniayan",
          "author_url": "",
          "post_date": "08/30/2022 05:12:47",
          "content": "<p>Thanks so much for the details!!</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1901276,
      "author_name": "vwoodnz",
      "author_url": "",
      "post_date": "08/16/2022 14:44:21",
      "content": "<p>Yeah, unable to make any progress even when getting rid of the lines that should definitely affect parsing of the file. Zero feed back at all. Trying up to -3/+3 just in case they're counting differently, or changing the index when the first line gets deleted. This one is very uninformative. </p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1896576": "Thanks for being so responsive to our questions!  Here's another one:\n\nFor the \"token\" challenge, no matter what my input is, I always get the output:\n\n{\"output\": 0.0175}\n\n(unless there's an error).\n\nIs that because I just haven't figured out what to do yet? (so that's expected)? Or should the output be different for different line inputs?",
    "1896579": "Keep trying 😉",
    "1896585": "This challenge is confusing to me too (because i always see `{\"output\": 0.0175}`). \n\nJust to confirm @lucasjt , in this challenge the only thing we can do is choose two numbers `X, Y`? And these numbers are between 1 and `len(test.csv) = 1973` inclusive? (The file test.csv rows are indexed with 0 thru 1972, but it appears that line numbers need to be 1 thru 1973 to avoid error.)\n\nEDIT: changed 1758 to 1973 to avoid misleading people.\n\n    data = json.dumps(\n        {\n            \"line1\": X, \n            \"line2\": Y, \n        }\n    )",
    "1896625": "Yup, that’s right.",
    "1899858": "You have to delete the raw lines in the actual file on the disk, not the corresponding rows in the Dataframe.\nI am sorry, if this is more sharing then allowed. But as  @lucasjt  basically agreed to \"numbers need to be 1 thru 1759\" with \"Yup, that’s right.\", that would distract people even more from the already (intended, I guess) confusing problem description.",
    "1900091": "cepheidq *tokenizer reads from the file at ./static/token/test.csv*\nBut it seems to me that this is wrong directory, or at least it does not exist",
    "1900118": "cepheidq The raw file and the rows in the dataframe are the same thing. The only confusing part of my question and Joe's answer is the number 1759. So I've updated my question to use the correct number (so as not to confuse people). When we read `df = pd.read_csv('test.csv',quoting=3)` then the shape of `df` is `(1973,2)` and there are `1974` lines on disk. The first line on disk is the header and then each line thereafter on disk corresponds to one row in the dataframe.",
    "1900123": "druggist that is the location of the file that the server API uses. We should ignore that full directory path. We can view the same file `test.csv` by downloading it from the competitions dataset.",
    "1901276": "Yeah, unable to make any progress even when getting rid of the lines that should definitely affect parsing of the file. Zero feed back at all. Trying up to -3/+3 just in case they're counting differently, or changing the index when the first line gets deleted. This one is very uninformative.",
    "1918084": "lucasjt Hi do you mean the range is [1, 1973] or [1, 1758]? Thanks!",
    "1918488": "For each of the two numbers you must pick, the range is `[1,1973]` inclusive. This is because there are 1974 lines in the file on disk and we do not want to remove the first header line which is referred to as line 0. (And there is no point picking a number 1974 or higher).\n\nFurthermore if you read in the file as a CSV (to view it etc), you must use `df = pd.read_csv('test.csv',quoting=3)` so that Pandas processes the quotation symbols correctly and produces a dataframe of length 1973.",
    "1919061": "Thanks so much for the details!!"
  },
  "source": "meta"
}