{
  "id": 24655,
  "title": "theano v/s tensorflow",
  "url": "/competitions/dogs-vs-cats-redux-kernels-edition/discussion/24655",
  "author_name": "",
  "post_date": "2016-10-23T07:28:55.673Z",
  "votes": null,
  "comment_count": 4,
  "views": 550,
  "content": "<p>I am using tensorflow as my backend in jupyter python notebook.I want to ask which one is better and why . I am using tensorflow and I want to switch to theano so how can i do that ?</p>\n\n<p>I am getting </p>\n\n<p>Using TensorFlow backend.</p>\n\n<p>I want </p>\n\n<p>Using Theano backend.</p>",
  "messages": [
    {
      "id": "140794",
      "postDate": "10/23/2016 07:28:55",
      "content": "<p>I am using tensorflow as my backend in jupyter python notebook.I want to ask which one is better and why . I am using tensorflow and I want to switch to theano so how can i do that ?</p>\n\n<p>I am getting </p>\n\n<p>Using TensorFlow backend.</p>\n\n<p>I want </p>\n\n<p>Using Theano backend.</p>",
      "rawMarkdown": "I am using tensorflow as my backend in jupyter python notebook.I want to ask which one is better and why . I am using tensorflow and I want to switch to theano so how can i do that ?\r\n\r\nI am getting \r\n\r\nUsing TensorFlow backend.\r\n\r\nI want \r\n\r\nUsing Theano backend.",
      "votes": null
    },
    {
      "id": "140806",
      "postDate": "10/23/2016 10:11:38",
      "content": "<p>Try adding this at the top of your python file, before importing keras</p>\n\n<p>import os\nos.environ['KERAS_BACKEND'] = &quot;theano&quot;</p>",
      "rawMarkdown": "Try adding this at the top of your python file, before importing keras\r\n\r\nimport os\r\nos.environ['KERAS_BACKEND'] = \"theano\"",
      "votes": null
    },
    {
      "id": "140808",
      "postDate": "10/23/2016 10:49:11",
      "content": "<p>import os os.environ['KERAS_BACKEND'] = &quot;theano&quot; </p>\n\n<p>SyntaxError: invalid syntax</p>\n\n<p>showing invalid syntax by pointing at &quot; s &quot; of os.environ</p>",
      "rawMarkdown": "import os os.environ['KERAS_BACKEND'] = \"theano\" \r\n                 \r\n\r\n\r\n\r\nSyntaxError: invalid syntax\r\n\r\nshowing invalid syntax by pointing at \" s \" of os.environ",
      "votes": null
    },
    {
      "id": "140809",
      "postDate": "10/23/2016 11:01:48",
      "content": "<p>You need a newline after import os</p>\n\n<p>import os</p>\n\n<p>os.environ['KERAS_BACKEND'] = &quot;theano&quot;</p>",
      "rawMarkdown": "You need a newline after import os\r\n\r\n\r\nimport os\r\n\r\n\r\nos.environ['KERAS_BACKEND'] = \"theano\"",
      "votes": null
    },
    {
      "id": "140810",
      "postDate": "10/23/2016 11:12:10",
      "content": "<p>yes I got that :)</p>",
      "rawMarkdown": "yes I got that :)",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 140806,
      "author_name": "CVxTz",
      "author_url": "",
      "post_date": "10/23/2016 10:11:38",
      "content": "<p>Try adding this at the top of your python file, before importing keras</p>\n\n<p>import os\nos.environ['KERAS_BACKEND'] = &quot;theano&quot;</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 140808,
      "author_name": "chinesh",
      "author_url": "",
      "post_date": "10/23/2016 10:49:11",
      "content": "<p>import os os.environ['KERAS_BACKEND'] = &quot;theano&quot; </p>\n\n<p>SyntaxError: invalid syntax</p>\n\n<p>showing invalid syntax by pointing at &quot; s &quot; of os.environ</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 140809,
      "author_name": "CVxTz",
      "author_url": "",
      "post_date": "10/23/2016 11:01:48",
      "content": "<p>You need a newline after import os</p>\n\n<p>import os</p>\n\n<p>os.environ['KERAS_BACKEND'] = &quot;theano&quot;</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 140810,
      "author_name": "chinesh",
      "author_url": "",
      "post_date": "10/23/2016 11:12:10",
      "content": "<p>yes I got that :)</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "140794": "I am using tensorflow as my backend in jupyter python notebook.I want to ask which one is better and why . I am using tensorflow and I want to switch to theano so how can i do that ?\r\n\r\nI am getting \r\n\r\nUsing TensorFlow backend.\r\n\r\nI want \r\n\r\nUsing Theano backend.",
    "140806": "Try adding this at the top of your python file, before importing keras\r\n\r\nimport os\r\nos.environ['KERAS_BACKEND'] = \"theano\"",
    "140808": "import os os.environ['KERAS_BACKEND'] = \"theano\" \r\n                 \r\n\r\n\r\n\r\nSyntaxError: invalid syntax\r\n\r\nshowing invalid syntax by pointing at \" s \" of os.environ",
    "140809": "You need a newline after import os\r\n\r\n\r\nimport os\r\n\r\n\r\nos.environ['KERAS_BACKEND'] = \"theano\"",
    "140810": "yes I got that :)"
  },
  "source": "meta"
}