<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Rohan Raj</title>
    <description>The latest articles on Forem by Rohan Raj (@rohan1907).</description>
    <link>https://forem.com/rohan1907</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F413191%2Ff0d2384d-4a04-49d2-a826-7381410c78da.jpg</url>
      <title>Forem: Rohan Raj</title>
      <link>https://forem.com/rohan1907</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/rohan1907"/>
    <language>en</language>
    <item>
      <title>Generative vs Discriminative modeling</title>
      <dc:creator>Rohan Raj</dc:creator>
      <pubDate>Sun, 21 Aug 2022 20:13:17 +0000</pubDate>
      <link>https://forem.com/rohan1907/generative-vs-discriminative-modeling-1p8h</link>
      <guid>https://forem.com/rohan1907/generative-vs-discriminative-modeling-1p8h</guid>
      <description>&lt;h2&gt;
  
  
  What is Generative Modeling?
&lt;/h2&gt;

&lt;p&gt;Let’s understand this with an example. Suppose that we have a dataset of some rare species of animals on the planet. Since those are rare species the dataset won’t contain enough pictures for our model to learn from and this might lead to underfitting of the model. &lt;/p&gt;

&lt;p&gt;To tackle this, we wish to build a model that can generate a new image of the species that never existed but still looks real because the model has learned the general rules that govern the appearance of a species.&lt;/p&gt;

&lt;p&gt;In short, generative modeling is generating something new in terms of a probabilistic model. By sampling from this model, we are able to generate new data.&lt;/p&gt;

&lt;p&gt;It is our goal to build a model that can generate new sets of features that look as if they have been created using the same rules as the original data. As easy as it may sound, for image generation this is an incredibly difficult task, considering the number of pixels associated with an image and the probability associated with them.&lt;/p&gt;

&lt;p&gt;A generative model must also be probabilistic rather than deterministic. Let’s suppose we govern our model with a rule to generate images based on the average value of each pixels in the dataset. This is not the characteristic of a generative model. Rather, the model must include a stochastic element (random noise) which influences the individual samples generated by the model.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hFjGdh0v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/setpd990mu8cnn7ldml8.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hFjGdh0v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/setpd990mu8cnn7ldml8.jpg" alt="Image description" width="650" height="242"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Generative versus Discriminative modelling
&lt;/h2&gt;

&lt;p&gt;To truly understand what a generative model tries to achieve, we must compare it to it’s counterpart, Discriminative modelling.&lt;/p&gt;

&lt;p&gt;So what is discriminative modeling ? A simpler answer would be, a model which discriminates between two or more objects and identifies which is what. &lt;br&gt;
In a cats vs dogs model, the main aim is to identify which image is of cat and which one is of a dog. The model learns about the several details on how to differentiate between a cat and a dog and draws a rule based on which it can perform inference. &lt;/p&gt;

&lt;p&gt;The dataset consists of two parts, an observation and a label. For a binary classification problem for cats vs dogs, the image of cat would be labeled as 0 and the image of a dog would be labeled as 1.&lt;/p&gt;

&lt;p&gt;Discriminative model is somewhat similar to supervised learning but not exactly. Generative modeling is usually performed with an unlabeled dataset (form of unsupervised learning), though it can also be applied to labeled dataset as well.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sa0czfnI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mclhsxnqv7vknvxd6hy1.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sa0czfnI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mclhsxnqv7vknvxd6hy1.jpg" alt="Image description" width="678" height="235"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  In mathematical notations, we can represent Generative and Discriminative models as follows:
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Generative modeling estimates &lt;em&gt;p(x)&lt;/em&gt; —- the porbability of observing an observation x.&lt;br&gt;
If the data is labeled then it is represented as &lt;em&gt;p(x | y)&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Discriminative modeling estimates &lt;em&gt;p(y | x)&lt;/em&gt; —- the probability of a model &lt;strong&gt;y&lt;/strong&gt; given observation &lt;strong&gt;x&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In general, discriminative modeling aims to estimate the probability that an observation &lt;strong&gt;x&lt;/strong&gt; belongs to category &lt;strong&gt;y&lt;/strong&gt; whereas generative modeling aims to estimate the probability of seeing the observation at all. &lt;/p&gt;

&lt;p&gt;Hope you had a good read! :) &lt;br&gt;
Please do give it a like. &lt;/p&gt;

</description>
      <category>gans</category>
      <category>deeplearning</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>Introduction to MLops</title>
      <dc:creator>Rohan Raj</dc:creator>
      <pubDate>Mon, 31 Jan 2022 16:27:19 +0000</pubDate>
      <link>https://forem.com/rohan1907/introduction-to-mlops-2329</link>
      <guid>https://forem.com/rohan1907/introduction-to-mlops-2329</guid>
      <description>&lt;p&gt;Let us suppose you have trained an accurate machine learning model and might be wondering what to do next?&lt;br&gt;
Well, after having developed such a good model it's time to celebrate first and next is to use it in production so that we have a real-time software making actual use of the model.&lt;/p&gt;

&lt;h2&gt;
  
  
  So, what is MLops?
&lt;/h2&gt;

&lt;p&gt;As the name suggests, it's &lt;strong&gt;ML + DEV + OPS&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It's a whole machine learning project life cycle in which we start by scoping our project, to data, to modelling through deployment all the way from start to finish.&lt;/p&gt;

&lt;p&gt;So, is developing a Machine Learning system in production a single step process? Well, it isn't! There are several aspects and challenges that come into picture when the deployment has been done. Having a system up and running is halfway through the process. The other half is keeping that system consistent and dependable and handling issues such as data drift, where there is gradual drift in terms of the data, which we used to train our model and the data we are using to perform inferences. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fr6dEVzZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/afppygro9ijl3rpf1ytc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fr6dEVzZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/afppygro9ijl3rpf1ytc.png" alt="" width="880" height="287"&gt;&lt;/a&gt; &lt;em&gt;D. Sculley et. al. NIPS 2015: Hidden Technical Debt in Machine Learning Systems&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;There are several tools and methods which are involved in a complete machine learning system. The ML model is a small yet essential component in the infrastructure.&lt;/p&gt;

&lt;p&gt;But no model lasts forever. Even if the data quality is fine, the model itself can start degrading. What does this mean in practice?&lt;br&gt;
The world is dynamic, and our model needs to be aware of the changes happening to be accurate and dependable. &lt;/p&gt;

&lt;p&gt;In short, having a machine learning model in production is an iterative process where we constantly evolve and improve our model. &lt;br&gt;
&lt;strong&gt;MLops is the way to use several tools and methods to automate this process and make this process of evolving easier.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So, are you ready to dive in?&lt;/p&gt;

&lt;h2&gt;
  
  
  Software Engineering issues in MLops;
&lt;/h2&gt;

&lt;p&gt;Let’s suppose we have a system which takes in “x” as an input and predicts “y” as the output, then there are some aspects which you need to keep in mind:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;u&gt;Realtime or Batch&lt;/u&gt;: Does the model make real-time predictions as in case of speech recognition models or is the model working on a batch of data whose output may or may not be instant. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;u&gt;Cloud vs. Edge/Browser&lt;/u&gt;: Is your model deployed in the browser or at an edge device such as mobiles which do not require internet access? Let’s suppose there is a critical system running in clouds and suddenly the internet goes down. In such cases, edge device-based models would be more reliable. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;u&gt;Compute resources&lt;/u&gt;: Choosing the right software architecture also depends on the hardware limitations we have. A model trained on an exceedingly high GPU or TPU may not work with same efficacy on a CPU.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;u&gt;Latency, throughput (QPS)&lt;/u&gt;: The architecture also depends on the number of queries being handled by our model. It can be measured in Queries Per Second.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;u&gt;Security and privacy&lt;/u&gt;: For different applications, the level of security and privacy would be different based on how sensitive the data is.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Deployment patterns
&lt;/h2&gt;

&lt;p&gt;Common deployment cases:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;u&gt;New product/capability&lt;/u&gt;: If you are offering a new service such as voice commands, then the best way to implement it is to start with a small batch of service and then slowly ramp it up.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;u&gt;Automate/assist with manual task&lt;/u&gt;: There are some tasks being done by humans and we want to use the advantage of ML models to automate or assist the task.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;u&gt;Replace previous ML system&lt;/u&gt;: You now want to replace the already running ML system with a new one. &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For a system, we start with a small traffic and gradually increase its uses. &lt;/p&gt;

&lt;p&gt;There are several deployment patterns which can be used:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;u&gt;Shadow mode&lt;/u&gt;: In this scenario, the ML system shadows the human and runs in parallel. The output of the ML system is not used for any decision during this phase. This can also be thought of as the monitoring phase in which we measure how accurate our model is.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;u&gt;Canary deployment&lt;/u&gt;: In this method we pass a small part of the incoming traffic to the ML system to make real time predictions. Here we keep monitoring the system and ramp up the traffic gradually. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;u&gt;Blue green deployment&lt;/u&gt;: In this type of deployment, we have two instances of system running. One instance is the previous version (Blue) and the other one is the updated version (Green). The router switches the traffic from blue to green instantly to use the new system. And if there is any issue, the traffic can be routed back to the previous version. &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So, in general, there is a spectrum of the degree of automation we want to achieve. On one end of the spectrum are humans and on the other are machines. We can have a pollination of both and decide the degree to which we want to involve humans in the loop.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1JCpqrE_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i44garhfe10wq1bf2z6y.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1JCpqrE_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i44garhfe10wq1bf2z6y.jpg" alt="Image description" width="504" height="83"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Monitoring ML systems:
&lt;/h2&gt;

&lt;p&gt;The best way to monitor any system is through dashboards. We can monitor several metrics of our system such as server load, latency etc. through these dashboards. &lt;br&gt;
Using these metrics, we can brainstorm through them to understand if our learning algorithm is performing well. &lt;br&gt;
Just as ML modelling is iterative, so is deployment. After deployment, we keep monitoring the metrics and do performance analysis to improve it. This metric can also be used to update the model and tune it for more accuracy. &lt;/p&gt;

&lt;p&gt;Hope you have a brief idea about MLops in general. &lt;/p&gt;

&lt;p&gt;If you enjoyed reading it, please do give it a like :)&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>operations</category>
      <category>deployment</category>
      <category>azure</category>
    </item>
    <item>
      <title>Why TensorFlow.js?</title>
      <dc:creator>Rohan Raj</dc:creator>
      <pubDate>Sat, 04 Dec 2021 18:00:50 +0000</pubDate>
      <link>https://forem.com/rohan1907/why-tensorflowjs-43ii</link>
      <guid>https://forem.com/rohan1907/why-tensorflowjs-43ii</guid>
      <description>&lt;p&gt;In today's world almost everyone has come across the buzz around Artificial Intelligence (AI). We have come a long way in this domain of computer science and the amount of development happening in this field is tremendous. Several unsolved problems have been solved by harnessing the power of AI.&lt;br&gt;
So, is AI &lt;em&gt;magic&lt;/em&gt;?&lt;/p&gt;

&lt;p&gt;Well, it isn't. It's just science, the science of getting computers to act without being explicitly programmed.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YH0spkIg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gn37mceak88tt9m6go37.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YH0spkIg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gn37mceak88tt9m6go37.png" alt="Image description" width="302" height="167"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;&lt;u&gt;The know how's and the basics.&lt;/u&gt;&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Before we get deep into this dazzling world of predictions and learning, we need to have our basics strong. Phrases like AI, &lt;em&gt;machine learning&lt;/em&gt;, &lt;em&gt;neural networks&lt;/em&gt;, and &lt;em&gt;deep learning&lt;/em&gt; mean related but different things. &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sjZ1sKrg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cim053xrrfyxw4nho1sj.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sjZ1sKrg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cim053xrrfyxw4nho1sj.jpg" alt="Image description" width="536" height="311"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;u&gt;&lt;strong&gt;Artificial Intelligence&lt;/strong&gt;&lt;/u&gt;&lt;br&gt;
As the Venn diagram above depicts, AI is a broad field. It encompasses machine learning, neural networks, and deep learning, but it also includes many approaches distinct from machine learning. A crisp definition of the field would be: &lt;em&gt;the effort to automate intellectual tasks normally performed by humans&lt;/em&gt;. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;u&gt;Machine Learning&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
Machine Learning, as a subfield of AI distinct from symbolic AI arises from a question that &lt;em&gt;could a computer learn on its own without being explicitly programmed for a specific task?&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;Machine Learning seeks to avoid the hard-coding way of doing things. But the question is how a machine would learn if it were not explicitly instructed on how to perform a task. A simple answer to this question is &lt;em&gt;from the examples in data.&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;This opened the doors to a new programming paradigm. &lt;/p&gt;

&lt;p&gt;In the &lt;em&gt;classical programming paradigm&lt;/em&gt;, we input the data and the rules to get the answers. &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--AaEQUOFg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2ld9f3z5z1zqirvkb4p6.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AaEQUOFg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2ld9f3z5z1zqirvkb4p6.jpg" alt="Image description" width="478" height="97"&gt;&lt;/a&gt;&lt;br&gt;
Whereas, in the &lt;em&gt;machine learning paradigm&lt;/em&gt; we put in the data and the answers and get a set of rules which can be used on other similar data to get the answers. &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--OhZoysg4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wfs9lr7r7egda1sbwa90.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OhZoysg4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wfs9lr7r7egda1sbwa90.jpg" alt="Image description" width="473" height="90"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's take the example of identifying human faces in an image.&lt;/p&gt;

&lt;p&gt;We, as humans can very well classify objects based on their characteristics and features. But how do we train a machine to do so? It is hard for any programmer, no matter how smart and experienced, to write an explicit set of rules in a programming language to accurately decide whether an image contains a human face.&lt;/p&gt;

&lt;p&gt;The &lt;em&gt;hypothetical&lt;/em&gt; search space without any constraint is infinite and it's impossible to search for explicit rules to define a task in a limited amount of time.&lt;/p&gt;

&lt;p&gt;Any &lt;em&gt;heuristic&lt;/em&gt; we produce is likely to fall short when facing the myriad variations that faces can present in real-life images, such as differences in size, shape, and details of the face; expression; hairstyle; color; the background of the image and many more.&lt;/p&gt;

&lt;p&gt;There are two important phases in machine learning. &lt;/p&gt;

&lt;p&gt;The first is the &lt;em&gt;training phase&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;This phase takes the data and answers, together referred to as the training data. Each pair of input data (&lt;em&gt;instances&lt;/em&gt;) and the desired answer (&lt;em&gt;labels&lt;/em&gt;) is called an example. With the help of the examples, the training process produces the automatically discovered rules. &lt;/p&gt;

&lt;p&gt;Although the rules are discovered automatically, they are not discovered entirely from scratch. In other words, although the machine is intelligent, but not enough to produce the rules.&lt;/p&gt;

&lt;p&gt;A human engineer provides a blueprint for the rules at the outset of training. The use of labeled data and human guidance in producing the rules is also known as &lt;em&gt;Supervised Learning&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;It's just like a child learning to walk and requires support in their initial stages.&lt;/p&gt;

&lt;p&gt;The &lt;em&gt;blueprint&lt;/em&gt; is encapsulated in a model, which forms a hypothesis space for the rules the machine may possibly learn. Without this hypothesis space, there is a completely unconstrained and infinite space of rules to search in, which is not conducive to finding good rules in a limited amount of time.&lt;/p&gt;

&lt;p&gt;In the second phase of the machine learning paradigm, we use these generated rules to perform inferences on new data. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--a9dHxEjS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mbn9mdp0ma7rtnvjaiai.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--a9dHxEjS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mbn9mdp0ma7rtnvjaiai.jpg" alt="Image description" width="705" height="242"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;u&gt;Neural Networks and deep learning&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;Neural networks&lt;/em&gt; are a subfield of machine learning which is inspired by the neurons present in the human and animal brains. The idea here is to replicate the way a brain learns things as it perceives. We build a net of &lt;em&gt;interconnected neurons&lt;/em&gt; each responsible for memorizing certain aspects of a given task to perform. &lt;/p&gt;

&lt;p&gt;The data is passed through multiple separable stages also known as layers. These layers are usually stacked on top of each other, and these types of models are also known as &lt;em&gt;sequential models&lt;/em&gt;. &lt;/p&gt;

&lt;p&gt;These neural networks apply a mathematical function over the input data to produce an output value. These neural networks are generally &lt;em&gt;stateful&lt;/em&gt;, i.e. they hold internal memory. &lt;/p&gt;

&lt;p&gt;Each layer's memory is captured in its &lt;em&gt;weights.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;&lt;u&gt; Why TensoFlow.js? &lt;/u&gt;&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;As it's known, JavaScript is scripting language traditionally devoted to creating the web pages and back-end business logic. &lt;br&gt;
Someone who primarily works with JavaScript may feel left out by the deep-learning revolution which seems to be an exclusive territory of languages such as Python, R, C++.  TensorFlow, is a primary tool for building deep-learning models.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--M4RIl9A2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8e62k2xmlz5gsfic9nhf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--M4RIl9A2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8e62k2xmlz5gsfic9nhf.png" alt="Image description" width="259" height="194"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;TensorFlow.js is the product of &lt;em&gt;cross-pollination&lt;/em&gt; between JavaScript and the world of deep learning. 
It is suitable for folks who are good in JavaScript and want to explore the world of deep learning and for folks who have basic mathematical understanding of the deep learning world and are looking for a place to dive deep into this field.
With deep learning, JavaScript developers can make their web apps more intelligent. &lt;/li&gt;
&lt;li&gt;TensorFlow.js is created and maintained by &lt;em&gt;Google&lt;/em&gt;, so it's worth noting that some of the best brains in the world have come together to make it happen.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Provides a no-install experience&lt;/em&gt; in the world of machine learning. Generally, the AI in a website is locked in an AI and the performance varies with the bandwidth of the connection. TensorFlow.js provides us with the ability to run deep learning models directly in the browsers without any installation of other dependencies. &lt;/li&gt;
&lt;li&gt;&lt;p&gt;JavaScript based applications can run anywhere. These codes can be added to progressive web-apps or React application and then these applications can run without being connected to the internet.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---uw9tHCX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x9457lav7w5xw9kdx3r8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---uw9tHCX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x9457lav7w5xw9kdx3r8.png" alt="Image description" width="267" height="188"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It also provides a great deal of privacy as the data never leaves a user's system.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It can also be used in IoT based devices such as RaspberryPi.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LLwADfzR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8gifc30p8onoxrkwmkvq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LLwADfzR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8gifc30p8onoxrkwmkvq.png" alt="Image description" width="244" height="207"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Conclusion, mastery of TensorFlow.js can help us in building cross platform intelligent application with great efficacy and security. &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--L9EKD5Pm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c1duhzin02079iheui3x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--L9EKD5Pm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c1duhzin02079iheui3x.png" alt="Image description" width="500" height="501"&gt;&lt;/a&gt;&lt;br&gt;
And a huge yes to the picture above XD &lt;br&gt;
Hope you enjoyed reading the blog!&lt;br&gt;
Thank you :)&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>deeplearning</category>
      <category>tensorflow</category>
      <category>tfjs</category>
    </item>
  </channel>
</rss>
