{
  "id": 189018,
  "title": "Indexerror in my model.fit)(",
  "url": "/competitions/riiid-test-answer-prediction/discussion/189018",
  "author_name": "",
  "post_date": "2020-10-06T10:16:19.387663Z",
  "votes": null,
  "comment_count": 5,
  "views": 0,
  "content": "<p>Hi friends,<br>\nI am facing below 2 errors in my notebook.Please give a suggestion to over come this.<br>\nIts really a blocker for me.<br>\nimport riiideducation --ModuleNotFoundError   <br>\nIndexError ---in my model.fit()<br>\nmodel = tf.keras.Sequential([   <br>\n       tf.keras.layers.Flatten(),<br>\n       tf.keras.layers.Dense(512,activation='relu'),<br>\n       tf.keras.layers.Dense(1, activation='sigmoid')<br>\n       ])<br>\nmodel.compile(loss='binary_crossentropy',optimizer='adam',metrics=['accuracy'])</p>\n<p>model.fit(train_df,test_df,batch_size=32,epochs=20)</p>",
  "messages": [
    {
      "id": "1039094",
      "postDate": "10/06/2020 10:16:19",
      "content": "<p>Hi friends,<br>\nI am facing below 2 errors in my notebook.Please give a suggestion to over come this.<br>\nIts really a blocker for me.<br>\nimport riiideducation --ModuleNotFoundError   <br>\nIndexError ---in my model.fit()<br>\nmodel = tf.keras.Sequential([   <br>\n       tf.keras.layers.Flatten(),<br>\n       tf.keras.layers.Dense(512,activation='relu'),<br>\n       tf.keras.layers.Dense(1, activation='sigmoid')<br>\n       ])<br>\nmodel.compile(loss='binary_crossentropy',optimizer='adam',metrics=['accuracy'])</p>\n<p>model.fit(train_df,test_df,batch_size=32,epochs=20)</p>",
      "rawMarkdown": "Hi friends,\n\nI am facing below 2 errors in my notebook.Please give a suggestion to over come this.\nIts really a blocker for me.\n\nimport riiideducation --ModuleNotFoundError   \nIndexError ---in my model.fit()\nmodel = tf.keras.Sequential([   \n        tf.keras.layers.Flatten(),\n        tf.keras.layers.Dense(512,activation='relu'),\n        tf.keras.layers.Dense(1, activation='sigmoid')\n        ])\nmodel.compile(loss='binary_crossentropy',optimizer='adam',metrics=['accuracy'])\n   \nmodel.fit(train_df,test_df,batch_size=32,epochs=20)",
      "votes": null
    },
    {
      "id": "1039096",
      "postDate": "10/06/2020 10:20:46",
      "content": "<p>i resolved this,now facing different issue in my model.fit()</p>\n<p>ValueError                                Traceback (most recent call last)</p>\n<p>ValueError: Data cardinality is ambiguous:<br>\n  x sizes: 100000<br>\n  y sizes: 104<br>\nPlease provide data which shares the same first dimension.</p>",
      "rawMarkdown": "i resolved this,now facing different issue in my model.fit()\n\nValueError                                Traceback (most recent call last)\n\nValueError: Data cardinality is ambiguous:\n  x sizes: 100000\n  y sizes: 104\nPlease provide data which shares the same first dimension.",
      "votes": null
    },
    {
      "id": "1039107",
      "postDate": "10/06/2020 10:32:19",
      "content": "<hr>\n<p>ModuleNotFoundError                       Traceback (most recent call last)<br>\n in <br>\n----&gt; 1 import riideducation</p>\n<p>ModuleNotFoundError: No module named 'riideducation'</p>",
      "rawMarkdown": "ModuleNotFoundError                       Traceback (most recent call last)\n<ipython-input-24-73f6a35fc820> in <module>\n----> 1 import riideducation\n    \n\nModuleNotFoundError: No module named 'riideducation'",
      "votes": null
    },
    {
      "id": "1039173",
      "postDate": "10/06/2020 11:56:51",
      "content": "<p>Can I glance the portion of code which is throwing error?</p>",
      "rawMarkdown": "Can I glance the portion of code which is throwing error?",
      "votes": null
    },
    {
      "id": "1039187",
      "postDate": "10/06/2020 12:09:31",
      "content": "<p>this has been resolved.i have other issue<br>\nModuleNotFoundError Traceback (most recent call last)<br>\nin<br>\n----&gt; 1 import riideducation</p>\n<p>ModuleNotFoundError: No module named 'riideducation'</p>",
      "rawMarkdown": "this has been resolved.i have other issue\nModuleNotFoundError Traceback (most recent call last)\nin\n----> 1 import riideducation\n\nModuleNotFoundError: No module named 'riideducation'",
      "votes": null
    },
    {
      "id": "1039278",
      "postDate": "10/06/2020 13:17:13",
      "content": "<p>You're not spelling the module correctly.<br>\nIt's triple i<br>\nimport riiideducation</p>",
      "rawMarkdown": "You're not spelling the module correctly.\nIt's triple i\nimport riiideducation",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1039096,
      "author_name": "sivaranjaninatraj",
      "author_url": "",
      "post_date": "10/06/2020 10:20:46",
      "content": "<p>i resolved this,now facing different issue in my model.fit()</p>\n<p>ValueError                                Traceback (most recent call last)</p>\n<p>ValueError: Data cardinality is ambiguous:<br>\n  x sizes: 100000<br>\n  y sizes: 104<br>\nPlease provide data which shares the same first dimension.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1039173,
          "author_name": "ambicav11",
          "author_url": "",
          "post_date": "10/06/2020 11:56:51",
          "content": "<p>Can I glance the portion of code which is throwing error?</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1039187,
          "author_name": "sivaranjaninatraj",
          "author_url": "",
          "post_date": "10/06/2020 12:09:31",
          "content": "<p>this has been resolved.i have other issue<br>\nModuleNotFoundError Traceback (most recent call last)<br>\nin<br>\n----&gt; 1 import riideducation</p>\n<p>ModuleNotFoundError: No module named 'riideducation'</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1039278,
          "author_name": "rude009",
          "author_url": "",
          "post_date": "10/06/2020 13:17:13",
          "content": "<p>You're not spelling the module correctly.<br>\nIt's triple i<br>\nimport riiideducation</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1039107,
      "author_name": "sivaranjaninatraj",
      "author_url": "",
      "post_date": "10/06/2020 10:32:19",
      "content": "<hr>\n<p>ModuleNotFoundError                       Traceback (most recent call last)<br>\n in <br>\n----&gt; 1 import riideducation</p>\n<p>ModuleNotFoundError: No module named 'riideducation'</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1039094": "Hi friends,\n\nI am facing below 2 errors in my notebook.Please give a suggestion to over come this.\nIts really a blocker for me.\n\nimport riiideducation --ModuleNotFoundError   \nIndexError ---in my model.fit()\nmodel = tf.keras.Sequential([   \n        tf.keras.layers.Flatten(),\n        tf.keras.layers.Dense(512,activation='relu'),\n        tf.keras.layers.Dense(1, activation='sigmoid')\n        ])\nmodel.compile(loss='binary_crossentropy',optimizer='adam',metrics=['accuracy'])\n   \nmodel.fit(train_df,test_df,batch_size=32,epochs=20)",
    "1039096": "i resolved this,now facing different issue in my model.fit()\n\nValueError                                Traceback (most recent call last)\n\nValueError: Data cardinality is ambiguous:\n  x sizes: 100000\n  y sizes: 104\nPlease provide data which shares the same first dimension.",
    "1039107": "ModuleNotFoundError                       Traceback (most recent call last)\n<ipython-input-24-73f6a35fc820> in <module>\n----> 1 import riideducation\n    \n\nModuleNotFoundError: No module named 'riideducation'",
    "1039173": "Can I glance the portion of code which is throwing error?",
    "1039187": "this has been resolved.i have other issue\nModuleNotFoundError Traceback (most recent call last)\nin\n----> 1 import riideducation\n\nModuleNotFoundError: No module named 'riideducation'",
    "1039278": "You're not spelling the module correctly.\nIt's triple i\nimport riiideducation"
  },
  "source": "meta"
}