<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Soroush Hashemifar on Medium]]></title>
        <description><![CDATA[Stories by Soroush Hashemifar on Medium]]></description>
        <link>https://medium.com/@soroushhashemifar?source=rss-b9923b2455fa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pfvajW1VKR8jOtOmkwPiww.jpeg</url>
            <title>Stories by Soroush Hashemifar on Medium</title>
            <link>https://medium.com/@soroushhashemifar?source=rss-b9923b2455fa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 05:03:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@soroushhashemifar/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Depth-wise [Separable] Convolution Explained in TensorFlow]]></title>
            <link>https://soroushhashemifar.medium.com/depth-wise-separable-convolution-explained-in-tensorflow-9be6aeaa4f8b?source=rss-b9923b2455fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/9be6aeaa4f8b</guid>
            <category><![CDATA[machine-intelligence]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[convolutional-network]]></category>
            <dc:creator><![CDATA[Soroush Hashemifar]]></dc:creator>
            <pubDate>Fri, 24 Sep 2021 13:30:03 GMT</pubDate>
            <atom:updated>2021-09-29T06:10:56.528Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/602/0*KAQbOesj630vfiYE.png" /></figure><h3>Over-fitting: A common story of lazy networks</h3><p>Training a deep neural network that can generalize well to new data is a challenging problem. A model with too little capacity cannot learn the problem, whereas a model with too much capacity can learn it too well and over-fit the training data-set. Both cases result in a model that does not generalize well. As IBM mentioned</p><blockquote>Over-fitting is a concept in data science, which occurs when a statistical model fits exactly against its training data. When this happens, the algorithm unfortunately cannot perform accurately against unseen data, defeating its purpose. Generalization of a model to new data is ultimately what allows us to use machine learning algorithms every day to make predictions and classify data.</blockquote><p>A standard Convolution layer involve <em>input*output*width*height</em> parameters, where width and height are width and height of the filter. For an input channel of 10 and output of 20 with 7*7 filter, this will have 9820 parameters. Having so much parameters increases the chance of over-fitting.</p><p>Depth-wise Convolution, has been introduced as a way to reduce the number of parameters of a convolution network, and hence, handle the issue of over-fitting. The remained part of the article is categorized as follows: First, I illustrate how an ordinary Convolution works. Then, the concept of Depth-wise Convolution is discussed. And finally, we generalize this concept to Depth-wise Separable Convolution.</p><h3>Ordinary Convolution</h3><p>The standard Convolution is a fairly simple operation at heart: you start with a kernel, which is simply a small matrix (or tensor) of weights. This kernel slides over the input data, performing an <strong>element-wise multiplication</strong> with the part of the input it is currently on, and then <strong>summing up the results</strong> into a single output pixel. The kernel repeats this process for every location it slides over, converting a 3D matrix of features into 2D matrix of features. The output features are essentially, the weighted sums (with the weights being the values of the kernel itself) of the input features located roughly in the same location of the output pixel on the input layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*AnDL5w3LOB5TGTg8KjtnLw.png" /></figure><p>It is worth mentioning that the part of the input where the kernel is operating on (the red-colored 3D tensor in the above figure), is called <strong>Local Receptive Field</strong>. More formally, each neuron of each layer will be connected to only a region of the previous layer. That region in the previous layer is called the Local Receptive Field for the current neuron. It’s a little window on the previous layer.</p><p>Here is the practical example of Depth-wise Convolution layer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*wtV042tprefJfoRExEyc3g.png" /></figure><p>And the number of parameters and shapes of each layer is showed below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*u025uLPG8Ju934aNP9SXyw.png" /></figure><h3>Depth-wise Convolution</h3><p>Depth-wise Convolution is a type of convolution where we apply a single Convolutional filter <strong>for each input channel</strong>. This type of Convolutions keep each channel separate. To summarize the steps, we:</p><ol><li>Split the input and filter into channels</li><li>Convolve each input with the respective filter</li><li>Stack the convolved outputs together</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*Thm0bwYCjH2LSANcvapvfw.png" /></figure><p>In Depth-wise Convolution layer, parameters are remaining same, meanwhile, this Convolution gives you three output channels with only a single 3-channel filter. While, you would require three 3-channel filters if you would use the ordinary Convolution.</p><p>For a concrete example, let’s say the input layer is of size 7 * 7 * 3 (height * width * channels), and the filter is of size 3 * 3 * 3. After the 2D Convolution with one filter, the output layer is of size 5 * 5 * 1 (with only 1 channel). Typically, multiple filters are applied between two neural net layers. Let’s say we have 128 filters here. After applying these 128 2D Convolutions, we have 128 output maps of size 5 * 5 * 1. We then stack these maps into a single layer of size 5 * 5 * 128. By doing that, we transform the input layer (7 * 7 * 3) into the output layer (5 * 5 * 128). As can be seen, in this type of Convolution the spatial dimensions, i.e. height and width, are shrunk, while the depth is extended. In contrast, let’s apply Depth-wise Convolution to the input layer. Instead of using a single filter of size 3 * 3 * 3 in 2D Convolution, we used 3 kernels, separately. Each filter has size 3 * 3 * 1. Each kernel convolves with 1 channel of the input layer (1 channel only, not all channels!). Each of such convolution provides a feature map of size 5 * 5 * 1. We then stack these feature maps together to create a 5 * 5 * 3 image. After this, we have the output with size 5 * 5 * 3. We now shrink the spatial dimensions, but the depth is still the same as before.</p><p>Here is the practical example of Depth-wise Convolution layer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*tsvOY7IgmF_D9gzGSqQGOQ.png" /></figure><p>As you can see, there is <strong>no parameter indicating number of filters anymore </strong>in Depth-wise Convolution. The number of parameters and shapes of each layer is showed below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*A5EzF-v_AIzD6as5tgsaAQ.png" /></figure><p>In the figure above, you can see how much the number of parameters has shrunk in comparison to ordinary Convolution!</p><p>Now, let’s play with a new parameter depth_multiplier. depth_multiplier says how many Depth-wise Convolutions must be performed over the channels of the input image. Traditionally, this is 1, as we’ve seen in the drawing above. However, you might wish to manually set this to a larger value. Note that you must accommodate for the required resources, though.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*AGNiq4ZzN4zxjbXyLHzpGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*jL_6k-ognJaFXWyTgxm2yQ.png" /></figure><p>The total number of Depth-wise Convolution output channels will be equal to num_filters * depth_multiplier.</p><h3>Depth-wise Separable Convolution</h3><p>The Depth-wise Separable Convolution is so named because it deals not just with the spatial dimensions, but with the depth dimension — the number of channels — as well. This Convolution originated from the idea that depth and spatial dimension of a filter can be separated.</p><p>You can separate the height and width dimension a matrix into two vectors. So you can represent a 3 * 3 matrix of 9 values, with only two 3 * 1 vectors, i.e. only 6 values. The same idea applied to separate depth dimension from horizontal (width * height) gives us Depth-wise Separable Convolution, where we perform Depth-wise Convolution and after that we use a 1 * 1 filter to cover the depth dimension.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*9IS5NKQTCpG6TkjW6tRqNg.png" /></figure><p>One thing to notice is, how much parameters are reduced by this Convolution to output same number of channels. To produce one channel we need 3 * 3 * 3 parameters to perform Depth-wise Convolution, and 1 * 3 parameters to perform further Convolution in depth dimension. But If we need 3 output channels, we only need three 1 * 3 depth filter giving us total of 36 ( = 27 +9) parameters while for same number of output channels in ordinary Convolution, we need three 3 * 3 * 3 filters giving us total of 81 parameters.</p><p>Here is the practical example of Depth-wise Separable Convolution layer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*8WLOYcEfpm32Xc5tdu4sfA.png" /></figure><p>And the number of parameters and shapes of each layer is showed below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*g2KSutCm9w9sUL2cf0RTRA.png" /></figure><p>Depth-wise Separable Convolution also provides the parameter depth_multiplier as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*M2fHt5utS0rZRLjnZeh-SA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*F6yxV2S2zVWT5Q9BtPrPRQ.png" /></figure><p>Note: Pay attention to number of parameters of separable layers in comparison to the case of depth_multiplier was equal to 1. As before, the total number of Depth-wise Separable Convolution output channels will be equal to num_filters * depth_multiplier.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9be6aeaa4f8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why 0.1 + 0.2 != 0.3 happens in Python language?]]></title>
            <link>https://soroushhashemifar.medium.com/why-0-1-0-2-0-3-happens-in-python-language-1c3c5f65960a?source=rss-b9923b2455fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c3c5f65960a</guid>
            <category><![CDATA[calculations]]></category>
            <category><![CDATA[precision]]></category>
            <category><![CDATA[floating-points]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Soroush Hashemifar]]></dc:creator>
            <pubDate>Wed, 28 Aug 2019 20:04:49 GMT</pubDate>
            <atom:updated>2019-08-28T20:04:49.417Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*bNSncrPTnkjTG69znzaqzw.jpeg" /></figure><h3>Can you believe that 0.1 + 0.2 is not equal to 0.3 ?!</h3><p>This weird thing seems to happen in most of programming languages. In this article, I’m going to investigate it. First Let’s review single precision and double precision floating-point numbers, two ways for storing floating-point numbers. (all in <strong>binary mode</strong>)</p><ul><li><strong>Single Precision Number (binary32)</strong>: The IEEE single precision floating point standard representation requires <strong>32 bits</strong>, which may be represented as numbered from 0 to 31, left to right. The first bit is the sign bit, S, the next 8 bits are the exponent bits, ‘E’, and the final 23 bits are the fraction ‘F’. It <strong>reduces the amount of precision</strong> achieved.</li><li><strong>Double Precision Number (binary64)</strong>: The IEEE double precision floating point standard representation requires <strong>64 bits</strong>, which may be represented as numbered from 0 to 63, left to right. The first bit is the sign bit, S, the next 11 bits are the exponent bits, ‘E’, and the final 53 bits (52 bits explicitly stored) are the fraction ‘F’. Double floating point precision are used where <strong>high arithmetic precision</strong> is required and numbers like -2/19 have to be used.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*3BQhsOh0bXtZ8Mg3bnuOwg.png" /></figure><p>Recently I saw 0.1 + 0.2 != 0.3 in a programming quiz and I just got curious about what’s going on! Let’s review what’s happening. There are two types of floating-point number representation: base 10 and base 2. For example 0.125 is equal to 1/10 + 2/100 + 5/1000 is in base 10 (decimal fraction) and 0.001 is equal to 0/2 + 0/4 + 1/8 is in base 2 (binary fraction). The problem comes into scene as most fraction numbers can not be represented by binary fraction, so an estimation of that will be stored.</p><blockquote>On most machines today, floats are approximated using a binary fraction, with the numerator using the first 53 bits starting with the most significant bit, and with the denominator as a power of two.</blockquote><p>In the case of 1/10, the binary fraction is 3602879701896397 / (2 ** 55) which is close to but not exactly equal to the true value of 1/10. When you enter 0.1 in python interpreter, the output is 0.1. But if you enter</p><pre>print(&#39;{:.30f}&#39;.format(0.1))<br>OR<br>print(format(0.1, &#39;.30f&#39;))</pre><p>the output looks like:</p><pre>0.100000000000000005551115123126</pre><p>Actually it may be a little bit different on different computers, but this is how python sees 0.1! it truncates useless numbers when you just print 0.1. Same for 0.2:</p><pre>0.200000000000000011102230246252</pre><p>When you compute 0.1 + 0.2, <strong><em>Representation error</em></strong> of both numbers accumulate and it becomes:</p><pre>0.30000000000000004</pre><p>which is grater than 0.3, so it’s not equal to 0.3! When you print out the fraction 1/10, it shows 0.1. Just remember, even though the printed result looks like the exact value of 1/10, the <strong>actual stored value is the nearest representable binary fraction.</strong></p><blockquote>Note that this is in the very nature of binary floating-point: this is not a bug in Python (or Perl, C, C++, Java, Fortran, and many others), and it is not a bug in your code either. You’ll see the same kind of thing in all languages that support your hardware’s floating-point arithmetic.</blockquote><p>But you may ask, how do you calculated 3602879701896397 / (2 ** 55) for 1/10?! As <a href="https://docs.python.org/3/tutorial/floatingpoint.html#representation-error">python tutorial</a> says:</p><p><strong>IEEE-754 “double precision”</strong> (is used in almost all machines for floating point arithmetic) doubles contain <strong>53 bits of precision</strong>, so on input the computer strives to convert 0.1 to the closest fraction it can, of the form <em>J</em>/2**<em>N</em> where <em>J</em> is an integer containing exactly 53 bits. For 1/10 we have</p><pre>1 / 10 ~= J / (2**N)</pre><p>We can rewrite this as</p><pre>J ~= 2**N / 10</pre><p>We know that <em>J</em> has exactly 53 bits (so J is greater than or equal to 2**52 but it’s smaller than 2**53), so according to</p><pre>2**52 &lt;= 2**N // 10 &lt; 2**53</pre><p>the best value for N is 56. Why? If you multiply all three statements by 10 (I assumed 10 is ~&gt;2**3, where the notation ~&gt; means a little more), you will find out that it looks like</p><pre>10*(2**52) &lt;= 2**56 &lt; 10(2**53)<br>THEN<br>(~&gt; 2**3)*(2**52) &lt;= 2**56 &lt; (~&gt; 2**3)*(2**53)<br>THEN<br>(~&gt; 2**55) &lt;= 2**56 &lt; (~&gt; 2**56)</pre><p>and the only integer value between ~&gt; 2**55 and ~&gt; 2**56 is 2**56, so N is 56 and it’s the only value for <em>N</em> that leaves <em>J</em> with exactly 53 bits. So as we know</p><pre>2**56 // 10 = 7205759403792793 (quotient)</pre><p>and</p><pre>2**56 % 10 = 6 (remainder)</pre><p>Because remainder is greater than 10/2 (half of 10), the quotient should round up and J becomes 7205759403792794. So 1/10 is equal to</p><pre>7205759403792794 / (2**56) = 3602879701896397 / (2**55)</pre><p>Since we rounded up, this is actually a little bit larger than 1/10; if we had not rounded up, the quotient would have been a little bit smaller than 1/10. <strong>But in no case can it be <em>exactly</em> 1/10!</strong> Rounding up makes J = (2**56) / 10 the following statement:</p><pre>J &lt; (2**56) / 10 &lt; J + epsilon</pre><pre>THEN</pre><pre>J / (2**56) &lt; 1/10</pre><p>To see the actual value of 1/10, you should multiply J by 10**55, so you can see the value out to 55 decimal digits:</p><pre>(3602879701896397 * (10**55)) // (2**55)</pre><p>and the output looks like</p><pre>1000000000000000055511151231257827021181583404541015625</pre><p>This number is stored in computer instead of 0.1 :)</p><p>Thanks for reading. Hope you enjoy. Always be a <strong>LEARNER</strong> ;) Join us in our <a href="http://t.me/pythonicAi">Telegram channel</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c3c5f65960a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IoT and Machine Learning/Deep Learning]]></title>
            <link>https://medium.datadriveninvestor.com/iot-and-machine-learning-deep-learning-f102bf578c99?source=rss-b9923b2455fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/f102bf578c99</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Soroush Hashemifar]]></dc:creator>
            <pubDate>Sun, 24 Feb 2019 19:37:08 GMT</pubDate>
            <atom:updated>2019-03-28T01:15:00.975Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="http://www.track.datadriveninvestor.com/1B9E"><img alt="" src="https://cdn-images-1.medium.com/max/700/0*AGzu1AMjEIYlcuqN" /></a></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*-K3LvdsZCs03kriz2soD7w.jpeg" /></figure><p>Several Internet and network-based paradigms are under the<br>internet of everything (IoE) umbrella, such as Internet of Things (IoT), Internet of People (IoP), and Industrial Internet (II). The IoE is recognized as one of the major key areas of future technology and is gaining vast<br>attention from an extensive range of industries. IoE sensors and devices are generating massive amounts of high-dimensional and heterogeneous data that need to be stored and processed.</p><p>In this section, we gonna explore some important areas of intersection between IoE and Machine Learning.</p><ul><li><strong>ML in Health Care</strong></li></ul><p>The aging population is putting pressure on the healthcare budget and the solution to this problem is IoT, it plays a role as a facilitator for monitoring, diagnostic and even the possibility of tele-surgery via the Internet.</p><p>One of the main challenges will be related to the identification and security of the nodes. The security of the nodes is particularly important as the system can be affected by malicious activities and the sensitive data can be manipulated or lost.</p><p><a href="https://www.datadriveninvestor.com/2018/11/14/how-iot-solutions-are-shifting-opportunities-in-the-supply-chain/">How IoT Solutions Are Shifting Opportunities in the Supply Chain | Data Driven Investor</a></p><p>Another challenge in this field is optimized combination of telecommunication techs and maximizing the reliability of these techs.</p><p>Another challenge is how to develop a real-time location tracking system. A good idea would be combining GPS and IoT and local positioning tracking systems.</p><p>Another challenge is the continuous acquisition of data from patients and the cost of storage. some of these methods are heart and blood oxygen saturation detection and use of accelerometer, gyroscopes, and surface electrodes to record the data. The challenge here is the management of the BIG DATA. Also, there is a strong need to develop intelligent algorithms to distinguish redundant data and remove it from storage.</p><ul><li><strong>ML in Smart Grid</strong></li></ul><p>In general, deep learning uses a multi-layer neural network to extract high-level features into a combination of low-level ones to find distributed data features to solve complex machine learning problems. The smart grid in general and the Cleantech are some of the early adopters of the machine learning technologies.</p><p>photovoltaic(PV) systems have nonlinear characteristics so deep learning is an appropriate tool for these problems. Fault detection in solar PV arrays is a crucial task for increasing the reliability and safety of PV systems. A faulty PV system could potentially lead to safety issues and in some cases can cause fires. Machine learning techniques can potentially solve this problem by detecting faults based on an analysis of voltage, current, irradiance, and temperature.</p><p>The other application of machine learning in the smart electricity environment are related to the prediction of the customer electricity usage pattern from the retailer perspective.</p><ul><li><strong>ML in Supply Chain Management(SCM)</strong></li></ul><p>Organizations cannot act in isolation. they depend much on the capabilities and resources of their suppliers, customers, and collaborators. In the current competitive environment, supply chain professionals are struggling to handle<br>the huge amount of structured and unstructured data.</p><p>BIG DATA analytics is one of the best techniques which can help them to overcome their problems(ways of data production, data capturing, data organization).</p><p>SCM defines IoT as: <strong><em>a network of physical objects that are digitally connected to sense and interact within a company and between the company and its supply chain enabling agility, visibility, tracking and information sharing to facilitate timely planning, control and coordination of the supply chain processes</em></strong>.</p><p>In the rest of the article, I explore ways to make Deep Learning architectures suitable to run on IoT devices.</p><p>Deep-learning applications on IoT devices often have demanding real-time requirements. For example, security camera–based object-recognition tasks usually require a detection latency of less than 500 ms to capture and respond to target events.</p><p>However, enabling deep learning on the device side is difficult. Indeed, the main characteristic of mobile IoT devices is low power, which usually means limited computing power and small memory size, and on the other hand, deep learning requires high-performance computing and has high power consumption. So existing Deep Learning Libraries have nothing to do with IoT devices.</p><p>the following workflow is a typical architecture of convolution neural network (CNN):</p><p>1- a convolution layer scans the input image to generate a feature vector</p><p>2- an activation layer determines which feature in the vector should be activated for the image under inference</p><p>3- a pooling layer reduces the feature vector size</p><p>4- a fully connected layer connects each potential label to all outputs of the pooling layer</p><p>An effective way to reduce power consumption is offloading to the cloud. However, offloading also leads to a minimum latency of 2 s, and latency can be as high as 5 s — which doesn’t meet our real-time requirement of 500 ms. So with current Internet speeds, offloading to the cloud isn’t yet a viable solution for real-time deep-learning tasks.</p><p>With offloading impractical, one option is to migrate existing deep-learning platforms to IoT devices. However, it’s a really really daunting task and it raised the question of whether it’s more worthwhile to build a platform from scratch rather than port an existing one. Without basic building blocks such as a convolution operator, this is extremely difficult. In addition, an inference engine built from scratch might not outperform a well-tested deep-learning framework.</p><p>We reviewed applications of IoE to sense, transfer and store data, and Machine Learning to manipulate data to get meaning of information and gain useful insights. The article shows that in each business domain, different machine learning techniques are employed for specific problems. For example, the SVM method can be used for forecasting power generation by solar energy and neural networks can be employed for consumption pattern recognition.</p><p>Instead of manually building models from scratch, we need a more convenient way to enable deep learning on IoT devices. One solution is to implement a deep-learning model compiler that optimizes a given model into executable code on the target platform. Current IoT devices usually perform single tasks because of computing resource limitations. However, I hope to have low-power IoT devices that are able to perform multiple tasks, in the future. To enable these devices, we need an extremely lightweight message passing protocol to connect different services.</p><p>A perception node consumes processed sensor data and produces an interpretation of the captured information, such as object labels and device position.</p><p>An action node contains a set of rules that determine how to respond when a specific event is detected, such as to unlock a door when the owner&#39;s face is detected.</p><p><strong>Resources</strong>:</p><ul><li><a href="https://ieeexplore.ieee.org/document/8418156">https://ieeexplore.ieee.org/document/8418156</a></li><li><a href="https://ieeexplore.ieee.org/document/8057306/">https://ieeexplore.ieee.org/document/8057306/</a></li><li><a href="https://ieeexplore.ieee.org/document/8554800/">https://ieeexplore.ieee.org/document/8554800/</a></li><li><a href="https://ieeexplore.ieee.org/document/8373692/">https://ieeexplore.ieee.org/document/8373692/</a></li><li><a href="https://ieeexplore.ieee.org/document/8270639/">https://ieeexplore.ieee.org/document/8270639/</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f102bf578c99" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/iot-and-machine-learning-deep-learning-f102bf578c99">IoT and Machine Learning/Deep Learning</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Algorithmic Bias]]></title>
            <link>https://medium.datadriveninvestor.com/algorithmic-bias-181f68dcd06b?source=rss-b9923b2455fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/181f68dcd06b</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[algorithmic-bias]]></category>
            <dc:creator><![CDATA[Soroush Hashemifar]]></dc:creator>
            <pubDate>Thu, 26 Apr 2018 17:48:56 GMT</pubDate>
            <atom:updated>2019-03-29T05:38:17.096Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="http://www.track.datadriveninvestor.com/1B9E"><img alt="" src="https://cdn-images-1.medium.com/max/700/0*eJd76EepZZvCmHNm" /></a></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*GFgXXEI5xc3ZMumsJ6__1g.jpeg" /></figure><p>Algorithms have become the most effective elements in today’s world and they do the computations and decision makings more reliable and faster than human. They make decisions about the news we read, the jobs we get, the people we meet and the ads we see. According to the stories we read on Facebook social net, texts we send on Telegram messenger, photos we like on Instagram application and the search results we see on Google and etc, we generate <strong>Big data</strong>. Big data is used to make decisions about health care, employment, housing, education and policing.</p><p>Contrary to what many of us might think, technology is not objective. Algorithm’s behavior depends on people who invented them: what code they write, what data they use to train the machine learning models, and how they test the models after they’re finished. For example, Give an image classification algorithm millions of labeled cat pictures and it will be able to tell you whether a photo it hasn’t seen before contains a cat. Give a speech recognition algorithm millions of voice samples along with their corresponding written words, and it will be able to transcribe spoken language faster than most humans.</p><blockquote>The more data you feed to your learning algorithm, The better it becomes at the task it’s designed for.</blockquote><p>According to above sentence, any amount of data you feed your algorithm of white people, you should do the same for dark-skinned people or any amount of data you feed the algorithm including men, do the same for women and transgenders, etc.</p><p><a href="https://www.datadriveninvestor.com/2019/03/08/an-algorithm-for-happiness/">An Algorithm for Happiness? | Data Driven Investor</a></p><p>Software programs are not free of human influence, because generally we are creating them and they behave on data that may be provided by humans, machines or a combination of both and according to them algorithms may inherit bias.</p><blockquote>Machine learning algorithms learn and evolve based on what people do online.</blockquote><p>For instance, <a href="http://www.andrew.cmu.edu/user/danupam/dtd-pets15.pdf">a new study</a> by Carnegie Mellon University researchers found that Google’s online advertising system showed an ad for high-income jobs to men much more often than it showed the ad to women. Algorithmic bias is getting a more serious problem than the past and governments and algorithm developers don’t care about it, or if they do, that’s not enough :)</p><blockquote>If the bias exists inside the algorithms that make important decisions, goes unrecognized and unchecked, it could have dangerous consequences, especially for poor communities and minorities.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IQHvjIJrizgQ5J4vlXscaQ.jpeg" /><figcaption>TED talk provided by <a href="https://www.ted.com/talks/joy_buolamwini_how_i_m_fighting_bias_in_algorithms">Joy Buolamwini</a></figcaption></figure><p>Check <a href="https://www.ted.com/talks/joy_buolamwini_how_i_m_fighting_bias_in_algorithms">this</a> TED talk, provided by Joy Buolamwini, to see a real problem, where a machine doesn’t recognize black people’s face well, but it works great for white people.</p><p>Another example is a joint project by researchers at Microsoft and Boston University, in which they found <a href="https://www.technologyreview.com/s/602025/how-vector-space-mathematics-reveals-the-hidden-sexism-in-language/">sexist biases in word embedding algorithms</a>, which are used in search engines, translation and other software that depend on <a href="https://bdtechtalks.com/2018/02/20/ai-machine-learning-nlg-nlp/">natural language processing</a>. Among their findings of the behavior of word embedding algorithms was a tendency to associate words such as “programming” and “engineering” to men and “homemaker” to women.</p><p>Algorithmic bias is not a new topic. For decades, academics and experts warned companies and algorithm developers. But what makes it critical at this time, is that these algorithms are getting bold in the everyday decisions we make.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*0UP61Aj3vBhftOLd3NS45w.jpeg" /></figure><h4>Open source VS. algorithmic bias</h4><p>One of the best ways to fight algorithmic bias is by evaluating the training data fed into machine learning models. The data itself might have a skewed distribution; for instance, programmers may have more data about United States citizens than immigrants, and about rich men than poor women. Such imbalances will cause an AI to make improper conclusions about how our society is in fact represented.</p><p>open source technology has extreme potential to help in this fight against algorithmic bias. Modern artificial intelligence is dominated by open source software, from TensorFlow to packages like <a href="http://scikit-learn.org/stable/">scikit-learn</a>. The open source community has already proven extremely effective in developing robust tested machine learning tools, so it follows that the same community could effectively build anti-bias tests into that same software.</p><p>Open source technology has also proven to be extremely effective for vetting and sorting large sets of data. Nothing should make this more obvious than the domination of open source tools in the data analysis market (Weka, Rapid Miner, etc.). Tools for identifying data bias should be designed by the open source community, and those techniques should also be applied to the plethora of open training data sets already published on sites like <a href="https://www.kaggle.com/datasets">Kaggle</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*q44u1efvjmgu2ICrDcpxqw.jpeg" /></figure><h4>People VS. algorithmic bias</h4><p>Companies that develop and apply machine learning systems and government regulators, show little interest in monitoring and limiting algorithmic bias. They should pay more attention to this topic before it becomes out of our hands. Plus, Technology companies use all sorts of mathematical models and aren’t transparent about how they operate!</p><p>It would be impossible for humans to oversee every decision an algorithm makes. But companies can regularly run simulations to test the results of their algorithms.</p><p>Algorithmic bias is a human problem, not a technical one. Our thought, biases, interests, hates, etc, reflects in AI programs. The real solution is to start removing bias in every aspect of our personal and social lives. This means endorsing diversity in employment, education, politics and more. If we want to fix our algorithms,<strong> we should first fix ourselves</strong>.</p><p>Education is extremely important. We all know people who may be unaware of algorithmic bias but who care about its implications should talk to those people and explain both “how the bias is formed” and “why it matters”.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=181f68dcd06b" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/algorithmic-bias-181f68dcd06b">Algorithmic Bias</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to become a machine learning and deep learning engineer?]]></title>
            <link>https://medium.datadriveninvestor.com/how-to-become-a-machine-learning-and-deep-learning-engineer-f0dbb62f1227?source=rss-b9923b2455fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0dbb62f1227</guid>
            <category><![CDATA[statistical-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Soroush Hashemifar]]></dc:creator>
            <pubDate>Thu, 19 Apr 2018 21:37:19 GMT</pubDate>
            <atom:updated>2019-03-29T05:36:45.326Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="http://www.track.datadriveninvestor.com/1B9E"><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Dd9oCzfPCmL_G7es" /></a></figure><p>If you’re here that means you know why we need machine learning and deep learning and how AI science is growing in today&#39;s world, so you don’t need me to explain them to you. So let’s get started with resource introduction ;) Here I want to share my little experience and a lot of my searches on websites, with others who are interested in Machine Learning and Deep Learning fields to create a little road-map for these friends.</p><p>Here’s a list of good books, with a brief explanation about them, which you can read to learn the essentials of machine learning:</p><h4>Machine Learning: A Probabilistic Perspective — written by Kevin Murphy</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*fQ7oCzIYRaeiT6ZWgSSy5w.jpeg" /></figure><p>This book is the most expensive(from a science perspective) and valuable book in the machine learning world. It’s so complete and it covers almost all aspects of machine learning. The book is written in an informal, accessible style, complete with pseudo-code for the most important algorithms. All topics are copiously illustrated with color images and worked examples drawn from such application domains as biology, text processing, computer vision, and robotics.</p><p><a href="https://www.datadriveninvestor.com/2019/01/07/the-ultimate-learning-path-for-deep-learning-in-2019-more/">The Ultimate Learning Path for Deep Learning in 2019 &amp; more... | Data Driven Investor</a></p><p>But its disadvantages are, First, it’s too long. It has 25 heavy chapters. Second, it needs a deep understanding of math and statistics. The book uses a lot of linear algebra and It also uses probabilistic models and inference as a unifying approach. The coverage combines breadth and depth, offering necessary background material on such topics as probability, optimization, and linear algebra as well as discussion of recent developments in the field, including conditional random fields, L1 regularization, and deep learning. If you are good at these fields I highly recommend this book to you.</p><h4>Pattern Recognition and Machine Learning — written by Christopher Bishop</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*4UkKOPa0zRS9nGIum6NHRQ.jpeg" /></figure><p>Here’s a light version of the Mr.Murphy’s book. This is also a famous book. It is aimed at advanced undergraduates or first-year Ph.D. students, as well as researchers and practitioners. No previous knowledge of pattern recognition or machine learning concepts is assumed.</p><p>But Familiarity with multivariate calculus and basic linear algebra is required, and some experience in the use of probabilities would be helpful though not essential as the book includes a self-contained introduction to basic probability theory. The book is suitable for courses on machine learning, statistics, computer science, signal processing, computer vision, data mining, and bioinformatics.</p><h4>An Introduction to Statistical Learning — written by Gareth James, Daniela Written, Trevor Hastie and Robert Tibshirani</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*e3UzZI-Pp1ZGH0ZTqn6oWw.jpeg" /></figure><p>This book provides an accessible overview of the field of statistical learning, an essential tool-set for making sense of the vast and complex data sets that have emerged in fields ranging from biology to finance to marketing to astrophysics. The book is structured in ten chapters covering tools for modeling and mining of complex real-life data sets. The style is suitable for undergraduates and researchers and the understanding of concepts is facilitated by the exercises, both practical and theoretical, which accompany every chapter. Color graphics and real-world examples are used to illustrate the methods presented. Since the goal of this textbook is to facilitate the use of these statistical learning techniques by practitioners in science, industry, and other fields, each chapter contains a tutorial on implementing the analyses and methods presented in R, an extremely popular open-source statistical software platform. The book provides a good introduction to R. The code for all the statistical methods introduced in the book is carefully explained.</p><h4>The Elements of Statistical Learning — written by Jerome H. Friedman, Robert Tibshirani, and Trevor Hastie</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*Ymk54ceyubXXrBN3KKL2KQ.jpeg" /></figure><p>This book describes the important ideas in these areas in a common conceptual framework. While the approach is statistical, the emphasis is on concepts rather than mathematics. Many examples are given, with liberal use of color graphics. It is a valuable resource for statisticians and anyone interested in data mining in science or industry. The book’s coverage is broad, from supervised learning (prediction) to unsupervised learning. The many topics include neural networks, support vector machines, classification trees and boosting.</p><h4><a href="http://www.deeplearningbook.org/">Deep Learning online Book</a> — written by Ian Goodfellow, Yoshua Bengio, Aaron Courville</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*OpYdntiH1dMDE-BgoyFp1g.jpeg" /></figure><p>Deep learning is a form of machine learning that enables computers to learn from experience and understand the world in terms of a hierarchy of concepts. Because the computer gathers knowledge from experience, there is no need for a human computer operator to formally specify all the knowledge that the computer needs. The hierarchy of concepts allows the computer to learn complicated concepts by building them out of simpler ones; a graph of these hierarchies would be many layers deep.</p><p>This book is an introduction to a broad range of topics in deep learning, covering mathematical and conceptual background, deep learning techniques used in industry, and research perspectives. Since this book is written by three experts in the field, it’s the only comprehensive book on the subject. Ian Goodfellow, is Research Scientist at OpenAI; Yoshua Bengio, is Professor of Computer Science at the Université de Montréal; Aaron Courville, is Assistant Professor of Computer Science at the Université de Montréal.</p><p>The text offers mathematical and conceptual background, covering relevant concepts in linear algebra, probability theory and information theory, numerical computation, and machine learning. <em>Deep Learning</em> can be used by undergraduate or graduate students planning careers in either industry or research, and by software engineers who want to begin using deep learning in their products or platforms.</p><h4>Learning From Data — written by Yaser Abu-Mostafa</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/321/1*ruBO2j5vOTWTc5HVz3_UBA.jpeg" /></figure><p>This book, together with specially prepared online material freely accessible to readers, provides a complete introduction to Machine Learning, the technology that enables computational systems to adaptively improve their performance with experience accumulated from the observed data.</p><p>The authors are professors at California Institute of Technology (Caltech), Rensselaer Polytechnic Institute (RPI), and National Taiwan University (NTU), where this book is the main text for their popular courses on machine learning.</p><p>‘Learning from data’ has distinct theoretical and practical tracks. In this book, they balance the theoretical and the practical, the mathematical and the heuristic. A theory that establishes the conceptual framework for learning is included, and so are heuristics that impact the performance of real learning systems. What they have emphasized are the necessary fundamentals that give any student of learning from data a solid foundation.</p><h4>Data Mining: Practical Machine Learning Tools and Techniques — written by Ian H. Witten, Eibe Frank</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*30uNwGmD0cc4t8uSWC6KPg.jpeg" /></figure><p>This book offers a thorough grounding in machine learning concepts as well as practical advice on applying machine learning tools and techniques in real-world data mining situations.</p><p>The book is targeted at information systems practitioners, programmers, consultants, developers, information technology managers, specification writers, data analysts, data modelers, database R&amp;D professionals, data warehouse engineers, data mining professionals. The book will also be useful for professors and students of upper-level undergraduate and graduate-level data mining and machine learning courses who want to incorporate data mining as part of their data management knowledge base and expertise.</p><p>Chris Pal has joined Ian Witten, Eibe Frank, and Mark Hall for the fourth edition, and his expertise in probabilistic models and deep learning has greatly extended the book’s coverage. The book continues to provide references to Weka implementations of algorithms that it describes.</p><h4>Understanding Machine Learning:<br>From Theory to Algorithms — written by Shai Shalev-Shwartz, Shai Ben-David</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*zPqjfjij3BRa383MTBZobQ.jpeg" /></figure><p>The aim of this textbook is to introduce machine learning, and the algorithmic paradigms it offers, in a principled way. The book provides a theoretical account of the fundamentals underlying machine learning and the mathematical derivations that transform these principles into practical algorithms. Following a presentation of the basics, the book covers a wide array of central topics unaddressed by previous textbooks.<br>Designed for an advanced undergraduate or beginning graduate course, the text makes the fundamentals and algorithms of machine learning accessible to students and non-expert readers in statistics, computer science, mathematics, and engineering. This book explains the principles behind the automated learning approach and the considerations underlying its usage. The authors explain the &quot;hows&quot; and &quot;whys&quot; of the most important machine-learning algorithms, as well as their inherent strengths and weaknesses, making the field accessible to students and practitioners in computer science, statistics, and engineering.</p><p>Now here’s a list of best MOOCs courses, with a brief explanation about them, which you can pass to learn the essentials of machine learning:</p><h4><a href="https://www.coursera.org/learn/machine-learning">Stanford Machine Learning</a> on coursera.org</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*M4V6W0J2dKgEha498YtYCA.png" /></figure><p>This course is one of the state of the art courses in machine learning field. It longs for 11 weeks with motivation videos and many interesting diagrams and video clips that Prof.Ng plays in the lectures. After passing this course you have the ability to work on machine learning algorithms or get a good job in this field. Your instructor is Andrew Ng, Adjunct Professor of Stanford University. In this course, you’ll learn about some of the most widely used and successful machine learning techniques. You’ll have the opportunity to implement these algorithms yourself, and gain practice with them. Familiarity with basic linear algebra (matrices, vectors, matrix-vector multiplication), and basic probability (random variables, basic properties of probability) is assumed but if you don’t know any of them, Don’t worry, you will review all of them again through the course. Basic calculus (derivatives and partial derivatives) would be helpful and would give you additional intuitions about the algorithms, but isn’t required to fully complete this course. Another advantage of this course is that you will learn how to implement your algorithms using Matlab/Octave and after that, if you want to switch to languages like Python, you have the intuition about concurrency Matrix arithmetical operations. Plus, you will learn some tricks to troubleshoot your algorithm and how to make it work better.</p><h4><a href="https://www.coursera.org/learn/neural-networks">Neural Networks for Machine Learning</a> on coursera.org</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*NLZbIR5OFZ6UoJgwxxmX_A.jpeg" /></figure><p>This course is a great follow-up to the Machine Learning by Mr.Andrew Ng. In this course you learn about artificial neural networks and how they’re being used for machine learning, as applied to speech and object recognition, image segmentation, modeling language, and human motion, etc. It emphasizes both the basic algorithms and the practical tricks needed to get them to work well. Your instructor is Prof.Geoffrey Hinton (godfather of Deep Learning!) from the University of Toronto. The material is more advanced and you need to do a lot of own study to be successful in this course. The quality of the material, both the video and the lecture slides, is really good. Some programming experience and math on the undergraduate level is helpful to get the intuitions better. But pay attention, the material is a little difficult and you need a really strong motivation to pass the course. This course longs for 16 weeks.</p><h4><a href="https://www.coursera.org/specializations/deep-learning">Deep Learning Specialization</a> on coursera.org</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C85w_FGeBaLzcZ6_i5xNlg.png" /></figure><p>Another good and interesting courses created by Prof.Andrew Ng to break into AI. It provides all the basics and professional concepts you need to implement neural nets and Deep Learning algorithms. You can find all the details of logistic regression and computational graph, etc.</p><p>This specialization is deeplearning.ai project, not the coursera, but it’s accessible on coursera.org. In five courses, you will learn the foundations of Deep Learning, understand how to build neural networks, and learn how to lead successful machine learning projects. You will learn about Convolutional networks, RNNs, LSTM, Adam, Dropout, BatchNorm, Xavier/He initialization, and more. You will work on case studies from healthcare, autonomous driving, sign language reading, music generation, and natural language processing. You will master not only the theory but also see how it is applied in industry. You will practice all these ideas in Python and in TensorFlow framework, which will be taught to you.</p><p>The most interesting part of this specialization is its interviews with famous people in deep learning and machine learning fields. Prof.Ng interviews with Geoffrey Hinton, Ian Goodfellow, Pieter Abbeel, …, who will share with you their personal stories and give you career advice.</p><blockquote>If there are more books or courses you think is useful, you can remind me add them to this list using email: soroush.hashemi76@gmail.com</blockquote><p>My resources on this journey:</p><ul><li><a href="https://www.bookdepository.com/Machine-Learning-Kevin-P-Murphy/9780262018029">https://www.bookdepository.com/Machine-Learning-Kevin-P-Murphy/9780262018029</a></li><li><a href="https://www.springer.com/gp/book/9780387310732">https://www.springer.com/gp/book/9780387310732</a></li><li><a href="https://books.google.com/books/about/An_Introduction_to_Statistical_Learning.html?id=qcI_AAAAQBAJ&amp;printsec=frontcover&amp;source=kp_read_button">https://books.google.com/books/about/An_Introduction_to_Statistical_Learning.html?id=qcI_AAAAQBAJ&amp;printsec=frontcover&amp;source=kp_read_button</a></li><li><a href="https://www.amazon.com/Introduction-Statistical-Learning-Applications-Statistics/dp/1461471370#productDescription_secondary_view_div_1524173311663">https://www.amazon.com/Introduction-Statistical-Learning-Applications-Statistics/dp/1461471370#productDescription_secondary_view_div_1524173311663</a></li><li><a href="https://www.springer.com/gb/book/9780387848570">https://www.springer.com/gb/book/9780387848570</a></li><li><a href="http://openclassroom.stanford.edu/MainFolder/CoursePage.php?course=MachineLearning">http://openclassroom.stanford.edu/MainFolder/CoursePage.php?course=MachineLearning</a></li><li><a href="https://www.coursera.org/learn/machine-learning">https://www.coursera.org/learn/machine-learning</a></li><li><a href="https://www.coursetalk.com/providers/coursera/courses/neural-networks-for-machine-learning">https://www.coursetalk.com/providers/coursera/courses/neural-networks-for-machine-learning</a></li><li><a href="https://mitpress.mit.edu/books/deep-learning">https://mitpress.mit.edu/books/deep-learning</a></li><li><a href="https://www.coursera.org/specializations/deep-learning">https://www.coursera.org/specializations/deep-learning</a></li><li><a href="https://www.amazon.com/Learning-Data-Yaser-S-Abu-Mostafa/dp/1600490069">https://www.amazon.com/Learning-Data-Yaser-S-Abu-Mostafa/dp/1600490069</a></li><li><a href="https://www.goodreads.com/book/show/15706459-learning-from-data">https://www.goodreads.com/book/show/15706459-learning-from-data</a></li><li><a href="https://www.amazon.com/Data-Mining-Practical-Techniques-Management/dp/0123748569#productDescription_secondary_view_div_1524426774740">https://www.amazon.com/Data-Mining-Practical-Techniques-Management/dp/0123748569#productDescription_secondary_view_div_1524426774740</a></li><li><a href="https://www.cs.waikato.ac.nz/ml/weka/book.html">https://www.cs.waikato.ac.nz/ml/weka/book.html</a></li><li><a href="https://www.amazon.com/Understanding-Machine-Learning-Theory-Algorithms/dp/1107057132#productDescription_secondary_view_div_1524427680165">https://www.amazon.com/Understanding-Machine-Learning-Theory-Algorithms/dp/1107057132#productDescription_secondary_view_div_1524427680165</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0dbb62f1227" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/how-to-become-a-machine-learning-and-deep-learning-engineer-f0dbb62f1227">How to become a machine learning and deep learning engineer?</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KMeans vs. DBScan]]></title>
            <link>https://soroushhashemifar.medium.com/kmeans-vs-dbscan-d9d5f9dbee8b?source=rss-b9923b2455fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9d5f9dbee8b</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[k-means]]></category>
            <category><![CDATA[clustering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Soroush Hashemifar]]></dc:creator>
            <pubDate>Mon, 02 Apr 2018 21:30:05 GMT</pubDate>
            <atom:updated>2018-04-23T17:32:32.333Z</atom:updated>
            <content:encoded><![CDATA[<p>In Data Science and Machine Learning, KMeans and DBScan are two of the most popular clustering(unsupervised) algorithms. These are both simple in implementation, but DBScan is a bit more simple. I’ve just used both of them and I honestly found DBScan more powerful and interesting in both aspects, implementation and performance. But we should never forget a basic theorem:</p><p><em>No Free Lunch: All models are wrong, but some models are useful</em>.</p><p>Meaning that no single algorithm is the best for all the purposes. This means, that there are situations where DBSCAN is very performant, while sometimes its performance is very bad. Density clustering (for example DBSCAN) seems to correspond more to human intuitions of clustering, rather than distance from a central clustering point (for example KMeans).</p><p>Density clustering algorithms use the concept of reachability i.e. how many neighbors has a point within a radius. DBScan is more lovely because it doesn’t need parameter, k, which is the number of clusters we are trying to find, which KMeans needs. When you don’t know the number of clusters hidden in the dataset and there’s no way to visualize your dataset, it’s a good decision to use DBScan. DBSCAN produces a varying number of clusters, based on the input data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CLB-V5FbRDGUhXJpsP6kPA.jpeg" /><figcaption>Sample run of KMeans with k=3</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fNenwHd1jnfnBwXsb8YgtQ.jpeg" /><figcaption>Sample run of DBSCAN with epsilon=0.4 &amp; minPoints=3</figcaption></figure><blockquote>You can find my implementations of KMeans and DBSCAN on github:</blockquote><blockquote><a href="https://github.com/soroush76/KMeans-Clustering-algorithm">https://github.com/soroush76/KMeans-Clustering-algorithm</a></blockquote><blockquote><a href="https://github.com/soroush76/DBSCAN-clustering-algorithm">https://github.com/soroush76/DBSCAN-clustering-algorithm</a></blockquote><p>Here’s a list of advantages of KMeans and DBScan:</p><ul><li>KMeans is much faster than DBScan</li><li>DBScan doesn’t need number of clusters</li></ul><p>Here’s a list of disadvantages of KMeans and DBScan:</p><ul><li>K-means need the number of clusters hidden in the dataset</li><li>DBScan doesn’t work well over clusters with different densities</li><li>DBScan needs a careful selection of its parameters</li></ul><h3>As a side point, If DBScan fails and you need a clustering algorithm that automatically detects the number of clusters in your dataset you can try MeanShift algorithm.</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9d5f9dbee8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>