{
  "id": 210413,
  "title": "Model Plotting",
  "url": "/competitions/cassava-leaf-disease-classification/discussion/210413",
  "author_name": "Yuri Njathi",
  "post_date": "2021-01-10T16:51:51.001000",
  "votes": 1,
  "comment_count": 0,
  "views": 0,
  "content": "<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3592731%2Fb2a469ae7c27b4796bc1c9bfd16d4224%2FCNN%20architecture.png?generation=1610297262436759&amp;alt=media\" alt=\"image\"></p>\n<p>How do you plot your model like the one above?<br>\nAssuming you have a model<br>\n Import the libraries below :<br>\n<code>from keras.utils import plot_model</code></p>\n<p>Then : </p>\n<p><code>plot_model(model, show_shapes=True, to_file='model.png')</code></p>\n<p>As you can see the model shape was saved in image : model.png.</p>\n<p>Now you can plot a model and see how the inputs are moving. 💪<br>\nAll the Best.</p>",
  "messages": [
    {
      "id": 1147727,
      "postDate": "2021-01-10T16:51:51Z",
      "content": "<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3592731%2Fb2a469ae7c27b4796bc1c9bfd16d4224%2FCNN%20architecture.png?generation=1610297262436759&amp;alt=media\" alt=\"image\"></p>\n<p>How do you plot your model like the one above?<br>\nAssuming you have a model<br>\n Import the libraries below :<br>\n<code>from keras.utils import plot_model</code></p>\n<p>Then : </p>\n<p><code>plot_model(model, show_shapes=True, to_file='model.png')</code></p>\n<p>As you can see the model shape was saved in image : model.png.</p>\n<p>Now you can plot a model and see how the inputs are moving. 💪<br>\nAll the Best.</p>",
      "rawMarkdown": "![image](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3592731%2Fb2a469ae7c27b4796bc1c9bfd16d4224%2FCNN%20architecture.png?generation=1610297262436759&alt=media)\n\nHow do you plot your model like the one above?\nAssuming you have a model\n Import the libraries below :\n`from keras.utils import plot_model`\n\nThen : \n\n`plot_model(model, show_shapes=True, to_file='model.png')`\n\nAs you can see the model shape was saved in image : model.png.\n\nNow you can plot a model and see how the inputs are moving. 💪\nAll the Best.",
      "votes": 1
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "1147727": "![image](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3592731%2Fb2a469ae7c27b4796bc1c9bfd16d4224%2FCNN%20architecture.png?generation=1610297262436759&alt=media)\n\nHow do you plot your model like the one above?\nAssuming you have a model\n Import the libraries below :\n`from keras.utils import plot_model`\n\nThen : \n\n`plot_model(model, show_shapes=True, to_file='model.png')`\n\nAs you can see the model shape was saved in image : model.png.\n\nNow you can plot a model and see how the inputs are moving. 💪\nAll the Best."
  }
}