{"id":84034,"date":"2018-11-29T10:00:10","date_gmt":"2018-11-29T08:00:10","guid":{"rendered":"https:\/\/www.javacodegeeks.com\/?p=84034"},"modified":"2018-11-28T11:04:06","modified_gmt":"2018-11-28T09:04:06","slug":"deep-learning-apache-kafka-keras","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2018\/11\/deep-learning-apache-kafka-keras.html","title":{"rendered":"Deep Learning Example: Apache Kafka &#038; Python &#038; Keras &#038;TensorFlow &#038; Deeplearning4j"},"content":{"rendered":"<p>I added a new example to my \u201c<a href=\"https:\/\/github.com\/kaiwaehner\/kafka-streams-machine-learning-examples\" target=\"_blank\" rel=\"noopener\">Machine Learning + Kafka Streams Examples<\/a>\u201d Github project:<\/p>\n<p>\u201c<strong>Python + Keras + TensorFlow + DeepLearning4j + Apache Kafka + Kafka Streams<\/strong>\u201c.<\/p>\n<p>This blog post discusses the motivation and why this is a great combination of technologies for scalable, reliable Machine Learning infrastructures. For more details about building Machine Learning \/ Deep Learning infrastructures leveraging the Apache Kafka open source ecosystem, check out these two blog posts:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.confluent.io\/blog\/build-deploy-scalable-machine-learning-production-apache-kafka\/\" rel=\"nofollow\">How to Build and Deploy Scalable Machine Learning in Production with Apache Kafka<\/a><\/li>\n<li><a href=\"https:\/\/www.confluent.io\/blog\/using-apache-kafka-drive-cutting-edge-machine-learning\" rel=\"nofollow\">Using Apache Kafka to Drive Cutting-Edge Machine Learning \u2013 Hybrid ML Architectures, AutoML, and more\u2026<\/a><\/li>\n<\/ul>\n<h2>Deep Learning with Python and Keras<\/h2>\n<p>The goal was to show how you can easily deploy a model developed with Python and Keras to a Java \/ Kafka ecosystem. <strong>Keras allows to use different Deep Learning backends under the hood: TensorFlow, CNTK, or Theano<\/strong>. It acts as high level wrapper and is very easy to use even for people new to Machine Learning. Due to these reasons, <a href=\"https:\/\/keras.io\/\" target=\"_blank\" rel=\"noopener\">Keras<\/a> is getting a lot of traction these days.<\/p>\n<h2>Deployment of Keras Models to Java \/ Kafka Ecosystem with Deeplearning4J (DL4J)<\/h2>\n<p>Machine Learning frameworks have different options for combining it with Java platform (and therefore with Apache Kafka ecosystem), like native Java APIs to load models or RPC interfaces to its framework-specific model servers.<\/p>\n<p><a href=\"https:\/\/deeplearning4j.org\" target=\"_blank\" rel=\"noopener\">Deeplearning4j<\/a> seems to become the de facto standard for deployment of Keras models (if you trust Google search). The Deep Learning framework specifically built for the Java platform added many features and bug fixes to its <a href=\"https:\/\/deeplearning4j.org\/docs\/latest\/keras-import-overview\">Keras Model Import<\/a> and supports many Keras concepts already getting better and better with every new (beta) release. I used 1.0.0-beta3 for my Github example. Please check\u00a0here\u00a0for a <a href=\"https:\/\/deeplearning4j.org\/docs\/latest\/keras-import-supported-features\">complete list of supported Keras features in Deeplearning4j<\/a> like Layers, Loss Functions, Activation Functions, Initializers and Optimizers.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p>You can either fully train a model with Keras and \u201cjust\u201d embed it into a Java application for model inference, or re-use the model or parts of it to improve the model with DL4J\u2019s Java API (aka transfer learning).<\/p>\n<h2><strong>Example: Python + Keras + TensorFlow + Apache Kafka + DL4J<br \/>\n<\/strong><\/h2>\n<p>I implemented a simple but still impressive example:<\/p>\n<p><strong>Development of an analytic model trained with Python, Keras and TensorFlow and deployment to Java and Kafka ecosystem.<\/strong> Simple to implement (as you see in the source code), but powerful, scalable and reliable.<\/p>\n<p>This is no business case this time, but just a technical demonstration of a simple \u2018Hello World\u2019 Keras model. Feel free to replace the model with any other Keras model trained with your backend of choice. You just need to replace the model binary (and use a model which is compatible with DeepLearning4J \u2018s model importer). Then you can embed it into your Kafka application for real time model inference.<\/p>\n<h3><strong>Machine Learning Technologies<\/strong><\/h3>\n<ul>\n<li><a href=\"https:\/\/www.python.org\/\" rel=\"nofollow\">Python<\/a><\/li>\n<li><a href=\"https:\/\/deeplearning4j.org\/\" rel=\"nofollow\">DeepLearning4J<\/a><\/li>\n<li><a href=\"https:\/\/keras.io\/\" rel=\"nofollow\">Keras<\/a>\u00a0\u2013 a high-level neural networks API, written in Python and capable of running on top of TensorFlow, CNTK, or Theano.<\/li>\n<li><a href=\"https:\/\/www.tensorflow.org\/\" rel=\"nofollow\">TensorFlow<\/a>\u00a0\u2013 used as backend under the hood of Keras<\/li>\n<li>DeepLearning4J \u2018s\u00a0<a href=\"https:\/\/deeplearning4j.org\/docs\/latest\/keras-import-overview\" rel=\"nofollow\">KerasModelImport feature<\/a>\u00a0is used for importing the Keras \/ TensorFlow model into Java. The used model is its \u2018Hello World\u2019 model example.<\/li>\n<li>The Keras model was trained with this\u00a0<a href=\"https:\/\/github.com\/kaiwaehner\/kafka-streams-machine-learning-examples\/blob\/master\/src\/main\/resources\/generatedModels\/Keras\/keras-model-script.py\">Python script<\/a>.<\/li>\n<\/ul>\n<h3>Apache Kafka and DL4J for Real Time Predictions<\/h3>\n<p>The trained model is embedded into a Kafka Streams application for real time predictions. Here is the core Kafka Streams logic where I use the Deeplearning4j API to do predictions:<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/11\/Kafka_Streams_Deeplearning4j_Keras_TensorFlow.png\"><img decoding=\"async\" class=\"aligncenter wp-image-84046 size-large\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/11\/Kafka_Streams_Deeplearning4j_Keras_TensorFlow-1024x658.png\" alt=\"Deep Learning\" width=\"620\" height=\"398\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/11\/Kafka_Streams_Deeplearning4j_Keras_TensorFlow-1024x658.png 1024w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/11\/Kafka_Streams_Deeplearning4j_Keras_TensorFlow-300x193.png 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/11\/Kafka_Streams_Deeplearning4j_Keras_TensorFlow-768x494.png 768w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/11\/Kafka_Streams_Deeplearning4j_Keras_TensorFlow.png 1664w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>The full source code of my unit test is here: <a href=\"https:\/\/github.com\/kaiwaehner\/kafka-streams-machine-learning-examples\/blob\/master\/src\/test\/java\/com\/github\/megachucky\/kafka\/streams\/machinelearning\/test\/Kafka_Streams_TensorFlow_Keras_Example_IntegrationTest.java\" target=\"_blank\" rel=\"noopener\">Kafka Streams + DeepLearning4j + Keras + TensorFlow<\/a>. Just do a \u201cgit clone\u201d of the <a href=\"https:\/\/github.com\/kaiwaehner\/kafka-streams-machine-learning-examples\" target=\"_blank\" rel=\"noopener\">Github project<\/a> and run the Maven build and it should work out-of-the-box without any configuration.<\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td>Published on Java Code Geeks with permission by Kai Waehner, partner at our <a href=\"\/\/www.javacodegeeks.com\/join-us\/jcg\/\" target=\"_blank\" rel=\"noopener\">JCG program<\/a>. See the original article here: <a href=\"http:\/\/www.kai-waehner.de\/blog\/2018\/11\/27\/deep-learning-example-apache-kafka-python-keras-tensorflow-deeplearning4j\/\" target=\"_blank\" rel=\"noopener\">Deep Learning Example: Apache Kafka + Python + Keras + TensorFlow + Deeplearning4j<\/a><\/p>\n<p>Opinions expressed by Java Code Geeks contributors are their own.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I added a new example to my \u201cMachine Learning + Kafka Streams Examples\u201d Github project: \u201cPython + Keras + TensorFlow + DeepLearning4j + Apache Kafka + Kafka Streams\u201c. This blog post discusses the motivation and why this is a great combination of technologies for scalable, reliable Machine Learning infrastructures. For more details about building Machine &hellip;<\/p>\n","protected":false},"author":352,"featured_media":219,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[940,1617,1826,1045,224,1827],"class_list":["post-84034","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-development","tag-apache-kafka","tag-deeplearning4j","tag-keras","tag-machine-learning","tag-python","tag-tensorflow"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Deep Learning Example: Apache Kafka &amp; Python &amp; Keras &amp;TensorFlow &amp; Deeplearning4j - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Interested to learn about Deep Learning? Check our article discusses the importance of the combination of 5 technologies for scalable infrastructures.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2018\/11\/deep-learning-apache-kafka-keras.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Deep Learning Example: Apache Kafka &amp; Python &amp; Keras &amp;TensorFlow &amp; Deeplearning4j - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Interested to learn about Deep Learning? Check our article discusses the importance of the combination of 5 technologies for scalable infrastructures.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2018\/11\/deep-learning-apache-kafka-keras.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2018-11-29T08:00:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/python-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kai Waehner\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@http:\/\/twitter.com\/KaiWaehner\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kai Waehner\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/11\\\/deep-learning-apache-kafka-keras.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/11\\\/deep-learning-apache-kafka-keras.html\"},\"author\":{\"name\":\"Kai Waehner\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/fa3672ebafa40cdf63cce37d0d3dcb0b\"},\"headline\":\"Deep Learning Example: Apache Kafka &#038; Python &#038; Keras &#038;TensorFlow &#038; Deeplearning4j\",\"datePublished\":\"2018-11-29T08:00:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/11\\\/deep-learning-apache-kafka-keras.html\"},\"wordCount\":657,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/11\\\/deep-learning-apache-kafka-keras.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/python-logo.jpg\",\"keywords\":[\"Apache Kafka\",\"DeepLearning4j\",\"Keras\",\"Machine Learning\",\"Python\",\"TensorFlow\"],\"articleSection\":[\"Software Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/11\\\/deep-learning-apache-kafka-keras.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/11\\\/deep-learning-apache-kafka-keras.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/11\\\/deep-learning-apache-kafka-keras.html\",\"name\":\"Deep Learning Example: Apache Kafka & Python & Keras &TensorFlow & Deeplearning4j - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/11\\\/deep-learning-apache-kafka-keras.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/11\\\/deep-learning-apache-kafka-keras.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/python-logo.jpg\",\"datePublished\":\"2018-11-29T08:00:10+00:00\",\"description\":\"Interested to learn about Deep Learning? Check our article discusses the importance of the combination of 5 technologies for scalable infrastructures.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/11\\\/deep-learning-apache-kafka-keras.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/11\\\/deep-learning-apache-kafka-keras.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/11\\\/deep-learning-apache-kafka-keras.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/python-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/python-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/11\\\/deep-learning-apache-kafka-keras.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Software Development\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/software-development\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Deep Learning Example: Apache Kafka &#038; Python &#038; Keras &#038;TensorFlow &#038; Deeplearning4j\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/fa3672ebafa40cdf63cce37d0d3dcb0b\",\"name\":\"Kai Waehner\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ea843f22cad305dd5e2f75e1afe58e9e61145c1a1f835606af7182dcb197da47?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ea843f22cad305dd5e2f75e1afe58e9e61145c1a1f835606af7182dcb197da47?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ea843f22cad305dd5e2f75e1afe58e9e61145c1a1f835606af7182dcb197da47?s=96&d=mm&r=g\",\"caption\":\"Kai Waehner\"},\"description\":\"Kai Waehner works as consultant. His main area of expertise lies within the fields of Java EE, SOA, Cloud Computing, BPM, Big Data, and Enterprise Architecture Management. He is speaker at international IT conferences such as JavaOne, ApacheCon or OOP, writes articles for professional journals, and shares his experiences with new technologies on his blog.\",\"sameAs\":[\"http:\\\/\\\/www.kai-waehner.de\\\/blog\\\/\",\"http:\\\/\\\/www.linkedin.com\\\/profile\\\/view?id=121499132\",\"https:\\\/\\\/x.com\\\/http:\\\/\\\/twitter.com\\\/KaiWaehner\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/kai-waehner\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Deep Learning Example: Apache Kafka & Python & Keras &TensorFlow & Deeplearning4j - Java Code Geeks","description":"Interested to learn about Deep Learning? Check our article discusses the importance of the combination of 5 technologies for scalable infrastructures.","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:\/\/www.javacodegeeks.com\/2018\/11\/deep-learning-apache-kafka-keras.html","og_locale":"en_US","og_type":"article","og_title":"Deep Learning Example: Apache Kafka & Python & Keras &TensorFlow & Deeplearning4j - Java Code Geeks","og_description":"Interested to learn about Deep Learning? Check our article discusses the importance of the combination of 5 technologies for scalable infrastructures.","og_url":"https:\/\/www.javacodegeeks.com\/2018\/11\/deep-learning-apache-kafka-keras.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2018-11-29T08:00:10+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/python-logo.jpg","type":"image\/jpeg"}],"author":"Kai Waehner","twitter_card":"summary_large_image","twitter_creator":"@http:\/\/twitter.com\/KaiWaehner","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Kai Waehner","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2018\/11\/deep-learning-apache-kafka-keras.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/11\/deep-learning-apache-kafka-keras.html"},"author":{"name":"Kai Waehner","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/fa3672ebafa40cdf63cce37d0d3dcb0b"},"headline":"Deep Learning Example: Apache Kafka &#038; Python &#038; Keras &#038;TensorFlow &#038; Deeplearning4j","datePublished":"2018-11-29T08:00:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/11\/deep-learning-apache-kafka-keras.html"},"wordCount":657,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/11\/deep-learning-apache-kafka-keras.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/python-logo.jpg","keywords":["Apache Kafka","DeepLearning4j","Keras","Machine Learning","Python","TensorFlow"],"articleSection":["Software Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2018\/11\/deep-learning-apache-kafka-keras.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2018\/11\/deep-learning-apache-kafka-keras.html","url":"https:\/\/www.javacodegeeks.com\/2018\/11\/deep-learning-apache-kafka-keras.html","name":"Deep Learning Example: Apache Kafka & Python & Keras &TensorFlow & Deeplearning4j - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/11\/deep-learning-apache-kafka-keras.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/11\/deep-learning-apache-kafka-keras.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/python-logo.jpg","datePublished":"2018-11-29T08:00:10+00:00","description":"Interested to learn about Deep Learning? Check our article discusses the importance of the combination of 5 technologies for scalable infrastructures.","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/11\/deep-learning-apache-kafka-keras.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2018\/11\/deep-learning-apache-kafka-keras.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2018\/11\/deep-learning-apache-kafka-keras.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/python-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/python-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2018\/11\/deep-learning-apache-kafka-keras.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Software Development","item":"https:\/\/www.javacodegeeks.com\/category\/software-development"},{"@type":"ListItem","position":3,"name":"Deep Learning Example: Apache Kafka &#038; Python &#038; Keras &#038;TensorFlow &#038; Deeplearning4j"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/fa3672ebafa40cdf63cce37d0d3dcb0b","name":"Kai Waehner","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ea843f22cad305dd5e2f75e1afe58e9e61145c1a1f835606af7182dcb197da47?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ea843f22cad305dd5e2f75e1afe58e9e61145c1a1f835606af7182dcb197da47?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ea843f22cad305dd5e2f75e1afe58e9e61145c1a1f835606af7182dcb197da47?s=96&d=mm&r=g","caption":"Kai Waehner"},"description":"Kai Waehner works as consultant. His main area of expertise lies within the fields of Java EE, SOA, Cloud Computing, BPM, Big Data, and Enterprise Architecture Management. He is speaker at international IT conferences such as JavaOne, ApacheCon or OOP, writes articles for professional journals, and shares his experiences with new technologies on his blog.","sameAs":["http:\/\/www.kai-waehner.de\/blog\/","http:\/\/www.linkedin.com\/profile\/view?id=121499132","https:\/\/x.com\/http:\/\/twitter.com\/KaiWaehner"],"url":"https:\/\/www.javacodegeeks.com\/author\/kai-waehner"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/84034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/352"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=84034"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/84034\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/219"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=84034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=84034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=84034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}