{
  "id": 422603,
  "title": "Why my score is 0 with SVM model?",
  "url": "/competitions/digit-recognizer/discussion/422603",
  "author_name": "Sumit Gunjal",
  "post_date": "2023-07-10T18:19:15.583000",
  "votes": 2,
  "comment_count": 4,
  "views": null,
  "content": "<p>I have 2 submissions for digit recognizer one with SVM(<a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/sumitgunjal/digitrecogniser-svm</a>) and other with CNN(<a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/sumitgunjal/digitrecogniser-cnn/notebook</a>). Score for CNN is 0.98 while SVM is getting 0. <br>\nI compared both output files and about 95% data match in both outputs.<br>\nIs there any other reason than accuracy that is scoring my SVM submission to 0? </p>",
  "messages": [
    {
      "id": 2338390,
      "postDate": "2023-07-10T18:19:15.583Z",
      "content": "<p>I have 2 submissions for digit recognizer one with SVM(<a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/sumitgunjal/digitrecogniser-svm</a>) and other with CNN(<a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/sumitgunjal/digitrecogniser-cnn/notebook</a>). Score for CNN is 0.98 while SVM is getting 0. <br>\nI compared both output files and about 95% data match in both outputs.<br>\nIs there any other reason than accuracy that is scoring my SVM submission to 0? </p>",
      "rawMarkdown": "I have 2 submissions for digit recognizer one with SVM([https://www.kaggle.com/code/sumitgunjal/digitrecogniser-svm](url)) and other with CNN([https://www.kaggle.com/code/sumitgunjal/digitrecogniser-cnn/notebook](url)). Score for CNN is 0.98 while SVM is getting 0. \nI compared both output files and about 95% data match in both outputs.\nIs there any other reason than accuracy that is scoring my SVM submission to 0? ",
      "votes": 2
    },
    {
      "id": 2352464,
      "postDate": "2023-07-21T02:33:27.130Z",
      "content": "<p>Are the notebooks public because I can't see them?</p>",
      "rawMarkdown": "Are the notebooks public because I can't see them?",
      "replies": [
        {
          "id": 2353110,
          "postDate": "2023-07-21T13:00:01.480Z",
          "content": "<p>Yes they are, but don't know why for some reason the link is directed to discussion page. <a href=\"https://www.kaggle.com/code/sumitgunjal/digitrecogniser-svm\" target=\"_blank\">https://www.kaggle.com/code/sumitgunjal/digitrecogniser-svm</a> , <a href=\"https://www.kaggle.com/code/sumitgunjal/digitrecogniser-cnn\" target=\"_blank\">https://www.kaggle.com/code/sumitgunjal/digitrecogniser-cnn</a> . Try these links.</p>",
          "rawMarkdown": "Yes they are, but don't know why for some reason the link is directed to discussion page. https://www.kaggle.com/code/sumitgunjal/digitrecogniser-svm , https://www.kaggle.com/code/sumitgunjal/digitrecogniser-cnn . Try these links.",
          "votes": 1,
          "replies": [
            {
              "id": 2353408,
              "postDate": "2023-07-21T16:22:25.283Z",
              "content": "<p>Sorry to be late,</p>\n<p>I figured out the problem.</p>\n<p>You were submitting floating point numbers not integers.</p>\n<p>I have tried it after converting y_test to integers and it works fine now.</p>\n<p>Just add the following line of code before the last cell: <br>\n<code>y_test = y_test.astype(int)</code></p>\n<p>you can go look at the edit <a href=\"https://www.kaggle.com/code/diaaessam/digitrecogniser-svm\" target=\"_blank\">here</a> if you want.</p>\n<p>Good luck!</p>",
              "rawMarkdown": "Sorry to be late,\n\nI figured out the problem.\n\nYou were submitting floating point numbers not integers.\n\nI have tried it after converting y_test to integers and it works fine now.\n\nJust add the following line of code before the last cell: \n`y_test = y_test.astype(int)`\n\nyou can go look at the edit [here](https://www.kaggle.com/code/diaaessam/digitrecogniser-svm) if you want.\n\nGood luck!",
              "votes": 1
            },
            {
              "id": 2353410,
              "postDate": "2023-07-21T16:27:52.723Z",
              "content": "<p>Ohh you are awesome man, Thanks. I am new here. Guys like you make these place so helpful and awesome. See you around. cheers.</p>",
              "rawMarkdown": "Ohh you are awesome man, Thanks. I am new here. Guys like you make these place so helpful and awesome. See you around. cheers.",
              "votes": 1
            }
          ]
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 2352464,
      "author_name": "Diaa ELdyin Essam Zaki",
      "author_url": "",
      "post_date": "2023-07-21T02:33:27.130000",
      "content": "<p>Are the notebooks public because I can't see them?</p>",
      "votes": 0,
      "replies": [
        {
          "id": 2353110,
          "author_name": "Sumit Gunjal",
          "author_url": "",
          "post_date": "2023-07-21T13:00:01.480000",
          "content": "<p>Yes they are, but don't know why for some reason the link is directed to discussion page. <a href=\"https://www.kaggle.com/code/sumitgunjal/digitrecogniser-svm\" target=\"_blank\">https://www.kaggle.com/code/sumitgunjal/digitrecogniser-svm</a> , <a href=\"https://www.kaggle.com/code/sumitgunjal/digitrecogniser-cnn\" target=\"_blank\">https://www.kaggle.com/code/sumitgunjal/digitrecogniser-cnn</a> . Try these links.</p>",
          "votes": 1,
          "replies": [
            {
              "id": 2353408,
              "author_name": "Diaa ELdyin Essam Zaki",
              "author_url": "",
              "post_date": "2023-07-21T16:22:25.283000",
              "content": "<p>Sorry to be late,</p>\n<p>I figured out the problem.</p>\n<p>You were submitting floating point numbers not integers.</p>\n<p>I have tried it after converting y_test to integers and it works fine now.</p>\n<p>Just add the following line of code before the last cell: <br>\n<code>y_test = y_test.astype(int)</code></p>\n<p>you can go look at the edit <a href=\"https://www.kaggle.com/code/diaaessam/digitrecogniser-svm\" target=\"_blank\">here</a> if you want.</p>\n<p>Good luck!</p>",
              "votes": 1,
              "replies": []
            },
            {
              "id": 2353410,
              "author_name": "Sumit Gunjal",
              "author_url": "",
              "post_date": "2023-07-21T16:27:52.723000",
              "content": "<p>Ohh you are awesome man, Thanks. I am new here. Guys like you make these place so helpful and awesome. See you around. cheers.</p>",
              "votes": 1,
              "replies": []
            }
          ]
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2338390": "I have 2 submissions for digit recognizer one with SVM([https://www.kaggle.com/code/sumitgunjal/digitrecogniser-svm](url)) and other with CNN([https://www.kaggle.com/code/sumitgunjal/digitrecogniser-cnn/notebook](url)). Score for CNN is 0.98 while SVM is getting 0. \nI compared both output files and about 95% data match in both outputs.\nIs there any other reason than accuracy that is scoring my SVM submission to 0? ",
    "2352464": "Are the notebooks public because I can't see them?"
  }
}