

{"id":16856,"date":"2018-06-06T04:21:50","date_gmt":"2018-06-06T04:21:50","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=16856"},"modified":"2021-05-14T11:00:13","modified_gmt":"2021-05-14T05:30:13","slug":"tensorflow-wide-and-deep-learning","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/tensorflow-wide-and-deep-learning\/","title":{"rendered":"Wide and Deep learning With TensorFlow in 10 Min"},"content":{"rendered":"<p><span style=\"font-weight: 400\">Today, in this article &#8220;wide and deep learning with TensorFlow&#8221;, we are going to learn the wide model and deep learning model in <strong>TensorFlow<\/strong>. Moreover, we will discuss the working of wide and deep learning with TensorFlow. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Along with this, we will see how can we combine these two models and also set up for these models. Also, we will learn how to define base feature column and training and evaluating the deep model in neural networks with embedding.<\/span><\/p>\n<p>So, let&#8217;s start wide and deep learning with TensorFlow.<\/p>\n<h2><span style=\"font-weight: 400\">TensorFlow Wide\u00a0and Deep Learning<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Programmers are regularly trying to make machines learn just like humans do, in a non-predictive and adaptive way and this field called the <strong>machine learning<\/strong> is at rising. The brain of a human is a complex interconnection of neurons that keep sending signals throughout the lifespan of the human. <\/span><\/p>\n<p><span style=\"font-weight: 400\">The analogy is drawn in machines called neural networks that produce similar results. The learning method is tried to be made similar to that of humans by having a memory and the ability to recollect the past learnings and connect the present learnings.\u00a0 \u00a0<\/span><\/p>\n<div id=\"attachment_16877\" style=\"width: 1404px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/2-Figure1-1.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-16877\" class=\"wp-image-16877 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/2-Figure1-1.png\" alt=\"Wide and Deep Learning with TensorFlow\" width=\"1394\" height=\"284\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/2-Figure1-1.png 1394w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/2-Figure1-1-150x31.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/2-Figure1-1-300x61.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/2-Figure1-1-768x156.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/2-Figure1-1-1024x209.png 1024w\" sizes=\"auto, (max-width: 1394px) 100vw, 1394px\" \/><\/a><p id=\"caption-attachment-16877\" class=\"wp-caption-text\">TensorFlow Wide and Deep Learning<\/p><\/div>\n<p><span style=\"font-weight: 400\">The concept is to join the two methods of memorizing and generalizing the learnings by making a wide linear model and a deep learning model respectively together called Wide\u00a0and Deep Learning. Do check out the previous tutorials on <strong>Linear Models<\/strong> for a better understanding of this tutorial.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">How TensorFlow Wide and Deep Learning Works?<\/span><\/h2>\n<p><span style=\"font-weight: 400\">We will understand the working of wide and deep learning with TensorFlow with the help of an example where you want to create an app that guesses which food you are craving for and orders that food for you. <\/span><\/p>\n<p><span style=\"font-weight: 400\">The two measurements that are needed here are the consumption rate, if that food was consumed by the user, the label score turns 1, which is otherwise always 0.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The classification of 0 and 1 was simple but you might want to consider adding a learning element to your model since a fried chicken can be interpreted as chicken fried rice. Making the model learn will help differentiate such ambiguous cases.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">TensorFlow Wide model<\/span><\/h2>\n<p><span style=\"font-weight: 400\">We associate this model with the memory element. You train a linear model with a wide set of cross-linked product features like the one described above and the correlation of this related data with the assigned label. <\/span><\/p>\n<p><span style=\"font-weight: 400\">The model can predict for example given the item, the probability of consumption, P (consmp | item) for each item, and the app will tell you the item that has the highest probability or the highest consumption rate. <\/span><\/p>\n<p><span style=\"font-weight: 400\">For instance, the model will learn to differentiate that AND (&#8220;fried chicken&#8221;, item=&#8221;chicken and pasta&#8221;) has a higher probability than AND (&#8220;fried chicken&#8221;, &#8220;chicken fried rice&#8221;) even though both have the same crux, i.e. chicken. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Therefore, the app memorized the words would be able to do a nice job of logging what the users prefer.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">TensorFlow Deep Model<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Now, suppose the users of the app are tired of the recommendations with the same food and want a surprise element. This is where the deep learning can come in with the use of embedding vectors for every query and item. <\/span><\/p>\n<p><span style=\"font-weight: 400\">The application would then be able to generalize by coupling the items and queries. An example will be that people who order fried chicken often don\u2019t mind getting a bottle of coke as well.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">Combining Two Models<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Generalizing too much can give irrelevant results. For countering this, let us dig deeper. There are two ways in which the queries and items can be related to each other described as follows.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The first type being very specific where the users have very specific demands like an iced decaf with two cubes of sugar, which is pretty close to a latte with no sugar but it isn\u2019t an acceptable alternative. While designing there is an uncountable number of such rules and this can turn out to be a disadvantage. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Contrary to this, the queries that are more general like \u201cChinese\u201d or \u201ccontinental\u201d may have a much broader set of related items. Which is the reason for combining the two models together?<\/span><\/p>\n<p><span style=\"font-weight: 400\">For more examples, it is recommended to browse through the GitHub repo of TensorFlow.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">TensorFlow Wide and Deep Learning Tutorial<\/span><\/h2>\n<p><span style=\"font-weight: 400\">In the tutorial of the linear model, you trained the model with logistic regression to guess the income of a person using the census dataset. As you might have already realized by now, TensorFlow is great for deep neural networks too.<\/span><\/p>\n<p><span style=\"font-weight: 400\">This tutorial will show you how to use the <\/span><b><i>tf.estimator<\/i><\/b><span style=\"font-weight: 400\"> API to train a linear model (wide) together with a deep neural network which will give you both memorization and generalization.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">Wide and Deep Spectrum of Models<\/span><\/h2>\n<p><span style=\"font-weight: 400\">The figure shown at the start gives out the difference between the linear model and the deep neural network with embeddings and hidden layers along with the combined wide and deep model. There are mainly three steps to configure any model in general with the <\/span><i><span style=\"font-weight: 400\">tf.estimator<\/span><\/i><span style=\"font-weight: 400\"> API:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><strong>Wide model features:<\/strong> Choosing the base columns and crossed columns.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><strong>Deep model features:<\/strong> Choosing the continuous columns, the dimension for each categorical column, and hidden layer sizes.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Combining these into a single model with <\/span><b><i>DNNLinearCombinedClassifier<\/i><\/b><span style=\"font-weight: 400\">.<\/span><\/li>\n<\/ul>\n<h2><span style=\"font-weight: 400\">Setup for Wide and Deep Learning<\/span><\/h2>\n<p><span style=\"font-weight: 400\"><strong>Install TensorFlow<\/strong> in your system and then execute the files given below.<\/span><\/p>\n<p><strong>$ python data_download.py<\/strong><br \/>\n<span style=\"font-weight: 400\">The tutorial code lies within the <\/span><i><span style=\"font-weight: 400\">wide_deep.py <\/span><\/i><span style=\"font-weight: 400\">and uses this to train your model.<\/span><br \/>\n<strong>$ python wide_deep.py<\/strong><\/p>\n<h2><span style=\"font-weight: 400\">Define Base Feature Columns<\/span><\/h2>\n<p><span style=\"font-weight: 400\">To start, you\u2019ll initialize the base and feature columns that will be the basic elements and will be used by both the models.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">import tensorflow as tf\r\nage = tf.feature_column.numeric_column('age')\r\neducation_num = tf.feature_column.numeric_column('education_num')\r\ncapital_gain = tf.feature_column.numeric_column('capital_gain')\r\ncapital_loss = tf.feature_column.numeric_column('capital_loss')\r\nhours_per_week = tf.feature_column.numeric_column('hours_per_week')\r\neducation = tf.feature_column.categorical_column_with_vocabulary_list(\r\n    'education', [\r\n        'Bachelors', 'HS-grad', '11th', 'Masters', '9th', 'Some-college',\r\n        'Assoc-acdm', 'Assoc-voc', '7th-8th', 'Doctorate', 'Prof-school',\r\n        '5th-6th', '10th', '1st-4th', 'Preschool', '12th'])\r\nmarital_status = tf.feature_column.categorical_column_with_vocabulary_list(\r\n    'marital_status', [\r\n        'Married-civ-spouse', 'Divorced', 'Married-spouse-absent',\r\n        'Never-married', 'Separated', 'Married-AF-spouse', 'Widowed'])\r\nrelationship = tf.feature_column.categorical_column_with_vocabulary_list(\r\n    'relationship', [\r\n        'Husband', 'Not-in-family', 'Wife', 'Own-child', 'Unmarried',\r\n        'Other-relative'])\r\nworkclass = tf.feature_column.categorical_column_with_vocabulary_list(\r\n    'workclass', [\r\n        'Self-emp-not-inc', 'Private', 'State-gov', 'Federal-gov',\r\n        'Local-gov', '?', 'Self-emp-inc', 'Without-pay', 'Never-worked'])\r\n# hashing:\r\noccupation = tf.feature_column.categorical_column_with_hash_bucket(\r\n    'occupation', hash_bucket_size=1000)\r\n# Transforming.\r\nage_buckets = tf.feature_column.bucketized_column(\r\n    age, boundaries=[18, 25, 30, 35, 40, 45, 50, 55, 60, 65])<\/pre>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-family: Georgia, Georgia, serif\">Deep Model: Neural Network with Embeddings<\/span><\/h2>\n<p><span style=\"font-weight: 400\">As shown in the previous figure, the deep neural network is a feed-forward network. The high dimensional features are converted to lower dimensions and this representation is referred to as the embedding vector. <\/span><\/p>\n<p><span style=\"font-weight: 400\">These lower dimensional vectors are then concatenated with the features and then fed to the hidden layers of a neural network. The values of the vector are randomly initialized, and along with other parameters trained to minimize the cost function.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The <\/span><i><span style=\"font-weight: 400\">embedding_column <\/span><\/i><span style=\"font-weight: 400\">is used to configure the embeddings for the columns and concatenate them with the continuous columns. You can use <\/span><i><span style=\"font-weight: 400\">indicator_column<\/span><\/i><span style=\"font-weight: 400\"> to make multi-hot representations of categorical columns.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">deep_columns = [\r\n    age,\r\n    education_num,\r\n    capital_gain,\r\n    capital_loss,\r\n    hours_per_week,\r\n    tf.feature_column.indicator_column(workclass),\r\n    tf.feature_column.indicator_column(education),\r\n    tf.feature_column.indicator_column(marital_status),\r\n    tf.feature_column.indicator_column(relationship),\r\n    # To show an example of embedding\r\n    tf.feature_column.embedding_column(occupation, dimension=8),\r\n]<\/pre>\n<p><span style=\"font-weight: 400\">The higher the dimension of the embedding is, the more degrees of freedom the model will have to learn the representations of the features. For simplicity, we set the dimension to 8 for all feature columns here.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Deep models will generalize better when then embeddings are denser. These embeddings will lead to predictions (non zero) for all the pairs of features whereas the linear models need a fewer number of parameters to memorize.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">Combining Wide and Deep Models into One<\/span><\/h2>\n<p><span style=\"font-weight: 400\">The output logs of both the models are taken together to observe the combined result followed by a logistic regression function and you just have to create <\/span><b><i>DNNLinearCombinedClassifier<\/i><\/b><span style=\"font-weight: 400\">:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">model = tf.estimator.DNNLinearCombinedClassifier(\r\n    model_dir='\/tmp\/census_model',\r\n    linear_feature_columns=base_columns + crossed_columns,\r\n    dnn_feature_columns=deep_columns,\r\n    dnn_hidden_units=[100, 50])<\/pre>\n<h2><span style=\"font-weight: 400\">Training and Evaluating the Model<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Before training, you need to read the census data just like you did in the <strong>linear model tutorial<\/strong>. You need to check the <\/span><i><span style=\"font-weight: 400\">data_download.py <\/span><\/i><span style=\"font-weight: 400\">, <\/span><i><span style=\"font-weight: 400\">input_fn<\/span><\/i><span style=\"font-weight: 400\"> in the <\/span><i><span style=\"font-weight: 400\">wide_deep.py<\/span><\/i><span style=\"font-weight: 400\"> file.<\/span><br \/>\n<span style=\"font-weight: 400\">Now, it\u2019s time to train and evaluate the model:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\"># Train and evaluate the model every `FLAGS.epochs_per_eval` epochs.\r\nfor n in range(FLAGS.train_epochs \/\/ FLAGS.epochs_per_eval):\r\n  model.train(input_fn=lambda: input_fn(\r\n      FLAGS.train_data, FLAGS.epochs_per_eval, True, FLAGS.batch_size))\r\n  results = model.evaluate(input_fn=lambda: input_fn(\r\n      FLAGS.test_data, 1, False, FLAGS.batch_size))\r\n  # Display evaluation metrics\r\n  print('Results at epoch', (n + 1) * FLAGS.epochs_per_eval)\r\n  print('-' * 30)\r\n  for key in sorted(results):\r\n    print('%s: %s' % (key, results[key]))<\/pre>\n<p><span style=\"font-weight: 400\">With the above-given model, your accuracy should come around 85%.<\/span><br \/>\nSo, this was all about TensorFlow Wide and Deep learning Tutorial. Hope you like our explanation and understood TensorFlow deep learning &amp; TensorFlow wide learning.<\/p>\n<h2><span style=\"font-weight: 400\">Conclusion<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Hence, in this TensorFlow tutorial, we saw an example of implementing wide and deep learning together on a small dataset. Wide\u00a0and Deep Learning is a very powerful feature of TensorFlow as it gives great results even with large datasets having an even larger number of features. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Moreover, we discussed how wide &amp; deep learning works and also the wide and deep model.\u00a0Further, we saw set up and spectrum for this models.\u00a0Along with this, we discussed TensorFlow deep learning with neural networks embedding. Next up is the tutorial on <strong>Word2Vec<\/strong>.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, in this article &#8220;wide and deep learning with TensorFlow&#8221;, we are going to learn the wide model and deep learning model in TensorFlow. Moreover, we will discuss the working of wide and deep&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":16887,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[2664,3665,3679,3721,12796,14538,14610,14611,14876,16204,16206,16207],"class_list":["post-16856","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tensorflow","tag-combining-wide-and-deep-model","tag-deep-learning-in-tensorflow","tag-deep-model","tag-define-base-feature-columns","tag-setup-for-wide-deep-learning","tag-tensorflow-deep-learning","tag-tensorflow-wide-and-deep-tutorial","tag-tensorflow-wide-learning","tag-training-and-evaluating-the-model","tag-wide-deep-spectrum-of-models","tag-wide-learning-in-tensorflow","tag-wide-model"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Wide and Deep learning With TensorFlow in 10 Min - DataFlair<\/title>\n<meta name=\"description\" content=\"Wide and Deep learning in TensorFlow, set up, wide model, deep model, combining the two models, working of wide &amp; deep learning, training &amp; evaluating model\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/tensorflow-wide-and-deep-learning\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Wide and Deep learning With TensorFlow in 10 Min - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Wide and Deep learning in TensorFlow, set up, wide model, deep model, combining the two models, working of wide &amp; deep learning, training &amp; evaluating model\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/tensorflow-wide-and-deep-learning\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-06T04:21:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-14T05:30:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Wide-and-Deep-learning-With-TensorFlow-01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Wide and Deep learning With TensorFlow in 10 Min - DataFlair","description":"Wide and Deep learning in TensorFlow, set up, wide model, deep model, combining the two models, working of wide & deep learning, training & evaluating model","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/tensorflow-wide-and-deep-learning\/","og_locale":"en_US","og_type":"article","og_title":"Wide and Deep learning With TensorFlow in 10 Min - DataFlair","og_description":"Wide and Deep learning in TensorFlow, set up, wide model, deep model, combining the two models, working of wide & deep learning, training & evaluating model","og_url":"https:\/\/data-flair.training\/blogs\/tensorflow-wide-and-deep-learning\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-06-06T04:21:50+00:00","article_modified_time":"2021-05-14T05:30:13+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Wide-and-Deep-learning-With-TensorFlow-01.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/tensorflow-wide-and-deep-learning\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/tensorflow-wide-and-deep-learning\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"Wide and Deep learning With TensorFlow in 10 Min","datePublished":"2018-06-06T04:21:50+00:00","dateModified":"2021-05-14T05:30:13+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/tensorflow-wide-and-deep-learning\/"},"wordCount":1353,"commentCount":1,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/tensorflow-wide-and-deep-learning\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Wide-and-Deep-learning-With-TensorFlow-01.jpg","keywords":["combining wide and deep model","Deep learning in TensorFlow","deep model","Define Base Feature Columns","Setup for wide &amp; deep learning","TensorFlow Deep learning","TensorFlow Wide and deep tutorial","TensorFlow wide learning","Training and Evaluating the Model","wide &amp; deep spectrum of models","wide learning in TensorFlow","wide model"],"articleSection":["Tensorflow Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/tensorflow-wide-and-deep-learning\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/tensorflow-wide-and-deep-learning\/","url":"https:\/\/data-flair.training\/blogs\/tensorflow-wide-and-deep-learning\/","name":"Wide and Deep learning With TensorFlow in 10 Min - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/tensorflow-wide-and-deep-learning\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/tensorflow-wide-and-deep-learning\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Wide-and-Deep-learning-With-TensorFlow-01.jpg","datePublished":"2018-06-06T04:21:50+00:00","dateModified":"2021-05-14T05:30:13+00:00","description":"Wide and Deep learning in TensorFlow, set up, wide model, deep model, combining the two models, working of wide & deep learning, training & evaluating model","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/tensorflow-wide-and-deep-learning\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/tensorflow-wide-and-deep-learning\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/tensorflow-wide-and-deep-learning\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Wide-and-Deep-learning-With-TensorFlow-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Wide-and-Deep-learning-With-TensorFlow-01.jpg","width":1200,"height":628,"caption":"Wide and Deep learning With TensorFlow"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/tensorflow-wide-and-deep-learning\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Tensorflow Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/tensorflow\/"},{"@type":"ListItem","position":3,"name":"Wide and Deep learning With TensorFlow in 10 Min"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/16856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=16856"}],"version-history":[{"count":6,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/16856\/revisions"}],"predecessor-version":[{"id":94509,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/16856\/revisions\/94509"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/16887"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=16856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=16856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=16856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}