

{"id":79143,"date":"2020-07-10T09:00:27","date_gmt":"2020-07-10T03:30:27","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=79143"},"modified":"2021-08-25T13:49:45","modified_gmt":"2021-08-25T08:19:45","slug":"keras-ecosystem","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/keras-ecosystem\/","title":{"rendered":"Keras Ecosystem &#8211; Keras Open Source Frameworks"},"content":{"rendered":"<p>Keras, other than being a high-level deep learning API also has some other initiatives for machine learning workflow. There is a wide range of machine learning frameworks whose development is based on Keras. In this article, we will discuss Keras Ecosystem. This ecosystem of frameworks tries to ease and optimize the current approach of training and deploying ML models.<br \/>\n<a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/The-Keras-Ecosystem-df.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-79176\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/The-Keras-Ecosystem-df.jpg\" alt=\"Keras Ecosystem\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/The-Keras-Ecosystem-df.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/The-Keras-Ecosystem-df-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/The-Keras-Ecosystem-df-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/The-Keras-Ecosystem-df-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/The-Keras-Ecosystem-df-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/The-Keras-Ecosystem-df-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/p>\n<h2>Keras Ecosystem<\/h2>\n<p>Some of the frameworks for Keras Ecosystem are:<\/p>\n<h3>1. Auto Keras<\/h3>\n<p>This framework was built at the DATA lab with an ambition of making machine learning accessible to everyone.<br \/>\nIt is a simple interface to perform many machine learning tasks. The supported tasks in auto Keras are image classifier, image regression, text classification, text regression, structured data classification, and structured data regression.<\/p>\n<p>An example of image classification task using auto Keras:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">import numpy as np\r\nfrom keras.datasets import mnist\r\nimport autokeras as ak\r\n\r\n(x_train,y_train),(x_test,y_test)=mnist.load_data()\r\n\r\nclassifier=ak.ImageClassifier(max_trials=5)\r\nclassifier.fit(x_train,y_train,epochs=10)\r\n\r\nprediction=classifier.predict(x_test)\r\nclassifier.evaluate(x_test,y_test)<\/pre>\n<h3>2. Keras Tuner<\/h3>\n<p>This framework was developed to remove the headache of searching hyperparameters. It is a scalable and easy framework for optimizing hyperparameters. It helps you to find hyperparameters values which are best suitable for your model.<\/p>\n<p><strong>Install the Keras Tuner using:<\/strong><\/p>\n<p>pip3 install -U keras-tuner<\/p>\n<p><strong>How to use keras Tuner:<\/strong><\/p>\n<p>We use keras Tuner with the help of hp argument while building the neural network model.<\/p>\n<p><strong>For Example<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">from keras.layers import Dense\r\nfrom kerastuner.tuners import RandomSearch\r\nfrom keras.optimizers import Adam\r\n\r\nmodel = keras.Sequential()\r\nmodel.add(Dense(units=hp.Int('units',\r\nmin_value=32,\r\nmax_value=512,\r\nstep=32),\r\nactivation='relu'))\r\nmodel.add(Dense(10, activation='softmax'))\r\nmodel.compile(\r\noptimizer=Adam(\r\nhp.Choice('learning_rate',\r\nvalues=[1e-2, 1e-3, 1e-4])),\r\nloss='categorical_crossentropy',\r\nmetrics=['accuracy'])<\/pre>\n<h3>3. Keras Tensorflow.js<\/h3>\n<p>This framework was developed to deploy <a href=\"https:\/\/data-flair.training\/blogs\/keras-deep-learning\/\">Keras deep learning models<\/a> on the browser or node.js servers. You can even train neural network models on browsers or servers. This framework provides a great way of learning for the developers who are familiar with javascript but are new to machine learning.<\/p>\n<p><strong>Features of Tensorflow.js:<\/strong><\/p>\n<ul>\n<li>It allows us to import pre-trained or existing Keras or TensorFlow models.<\/li>\n<li>We can retrain an imported model on the web browser.<\/li>\n<li>It allows us to use transfer learning to augment the model using image retraining.<\/li>\n<\/ul>\n<h3>4. Tensorflow Lite<\/h3>\n<p>This is open-source software that was developed to enable deep learning models on mobile devices. Generally, machine learning models require space and GPU to run, but these resources are not available on mobile.<\/p>\n<p>Tensorflow lite converts the trained Keras or TensorFlow models into a small and optimized version. Tensorflow lite stores the model in the form of .tflite file form.<\/p>\n<p>The devices utilizing TensorFlow lite are generally mobile devices, internet of things devices, and raspberry pi.<\/p>\n<p><strong>Characteristics of Tensorflow Lite:<\/strong><\/p>\n<ul>\n<li>Optimization of large TensorFlow or Keras deep learning models.<\/li>\n<li>It provides an offline interface to mobile devices.<\/li>\n<li>Tensorflow lite may affect the performance of the model. Generally, TensorFlow lite models have lower accuracy than the actual model.<\/li>\n<\/ul>\n<h3>5. TFX<\/h3>\n<p>TFX is a tool to create and manage production pipelines for deploying our deep learning models at the production stage.<\/p>\n<p><strong>Install TFX using:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">pip3 install tfx<\/pre>\n<p><strong>Using TFX you can:<\/strong><\/p>\n<ul>\n<li>Create machine learning workflow on different platforms such as Apache Beam, Apache Airflow, and Kubeflow.<\/li>\n<li>Use TFX components which helps to build a machine learning process.<\/li>\n<\/ul>\n<p>In a nutshell, TFX provides a toolkit as a configuration framework to integrate basic components for monitoring your deep learning system.<\/p>\n<p><strong>Some popular TFX components are:<\/strong><\/p>\n<ul>\n<li><strong>ExampleGen<\/strong>: for dataset ingestion and spitting.<\/li>\n<li><strong>StatisticsGen<\/strong>: to calculate statistics on a dataset.<\/li>\n<li><strong>SchemaGen<\/strong>: to create data schema.<\/li>\n<li><strong>Transform<\/strong>: to apply feature engineering on the dataset.<\/li>\n<\/ul>\n<p><strong>Some popular TFX libraries are:<\/strong><\/p>\n<ul>\n<li><strong>Tensorflow Data Validation:<\/strong> a python package for data analysis.<\/li>\n<li><strong>TFX Tensorflow Transform:<\/strong> helps data processing in TensorFlow.<\/li>\n<li><strong>Tensorflow Metadata:<\/strong> to describe tabular data and provide statistics over the dataset.<\/li>\n<\/ul>\n<h3>6. Model Optimization Toolkit<\/h3>\n<p>Tensorflow provides this toolkit to optimize machine learning models for deployment. The major applications of this toolkit are:<\/p>\n<ul>\n<li>Minimize latency cost for mobile and IoT devices.<\/li>\n<li>Deployment and maintenance of deep learning models on access devices such as wide area network devices.<\/li>\n<\/ul>\n<p><strong>This toolkit provides the following features:<\/strong><\/p>\n<ul>\n<li>Helps to choose the best model for our needs. It suggests models based on the size and complexity required.<\/li>\n<li>Checks whether any existing pre-optimized models are available for our application.<\/li>\n<li>Allows optimization of already- trained Tensorflow models.<\/li>\n<\/ul>\n<h2>Summary<\/h2>\n<p>This article guides you to four open-source frameworks that are part of the Keras ecosystem. These four frameworks are Auto Keras, Keras Tuner, Tensorflow.js. Tensorflow Lite. All this framework works at a high level with their base on either Keras or Tensorflow. Auto Keras eases Keras operations, Keras tuner helps to decide hyperparameters. Tensorflow.js deploys the model in the browser and Tensorflow life is for making ML models accessible to mobile devices.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Keras, other than being a high-level deep learning API also has some other initiatives for machine learning workflow. There is a wide range of machine learning frameworks whose development is based on Keras. In&#46;&#46;&#46;<\/p>\n","protected":false},"author":10,"featured_media":79176,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22185],"tags":[22574,22575,22576],"class_list":["post-79143","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-keras","tag-keras-ecosystem","tag-keras-frameworks","tag-keras-open-source-frameworks"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Keras Ecosystem - Keras Open Source Frameworks - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn about Keras Ecosystem components like Keras tuner, auto keras, TFX, Model Optimization Toolkit, Tensorflow Lite, Tensorflow.js and their features.\" \/>\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\/keras-ecosystem\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Keras Ecosystem - Keras Open Source Frameworks - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn about Keras Ecosystem components like Keras tuner, auto keras, TFX, Model Optimization Toolkit, Tensorflow Lite, Tensorflow.js and their features.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/keras-ecosystem\/\" \/>\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=\"2020-07-10T03:30:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-25T08:19:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/The-Keras-Ecosystem-df.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=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Keras Ecosystem - Keras Open Source Frameworks - DataFlair","description":"Learn about Keras Ecosystem components like Keras tuner, auto keras, TFX, Model Optimization Toolkit, Tensorflow Lite, Tensorflow.js and their features.","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\/keras-ecosystem\/","og_locale":"en_US","og_type":"article","og_title":"Keras Ecosystem - Keras Open Source Frameworks - DataFlair","og_description":"Learn about Keras Ecosystem components like Keras tuner, auto keras, TFX, Model Optimization Toolkit, Tensorflow Lite, Tensorflow.js and their features.","og_url":"https:\/\/data-flair.training\/blogs\/keras-ecosystem\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2020-07-10T03:30:27+00:00","article_modified_time":"2021-08-25T08:19:45+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/The-Keras-Ecosystem-df.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":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/keras-ecosystem\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/keras-ecosystem\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/a90b082e16aa38d207212d22b0581f33"},"headline":"Keras Ecosystem &#8211; Keras Open Source Frameworks","datePublished":"2020-07-10T03:30:27+00:00","dateModified":"2021-08-25T08:19:45+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/keras-ecosystem\/"},"wordCount":722,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/keras-ecosystem\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/The-Keras-Ecosystem-df.jpg","keywords":["Keras ecosystem","Keras frameworks","keras open source frameworks"],"articleSection":["Keras Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/keras-ecosystem\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/keras-ecosystem\/","url":"https:\/\/data-flair.training\/blogs\/keras-ecosystem\/","name":"Keras Ecosystem - Keras Open Source Frameworks - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/keras-ecosystem\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/keras-ecosystem\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/The-Keras-Ecosystem-df.jpg","datePublished":"2020-07-10T03:30:27+00:00","dateModified":"2021-08-25T08:19:45+00:00","description":"Learn about Keras Ecosystem components like Keras tuner, auto keras, TFX, Model Optimization Toolkit, Tensorflow Lite, Tensorflow.js and their features.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/keras-ecosystem\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/keras-ecosystem\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/keras-ecosystem\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/The-Keras-Ecosystem-df.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/The-Keras-Ecosystem-df.jpg","width":1200,"height":628,"caption":"Keras Ecosystem"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/keras-ecosystem\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Keras Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/keras\/"},{"@type":"ListItem","position":3,"name":"Keras Ecosystem &#8211; Keras Open Source Frameworks"}]},{"@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\/a90b082e16aa38d207212d22b0581f33","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/dd6de0d647a0185cd6faf264e4ba860b0d85d08d7070766f9cd41bea5bb0b227?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/dd6de0d647a0185cd6faf264e4ba860b0d85d08d7070766f9cd41bea5bb0b227?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dd6de0d647a0185cd6faf264e4ba860b0d85d08d7070766f9cd41bea5bb0b227?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team is passionate about delivering top-notch tutorials and resources on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. With expertise in the tech industry, we simplify complex topics to help learners excel. Stay updated with our latest insights.","url":"https:\/\/data-flair.training\/blogs\/author\/dfadteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/79143","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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=79143"}],"version-history":[{"count":2,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/79143\/revisions"}],"predecessor-version":[{"id":79177,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/79143\/revisions\/79177"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/79176"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=79143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=79143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=79143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}