<?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 Allan Handan on Medium]]></title>
        <description><![CDATA[Stories by Allan Handan on Medium]]></description>
        <link>https://medium.com/@allanhandan_67854?source=rss-38977f6eac13------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*S3Aot1AU7hWsoroy.</url>
            <title>Stories by Allan Handan on Medium</title>
            <link>https://medium.com/@allanhandan_67854?source=rss-38977f6eac13------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 00:58:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@allanhandan_67854/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[ROI, Lead e Conversão: O que é e como calcular!]]></title>
            <link>https://medium.com/bawilabs/roi-lead-e-convers%C3%A3o-o-que-%C3%A9-e-como-calcular-758568930fbd?source=rss-38977f6eac13------2</link>
            <guid isPermaLink="false">https://medium.com/p/758568930fbd</guid>
            <category><![CDATA[conversão]]></category>
            <category><![CDATA[cobrança]]></category>
            <category><![CDATA[leads]]></category>
            <category><![CDATA[gestão]]></category>
            <category><![CDATA[roi]]></category>
            <dc:creator><![CDATA[Allan Handan]]></dc:creator>
            <pubDate>Fri, 22 Feb 2019 12:43:28 GMT</pubDate>
            <atom:updated>2019-02-22T12:43:28.947Z</atom:updated>
            <content:encoded><![CDATA[<p>Gestores de diversos setores desconhecem ou negligenciam a importância de se medir esses 3 indicadores.</p><p>Eles são utilizados para medir a saúde de um negócio, prever resultados e comparar a eficiência entre processos ou canais de estímulo.</p><p>Hoje vou te ajudar a entender o que eles são e lhe mostrar porque você deveria medí-los e aplicá-los em seu negócio!</p><p>A título de exemplo, usaremos dados de um cenário real para comparar o ROI obtido por uma empresa de cobrança usando apenas a ferramenta de SMS para estimular seus devedores, com o ROI obtido pela mesma empresa usando a mesma carteira , porém, utilizando o produto de <a href="https://www.bawi.io/bawi-autonegociacao">Autonegociação</a> para realizar o estímulo.</p><h3><strong>ROI</strong></h3><p>O <strong>ROI</strong> é o retorno sobre o investimento, representa quantos reais se obtém de lucro para cada real investido, ou seja, a capacidade de multiplicar o capital. Ele pode ser calculado tanto para a operação completa de uma empresa, quanto para processos separadamente.</p><p>Para calculá-lo basta que se divida o lucro pelo valor gasto no processo .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*FjyBXQpwdGRBtxS8DI8FvA.png" /><figcaption>Fómula do cálculo do ROI.</figcaption></figure><p>Por exemplo, vamos considerar um processo de produção que gerou um faturamento de R$ 10.000,00 tendo investido R$6.000,00 no processo, logo seu ROI é 0,67 ((10.000–6.000)/6.000), ou seja, para cada real investido, o processo gerou um lucro de R$0,67.</p><p>Um ROI alto indica que seu processo é muito eficiente e eficaz, pois leva em consideração tanto os custos do seu processo quanto o impacto ou retorno que ele gerou. Já um ROI baixo pode ser um diganóstico de que os processos devem ser revistos, de modo a detectar pontos de ineficiência e identificar os motivos que reduzem os seus resultados.</p><p>Acredite, nem sempre a busca por redução de custos é o melhor caminho! Que tal experimentar a busca pelo maior ROI ?</p><h3>Lead</h3><p>O <strong>Lead </strong>representa a parcela do público alvo estimulado que respondeu ao estímulo, ou seja, mede a capacidade de gerar interesse pelo que está sendo oferecido. Tanto o público quanto a resposta varia de acordo com o segmento ou processo analisado.</p><p>Sua análise pode ajudar a diagnosticar se há alguma falha no seu processo de estímulo, permitindo comparar resultados entre diferentes modelos, medir a eficácia do canal utilizado ou mostrar que há necessidade de aperfeiçoamento do processo.</p><p>Levando em conta o cenário que vamos analisar, público alvo são os devedores que serão cobrados. No caso da <a href="https://www.bawi.io/bawi-autonegociacao">Autonegocição</a>, para o retorno são considerados os devedores que interagiram com a plataforma. Já no SMS, são os devedores que ligaram para o <em>callcenter</em>. Assim, o lead baixo significa que o processo de estímulo está apresentando alguma falha, podendo indicar que o canal usado é inadequado para o perfíl dos devedores, ou que a mensagem enviada não apresenta atratividade e até mesmo que pode haver problemas com a entrega de estímulo por parte de seu fornecedor.</p><h3>Conversão</h3><p>A Conversão indica a porcentagem dos estímulos que se transformaram efetivamente em negociação, ou seja, ela indica a eficácia de seu sistema como um todo, analisando a relação entre a entrada (quantidade de estímulos realizados) e a saída (a quantidade de negócios fechados).</p><p>Considerando o cénario da empresa de cobrança, uma conversão baixa pode ser um diagnóstico de falha no processo de geração de Lead, o que pode indicar que as propostas oferecidas não são atrativas ou que o processo de negociação executado pelo PA precisa de maior especialização.</p><h3>Simples assim!</h3><p>Viu como é facil calcular esses índices? Acredite, calculá-los não é trabalhoso e os resultados vão te ajudar a ver o seu négocio ou seus processos com outros olhos!</p><p>Acompanhar de perto esses dados é de suma importância para verificar a necessidade de alguma adaptação e para buscar sempre o máximo potencial de seus processos!</p><h3>Exemplo de aplicação</h3><p>Como foi dito anteriormente, faremos um comparativo entre 2 produtos de estímulo de cobrança de dívidas, um é o contato simples por SMS, ja o outro é usando a <a href="https://www.bawi.io/bawi-autonegociacao">Autonegociação</a>.</p><p>Todos os dados apresentados aqui são reais, foram obtidos através da análise dos resultados de um dos nossos clientes.</p><h3>SMS</h3><h4>Cenário</h4><ul><li>44.513 devedores (baseado no custo de R$ 3.917,16, o mesmo da autonegociação, para efeitos comparativos)</li><li>Ticket médio de R$ 897,56</li><li>Comissão de 12%</li></ul><h4>Premissas Assumidas</h4><ul><li>Lead de 2,5% (quantidade de ligações recebidas por SMS disparados)</li><li>Conversão de 0,58% (23% do Lead é convertido em acordo)</li><li>Quebra de contrato de 60% (negócios fechados que não são honrados)</li><li>1 PA (posto de atendimento) ao custo de R$5.000,00 (responsável por atender as chamadas ao longo do mês)</li><li>Comissão do PA de 0,5%</li></ul><h4>Resultados</h4><ul><li>Valor Recebido: R$ 91.892,10</li><li>Comissão recebida pela empresa: R$ 11.027,05</li><li>Gastos do processo: R$ 9.376,60</li><li>Lucro: R$ 1.650,45</li><li>ROI: 0,18</li></ul><h3>Autonegociação</h3><h4>Cenário</h4><ul><li>10.530 devedores (ao custo de R$ 3.917,16)</li><li>Ticket médio de R$ 897,56</li><li>Comissão de 12% devedores</li><li>Quebra de contrato de 60%</li></ul><h4>Resultados</h4><ul><li>Valor Recebido: R$ 66.706,64</li><li>Comissão recebida pela empresa: R$ 8.004,80</li><li>Gastos do processo: R$ 3.917,16</li><li>Lucro: R$ 4.087,64</li><li>ROI: 1,04 (5,93 vezes maior que o do SMS)</li></ul><h3>Autonegociação com Callcenter</h3><p>Neste cenário juntamos a abordagem da <a href="https://www.bawi.io/bawi-autonegociacao">Autonegociação</a> com o uso de um Callcenter para efetuar cobrança ativa sobre os devedores classificados como “<strong>meio do funil</strong>”, que são os devedores que interagiram com a plataforma mas não fecharam acordo.</p><h4>Cenário</h4><p>O mesmo da autonegociação, porém agora com o uso dos 2.086 devedores classificados como “meio do funil”</p><h4>Premissas Assumidas</h4><ul><li>Conversão de 0,58% (23% do Lead é convertido em acordo)</li><li>Quebra de contrato de 60% (negócios fechados que não são honrados)</li><li>1,5 PA ao custo de R$7.500,00 (responsável por realizar 2.086 chamadas de cobrança)</li><li>Comissão de 0,5% PA</li></ul><h4>Resultados</h4><ul><li>Valor Recebido: R$ 238.959,17</li><li>Comissão recebida pela empresa: R$ 28.675,10</li><li>Gastos do processo: R$ 12.278,42</li><li>Lucro: R$ 16.396,68</li><li>ROI: 1,34 (7,59 vezes maior que o do SMS)</li></ul><h3>Comparativo</h3><p>Atualmente as empresas de cobrança dedicam quase todos os seus recursos apenas na estratégia de estímulo por SMS. Ao deixar de analisar o Lead, a Conversão e principalmente o ROI, elas não percebem o quanto de seu potencial é desperdiçado pelo uso de um processo ultrapassado.</p><p>Ao testar e procurar novas formas de estimular e cobrar seus devedores, como a Autonegociação, é possivel realizar testes comparativos de ROI, como o exemplo que mostramos, onde a <a href="https://www.bawi.io/bawi-autonegociacao">Autonegociação</a> obteve rentabilidade <strong>5,93</strong> vezes maior que o do SMS e <strong>7,59</strong> vezes maior ao aliar com o Callcenter.</p><p>O uso do ROI como diganóstico e comparativo entre processos deve ser estimulado, pois assim os gestores contam com mais uma incrível ferramenta para empreender e analisar novas soluções.</p><p>Espero ter colaborado um pouco com esse texto e até o próximo!!!!</p><p><a href="https://www.linkedin.com/in/allan-handan-9750ab130/">Allan Dayrell Braga Mattar Handan</a></p><p>DS e CS na <a href="https://www.bawi.io/bawi-autonegociacao">Bawi Repayment Technologies</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=758568930fbd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bawilabs/roi-lead-e-convers%C3%A3o-o-que-%C3%A9-e-como-calcular-758568930fbd">ROI, Lead e Conversão: O que é e como calcular!</a> was originally published in <a href="https://medium.com/bawilabs">bawilabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Learning: Convolutional Neural Networks]]></title>
            <link>https://medium.com/bawilabs/deep-learning-convolutional-neural-networks-7992985c9c7b?source=rss-38977f6eac13------2</link>
            <guid isPermaLink="false">https://medium.com/p/7992985c9c7b</guid>
            <category><![CDATA[convolutional-network]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Allan Handan]]></dc:creator>
            <pubDate>Wed, 11 Apr 2018 18:16:58 GMT</pubDate>
            <atom:updated>2018-04-11T19:23:34.060Z</atom:updated>
            <content:encoded><![CDATA[<p>In this publication, we will continue the <a href="https://labs.bawi.io/introduction-to-deep-learning-3f8ce3006648">Introduction to Deep Learning</a> and <a href="https://labs.bawi.io/deep-learning-word2vec-and-embedding-3b00ff571cc1">Deep Learning: Word2Vec and Embedding</a>, talking about the concepts behind <em>Convolutional Neural Networks</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*qSOZARD3hOzJL7Kd.jpg" /></figure><h3><strong>Convolutional Neural Networks (CNN)</strong></h3><p>It is an artificial neural network where the neurons are represented by filters (matrices or weight tensors) present in Convolutional Layers (CL), widely used in the classification and identification of patterns in images or texts.</p><h4>CNN — Parameters</h4><ul><li><strong>Filters</strong>: Represents the amount of filters in a CL.</li><li><strong>Kernel Size</strong>: Defines the dimensions of the filters.</li><li><strong>Stride</strong>: Sets the size of the filter shift step.</li><li><strong>Padding</strong>: defines whether or not there is entry zeroing, influencing the output dimensions:</li><li>Same With filling.</li><li>Valid: Not filled out.</li></ul><h4><strong>CNN — Process — D</strong>epth of output</h4><p>The convolution process generates a deepening of the network, so that the depth of the output is the depth of the input multiplied by the number of filters present in the convolution layer. For example, an RGB image has depth 3, when passing through a CL with 5 filters, an output with depth 15 will be generated.</p><h4><strong>CNN — Process — Output height/width</strong></h4><p>The width and height of the exit depends on the dimensions of the entrance, the padding and the strides used.</p><p>Below we have two figures with examples of convolution with the formula for the dimensions of the output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*sKTqxILUPNI6P8t-bBIE1w.png" /><figcaption>Figure 1: Convolutional process example with padding=valid and strides=(1,1).</figcaption></figure><p>We can see in Figure 1 that even with a stride = (1,1), the output did not maintain the dimensions of the input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*e4jJGDUENyF9A93q1qtSew.png" /><figcaption>Figure 2: Convolutional process example with padding=same and strides=(1,1).</figcaption></figure><p>In figure 2, we can see that the output has maintained the dimensions of the input, this runs due to filling with zeros.</p><h4>CNN — Pooling Layer</h4><p>Layer similar to Convolutional Layer, the difference is that instead of applying an array of weights, the Pooling Layer applies a maximum, minimum or average function.</p><p>Figure 3 shows an application of a max pooling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*JK9DZ78mbfE7s2rnqrtlBw.png" /><figcaption>Figure 3: Max pooling example.</figcaption></figure><p>With this it is possible to make their image classification models more efficient, being able to determine the most features present in them.</p><p>I hope this article helps you understand a few more concepts of <em>Deep Learning</em>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7992985c9c7b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bawilabs/deep-learning-convolutional-neural-networks-7992985c9c7b">Deep Learning: Convolutional Neural Networks</a> was originally published in <a href="https://medium.com/bawilabs">bawilabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Learning: Word2Vec and Embedding]]></title>
            <link>https://medium.com/bawilabs/deep-learning-word2vec-and-embedding-3b00ff571cc1?source=rss-38977f6eac13------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b00ff571cc1</guid>
            <category><![CDATA[rnn]]></category>
            <category><![CDATA[embedding-layer]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[word2vec]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Allan Handan]]></dc:creator>
            <pubDate>Mon, 18 Dec 2017 15:57:07 GMT</pubDate>
            <atom:updated>2017-12-18T15:57:07.344Z</atom:updated>
            <content:encoded><![CDATA[<p>In this publication, we will continue the <a href="https://labs.bawi.io/introduction-to-deep-learning-3f8ce3006648">Introduction to Deep Learning</a> talking about the concepts behind <em>Word2vec</em> and <em>Embedding</em>.</p><h4>Word2vec</h4><p>This is a technique used in neural networks to classify texts, such as positive or negative reviews of a film.</p><p>In this technique, words are transformed into feature vectors, that is, each word becomes a vector of weights that define its characteristics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*riu5AFA-UQCmi3BRlwuw0w.png" /><figcaption>Example of a vector of weights for the example word.</figcaption></figure><p>To use Word2Vec you need to implement Embedding.</p><h4>Embedding</h4><p>Embedding increases network agility by limiting its inputs so that only the words used in a given input pass through the network.</p><p>Its implementation is to transform the words into indexes according to their vocabulary and to pass the matrix containing all the indexes of the words used in their input text by the embedding layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*NP7wRxczfFa36h4_NLF-AA.png" /><figcaption>Word2vec process.</figcaption></figure><h4>Embedding Layer</h4><p>The Embedding Layer is a layer composed of an array with a number of rows equal to the number of words in the vocabulary and with a number of columns equal to the number of features of the words.</p><p>It is in this layer that the words are finally represented by the vectors of weights.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*6hdhjxxGnSmsaqisqg4hDQ.png" /><figcaption>Embedding layer matrix.</figcaption></figure><p>From this point, the words that make up the text are already transformed into resource vectors, allowing numerous possibilities of implementations related to the interpretation or classification of texts.</p><p>I hope this article helps you understand a few more concepts of <em>Deep Learning</em>! Until the next!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b00ff571cc1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bawilabs/deep-learning-word2vec-and-embedding-3b00ff571cc1">Deep Learning: Word2Vec and Embedding</a> was originally published in <a href="https://medium.com/bawilabs">bawilabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Deep Learning]]></title>
            <link>https://medium.com/bawilabs/introduction-to-deep-learning-3f8ce3006648?source=rss-38977f6eac13------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f8ce3006648</guid>
            <category><![CDATA[descending-gradient]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[backpropagation]]></category>
            <dc:creator><![CDATA[Allan Handan]]></dc:creator>
            <pubDate>Fri, 15 Sep 2017 18:36:30 GMT</pubDate>
            <atom:updated>2017-09-27T21:29:12.583Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*_uFyvCNLk4X8wurX.png" /></figure><p>Continuing the topic presented in the article <a href="https://labs.bawi.io/desmistificando-machine-learning-13fc9d360dbd">Desmitificando Machine Learning</a>, some important concepts about Deep Learning will be presented here. Do not worry, we will not enter much into the math of the subject :P</p><p>First, let’s talk about the <strong>data set</strong>, which represents the data that will be used during training and evaluation of the network. The data set is divided into the training set, validation set, and test set.</p><p>The <strong>training set</strong> represents the data that will be used in the training step. In this step, a certain input passes through the network generating a response that will be compared with the expected result, allowing to estimate the error and the correction on the network weights through <strong>backpropagation</strong> (keep calm, we will define this term!).</p><p>The <strong>validation set</strong> entries are also used in the training step, but their output is not used to perform the network correction, it determines if the training is being performed efficiently and if it is occurring overfitting in training.</p><p>Finally, unlike the training set and the validation set, the <strong>test set</strong> is not used in the training stage. In fact, it should NEVER be used during training because it will be used as input only for the evaluation of the network’s accuracy.</p><p>A network conventionally presents 3 types of layers:</p><h4>Input Layer</h4><p>This layer represents the network input. It is important to understand that each node in this layer represents a feature of the input that will pass through the network. As an example, we can imagine a network that tries to determine the personality of a person, so the input would be a set of data about the person. In this way, each feature of this person would be a feature of that entry. In an array of network inputs, we have that each row represents an input and each column represents a feature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*FzLy86iMonWt5GmCjcZFIQ.png" /><figcaption>Input Layer Identification</figcaption></figure><h4>Hidden Layer</h4><p>In fact, this is not just one layer, because the structure of your network may have N hidden layers. This layer is responsible for abstracting the information contained in the inputs, in order to allow the network to interpret the data when applying weights to the inputs.</p><p>Each hidden layer is represented by an array of weights. This array has one column for each node of this layer and one row for each entry of this layer. In this case, the inputs can be the features of the input layer or the outputs of an earlier hidden layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*omGPCLyy5rbthFTBniIzoQ.png" /><figcaption>Hidden Layer Identification</figcaption></figure><h4>Output Layer</h4><p>This is the output layer of your network, in which the forecast or evaluation performed by your network is obtained. The number of nodes depends on the architecture of your network, and may be only a node in the case of a simple quantitative or binary evaluation, or have N nodes, so that each node represents a possible evaluation of its input.</p><p>This layer is also represented by an array of weights, having one column for each output node and one line for each input (remembering that in this case the Output Layer inputs are the outputs of a Hidden Layer).</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*xbThzug4X7dpHrxm3xv61A.png" /><figcaption>Output Layer Identification</figcaption></figure><p>Both the hidden layer and the output layer nodes can have an <strong>activation function</strong>. This function has as inputs: a bias and the sum of the multiplication of each input with its respective weight.</p><p>There are several types of activation functions, for example, the sigmoid, which is an exponential function whose output is limited between 0 and 1. Thus, if a node has an activation function, its output will be the result of this function.</p><h4>Now let’s finally understand how the network learns!</h4><p>During training, your network makes the predictions according to the input features. This prediction is compared to the expected result in order to analyze whether the network was successful or not. With this, we make use of a quadratic error function, which performs the sum of the square of the errors. That way, we have the cost of the network, which means how good or bad the network predictions are. The next step is to use the error to perform the <em>backpropagation</em>.</p><h4>Backpropagation</h4><p>This is the training step in which the weight corrections are performed in each of the weight matrices, both the output layer and the hidden layers.</p><p>It is this correction of the weights that performs the learning of the network, in this way, the network adapts to the context. This correction occurs with the propagation of the error in the opposite direction, that is, from the output layer to the first hidden layer, hence the name <em>backpropagation</em>. In this step, a variation for the weights is calculated through a technique called <em>Descending Gradient</em>.</p><h4>Descending Gradient</h4><p>Here is a partial derivative of the network error function related to the weights. That is, the variation of the network error is measured based on the weights, thus a vector is obtained to correct the weights that points to the minimum error region. Simply put, this technique allows the weights to be updated in the correct direction, avoiding corrections with random values. The downward gradient greatly increases the capacity of the network to converge to more satisfactory results.</p><p>In short, your network is represented by a series of input arrays and weights. During the training phase of your network, the learning takes place through the <em>backpropagation</em> and the descending gradient, which performs the correction of the weights present in the matrices of the hidden layers and the output layer. As training generations go through, the weights are being adjusted and the network adapts to the scenario. Finally, the network efficiency is analyzed by passing its test set by it.</p><p>I hope this article helps you understand a few more concepts of <em>Deep Learning</em>! Until the next!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f8ce3006648" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bawilabs/introduction-to-deep-learning-3f8ce3006648">Introduction to Deep Learning</a> was originally published in <a href="https://medium.com/bawilabs">bawilabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introdução ao Deep Learning]]></title>
            <link>https://medium.com/bawilabs/introdu%C3%A7%C3%A3o-ao-deep-learning-a9aa7fe04fbd?source=rss-38977f6eac13------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9aa7fe04fbd</guid>
            <category><![CDATA[aprendizado-de-máquina]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[inteligência-artificiall]]></category>
            <dc:creator><![CDATA[Allan Handan]]></dc:creator>
            <pubDate>Mon, 11 Sep 2017 17:58:00 GMT</pubDate>
            <atom:updated>2017-09-15T18:11:20.459Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/0*_uFyvCNLk4X8wurX.png" /></figure><p>Dando continuidade ao assunto apresentando no artigo <a href="https://labs.bawi.io/desmistificando-machine-learning-13fc9d360dbd">Desmitificando Machine Learning</a>, serão apresentados aqui alguns conceitos importantes sobre o Deep Learning. Não se preocupe, não entraremos muito na matemática do assunto :P</p><p>Primeiramente, vamos falar sobre o <strong>data set</strong>, que representa os dados que serão utilizados durante o treinamento e avaliação da rede. O data set é dividido em <em>training set</em>, <em>validation set</em> e <em>test set</em>.</p><p>O <strong>training set</strong> representa os dados que serão utilizados na etapa de treinamento. Nesta etapa, uma determinada entrada passa pela rede gerando uma resposta que será comparada com o resultado esperado, permitindo estimar o erro e a correção sobre os pesos da rede através do <strong>backpropagation</strong> (calma que já já veremos este termo!).</p><p>As entradas do <strong>validation set</strong> tambem são utilizadas na etapa de treinamento, porém sua saída não é utilizada para realizar a correção da rede, mas sim para determinar se o treinamento está sendo eficiente e se está ocorrendo <em>overfitting</em> no treinamento.</p><p>Por fim, diferentemente do <em>training set </em>e do <em>validation set</em>, o <strong>test set</strong> não é utilizado na etapa de treinamento. Aliás, ele JAMAIS deve ser utilizado durante o treinamento, pois ele será usado como entrada para a avaliação da accuracy da rede.</p><p>Uma rede convencionalmente apresenta 3 tipos de camadas:</p><h4><strong>Input Layer</strong></h4><p>Esta camada representa a entrada da rede. É importante entender que cada nó nesta camada representa uma feature da entrada que passará pela rede. Como exemplo podemos imaginar uma rede que tenta determinar a personalidade de uma pessoa, então uma entrada seria um conjunto de dados sobre a pessoa. Deste modo, cada característica desta pessoa seria uma feature dessa entrada. Em uma matriz de entradas da rede, temos que cada linha representa uma entrada, já cada coluna representa uma feature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*FzLy86iMonWt5GmCjcZFIQ.png" /><figcaption>Identificação da Input Layer</figcaption></figure><h4><strong>Hidden Layer</strong></h4><p>Na verdade, esta não é apenas <em>uma</em> camada, pois a estrutura da sua rede pode ter N<em> hidden layers</em>. Essa camada é responsável por abstrair as informações contidas nas entradas, de modo a permitir que a rede interprete os dados ao aplicar pesos às entradas.</p><p>Cada <em>hidden layer </em>é representada por uma matriz de pesos. Essa matriz possui uma coluna para cada nó desta camada e uma linha para cada entrada desta camada. Neste caso, as entradas podem ser as features da <em>input layer</em> ou as saídas de uma <em>hidden layer</em> anterior.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*omGPCLyy5rbthFTBniIzoQ.png" /><figcaption>Identificação da Hidden Layer</figcaption></figure><h4><strong>Output Layer</strong></h4><p>Esta é a camada de saída da sua rede, nela é obtida a previsão ou avaliação realizada por sua rede. A quantidade de nós presentes depende da arquitetura de sua rede, podendo ser apenas um nó no caso de uma avaliação quantitativa ou binária simples, ou possuir N nós, de modo que cada nó represente uma possivel avaliação de sua entrada.</p><p>Esta camada também é representada por uma matriz de pesos, possuindo uma coluna para cada nó de saída e uma linha para cada entrada (<em>lembrando que neste caso as entradas do Output Layer são as saídas de uma Hidden Layer</em>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*xbThzug4X7dpHrxm3xv61A.png" /><figcaption>Identificação da Output Layer</figcaption></figure><p>Tanto os nós da hidden layer quanto os da output layer podem apresentar uma <strong>função de ativação</strong>. Essa função tem como entradas: um <em>bias e </em>o somatório da multiplicação de cada entrada com seu respectivo peso.</p><p>Existem vários tipos de funções de ativação, como por exemplo, a <em>sigmoide</em>, que é uma função exponencial cuja a saída é limitada entre 0 e 1. Assim, caso um nó possua uma função de ativação, sua saída será o resultado dessa função.</p><h4>Agora vamos finalmente entender como que a rede aprende!</h4><p>Durante o treinamento, sua rede faz suas previsões de acordo com as features das entradas. Essa previsão é comparada com o resultado esperado, a fim de analisar se a rede acertou ou errou. Com isso, fazemos uso de uma função de erro quadrática, a qual realiza a somatória do quadrado dos erros. Dessa forma, passamos a ter o custo da rede, que significa o quão boas ou ruins estão as previsões da rede. O próximo passo é usar o erro para realizar o <em>backpropagation</em>.</p><h4><strong>Backpropagation</strong></h4><p>Esta é a etapa do treinamento em que são realizadas as correções dos pesos em cada uma das matrizes de peso, tanto da <em>output layer</em> quanto das <em>hidden layers</em>.</p><p>É essa correção dos pesos que realiza o aprendizado da rede, deste modo, a rede vai se adaptando ao contexto. Essa correção ocorre com a propagação do erro no sentido contrário, ou seja, da <em>output layer </em>até a primeira <em>hidden layer</em>, daí o nome <em>backpropagation</em>. Nesta etapa é calculada uma variação para os pesos através de uma técnica chamada <em>Gradiente Descendente</em>.</p><h4><strong>Gradiente Descendente</strong></h4><p>Aqui é feita uma derivada parcial da função de erro da rede com relação aos pesos. Ou seja, é medida a variação do erro da rede com base nos pesos, deste modo é obtido um vetor para correção dos pesos que aponta para a região de erro mínimo. Simplificando, essa técnica permite que os pesos sejam atualizados para uma direção correta, evitando a realização de correções com valores randômicos. O gradiente descendente aumenta muito a capacidade da rede convergir para resultados mais satisfatórios.</p><p>Resumindo, sua rede é representada por uma série de matrizes de entrada e de pesos. Durante a etapa de treinamento de sua rede, o aprendizado se dá através do <em>backpropagation</em> e do <em>gradiente descendente</em>, que realiza a correção dos pesos presentes nas matrizes das <em>hidden layers</em> e da <em>output layer.</em> A medida que as gerações (em inglês, epochs) de treinamento vão passando, os pesos vão sendo ajustados e a rede vai se adaptando ao cenário. Por fim, analisa-se a eficência da rede passando o seu <em>test set</em> por ela.</p><p>Espero que este artigo ajude a entender um pouco mais alguns conceitos do D<em>eep Learning</em>! Até a próxima!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9aa7fe04fbd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bawilabs/introdu%C3%A7%C3%A3o-ao-deep-learning-a9aa7fe04fbd">Introdução ao Deep Learning</a> was originally published in <a href="https://medium.com/bawilabs">bawilabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>