<?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 Marvin López Osorio on Medium]]></title>
        <description><![CDATA[Stories by Marvin López Osorio on Medium]]></description>
        <link>https://medium.com/@marvinlpezosorio?source=rss-1e87689f95e7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*L7pswNTySEb5gpi2a-TceA.png</url>
            <title>Stories by Marvin López Osorio on Medium</title>
            <link>https://medium.com/@marvinlpezosorio?source=rss-1e87689f95e7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:20:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@marvinlpezosorio/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[Keras vs Tensorflow vs Pytorch]]></title>
            <link>https://medium.com/@marvinlpezosorio/keras-vs-tensorflow-vs-pytorch-c0191900c9e9?source=rss-1e87689f95e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0191900c9e9</guid>
            <category><![CDATA[pytorch]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[keras]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Marvin López Osorio]]></dc:creator>
            <pubDate>Sat, 09 Jul 2022 17:58:34 GMT</pubDate>
            <atom:updated>2022-07-09T18:43:17.474Z</atom:updated>
            <content:encoded><![CDATA[<p>In the Deep Learning world, there are plenty of different frameworks, libraries, and tools to help develop and implement solutions. Currently, the most popular frameworks are Keras, Tensorflow, and Pytorch. Each of them has strengths and weaknesses over the other two.</p><h4>Keras</h4><p>Keras is an open source library built on Python that has high-level neural net API that has been adopted by the likes of TensorFlow to create new architectures. It combines the readability and user-friendliness of Python with rapid prototyping and experimentation, which makes it a good option for anyone starting in this field. The latest versions have Keras as a dependency for installing Tensorflow on Python.</p><h4>Tensorflow</h4><p>Tensorflow is a framework and platform for machine learning first developed by Google, and then made available as an open-source project. It provides both high and low-level APIs which allows building models with similar ease to Keras but also allows very customizable functionalities for more experienced users. Tensorflow has official APIs for many programming languages such as Python, JavaScript, C++ and Java and other maintained by the community. Even though you can interact with it on a high-level, Tensorflow also allows various low-level customizations for particular needs.</p><h4>Pytorch</h4><p>Pytorch is a framework for machine learning, developed by Facebook at first and then open-sourced. It’s considered simple, easy to use, and very flexible. It’s mostly based on Python, so it’s considered more pythonic by users of this programming language. Pytorch also has more debugging capabilities that make big projects debugging easy and maintainable. Finally, Pytorch has many supporters from academia and research given the flexibility and customization it provides with great simplicity.</p><h4>Conclusion</h4><p>Keras is probably the best to give the first steps into the deep learning world for its simplicity. In the field, it can be an efficient tool to create initial prototypes and models on small datasets. Tensorflow and Pytorch are at the same level of computing speed, processing large datasets, and low-level control over the process. And while Pytorch may offer more flexibility and debugging capabilities, Tensorflow offers multi-platform support, and more visualization options, and eases the deployment of trained models to production.</p><p>There is no point in selecting the ‘best’ framework or library, but it’s relevant to know about the differences between the different options, their strengths, and weaknesses, and take the right tool for the right work. But in the end, the decision of which tool to use is biased by personal experiences and preferences, technical limitations, and the type of work to be done. The most important thing to be a great professional is to be familiar with and take advantage of different frameworks.</p><h4>Sources</h4><ul><li><a href="https://keras.io/">https://keras.io/</a></li><li><a href="https://www.tensorflow.org/overview">https://www.tensorflow.org/overview</a></li><li><a href="https://pytorch.org/">https://pytorch.org/</a></li><li><a href="https://www.edureka.co/blog/keras-vs-tensorflow-vs-pytorch/#:~:text=Keras%20has%20a%20simple%20architecture,less%20when%20compared%20to%20Keras">https://www.edureka.co/blog/keras-vs-tensorflow-vs-pytorch</a></li><li><a href="https://www.simplilearn.com/keras-vs-tensorflow-vs-pytorch-article">https://www.simplilearn.com/keras-vs-tensorflow-vs-pytorch-article</a></li><li><a href="https://blog.dominodatalab.com/tensorflow-pytorch-or-keras-for-deep-learning">https://blog.dominodatalab.com/tensorflow-pytorch-or-keras-for-deep-learning</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0191900c9e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RNN vs CNN: a beginner’s point of view]]></title>
            <link>https://medium.com/@marvinlpezosorio/rnn-vs-cnn-a-beginners-point-of-view-63d9a52b4023?source=rss-1e87689f95e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/63d9a52b4023</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[Marvin López Osorio]]></dc:creator>
            <pubDate>Sat, 09 Jul 2022 17:27:47 GMT</pubDate>
            <atom:updated>2022-07-09T17:27:47.241Z</atom:updated>
            <content:encoded><![CDATA[<p>When you start learning about AI in general, there’s a probable knowledge roadmap you’ll go through. Starting with statistics, some programming, diving into Machine Learning, and knowing about different models for different solutions, you finally reach Deep Learning, and this is where things change a bit.</p><p>Yes, Deep Learning is also based on statistics and algorithms, and yes, you have to code things for them to work, but there are also different models that behave better on particular problems.</p><p>Here come the well-known improvements from the traditional Neural Networks, which perform much better for certain types of data, and excel in certain tasks: Recurrent Neural Networks (RNN) and Convolutional Neural Networks (CNN).</p><p>But, what is the main difference between these models? First, let’s review the Neural Network concept: A network of individual perceptrons in successive layers. Perceptrons are just functions that take parameters and give a result based on those parameters. Adjust the parameters (by iteration) well enough and you’ll get a usable model.</p><p>Now, RNNs and CNNs change this concept a bit, to allow better processing and results:</p><ul><li>RNNs are used for modeling time series or sequential data by taking into account the dependencies between data points in a time series or sequence of dependent points,</li><li>CNNs, on the other hand, are designed to work with spatial data by taking into account the dependencies between pixels in an image.</li></ul><p>Let’s go more in-depth on the technical differences between these models.</p><h4>Recurrent Neural Networks</h4><p>When dealing with sequential data, usually the data points are considered isolated states. Even though the data is sampled from a sequence of states, they are fed to a traditional neural network as individual inputs, thus, removing its sequential nature.</p><p>If we evaluate data points in a sequence, but each of them is isolated from the others, the model will process them as individual inputs, thus not considering the dependency of the actual sequential phenomenon when predicting future states. It’s essentially not considering the last action when predicting a new frame on a video, or not considering the impact that previous words have when completing a text, because the model is not keeping the relationship between the inputs.</p><p>RNNs handle this problem by adding a new hidden state which gets passed to the next iteration of the network as information about the previous iteration. That way the network gets “memory” about the previous steps to predict the next ones, so the prediction of new states (or new values in a sequence) does not depend only on the isolated inputs, but also on the data coming through the hidden state about previous inputs.</p><p>This recurrent factor in the RNNs makes them perform much better than traditional NN in tasks like natural language processing (sentiment analysis, translations, autocorrect tools), audio (music composition, noise analysis), and time series, all of which have a sequential element in common.</p><p>However, even when some of the problems with ‘memory’ are solved with the recurrent approach, there is a very relevant limitation worth considering: the lack of long-term memory. Recurrence solves the problem in a short-term frame, however, there’s a bigger challenge in propagating all the information in too wide time windows and more complex hidden architecture where other models like LSTM or GRU (which are also variants of RNN) perform better.</p><h4>Convolutional Neural Networks</h4><p>CNNs on the other hand, have an architecture that is more suited for spatial data, mostly images. Unlike humans, computers “see” images as arrays of numbers that represent the intensities of color values (Red, Green, Blue) that each pixel has, over a certain width and height. The CNNs’ structure allows the processing of this type of array very efficiently.</p><p>Another characteristic that puts apart the CNNs from the traditional neural networks models (and even the recurrent ones) is that they have, on their convolutional part, a set of so-called filters and pooling layers. After said layers, there is another set of layers that perform the classification tasks, more similar to a traditional neural network than the convolutional part.</p><p>Filters are part of the convolutional layers: a randomized set of numbers that are multiplied by the array values of the image. After each iteration, these values are adjusted automatically through a loss function, to optimize their results. The filters allow detection of the most important features of the images, and layers of filters allow to decompose the image in its relevant parts, effectively understanding and identifying edges, curves, textures, and more patterns and features of the image.</p><p>On the other hand, the pooling layer receives the filtered output from the convolutional layer and tries to reduce the data size to a minimum that still keeps the same information as the original image. This condenses the most essential features from the previous layer and increases the efficiency of the algorithm by optimizing the amount of data to be processed.</p><p>There can be several layers of filters and pooling layers. Finally, a set of perceptron layers is used to classify the images, effectively labeling the processed images. Different strategies in the selection of filters, pooling layers, activation functions, and structure of the classification network can bring several different possibilities and results.</p><p>While CNNs have great advantages in the field of computer vision, there are also some negative aspects to consider. For example, they require huge amounts of labeled data to be able to generalize to a point where they perform well. Also, the structure differs from other architectures in ways, like processing the images from scratch, which might not be too clear to understand at the beginning and the implementation can be significantly more complex than those of other models.</p><h4>Conclusion</h4><p>Both architectures are very efficient in the particular problems they solve. However, as with everything related to machine learning, there is always new research, optimized architectures, the combination of techniques, etc, that requires a deeper understanding of the deep learning models and constant learning.</p><p>RNNs and CNNs are complementary models in some cases, such as video analysis, which requires both image recognition and sequential analysis in order to reach a particular objective. This is just an example that the wide range of models there are is just a glimpse of the potential of deep learning technologies for multiple purposes. And while RNNs and CNNs are the most popular, there are also lots of other approaches and models to learn from.</p><p><strong>Sources:</strong></p><ul><li><a href="https://www.techtarget.com/searchenterpriseai/feature/CNN-vs-RNN-How-they-differ-and-where-they-overlap">https://www.techtarget.com/searchenterpriseai/feature/CNN-vs-RNN-How-they-differ-and-where-they-overlap</a></li><li><a href="https://datascientest.com/es/recurrent-neural-network-rnn-de-que-se-trata">https://datascientest.com/es/recurrent-neural-network-rnn-de-que-se-trata</a></li><li><a href="https://datascientest.com/es/convolutional-neural-network-es">https://datascientest.com/es/convolutional-neural-network-es</a></li><li><a href="https://www.telusinternational.com/articles/difference-between-cnn-and-rnn">https://www.telusinternational.com/articles/difference-between-cnn-and-rnn</a></li><li><a href="https://www.javatpoint.com/tensorflow-cnn-vs-rnn">https://www.javatpoint.com/tensorflow-cnn-vs-rnn</a></li><li><a href="https://www.javatpoint.com/recurrent-neural-network-in-tensorflow">https://www.javatpoint.com/recurrent-neural-network-in-tensorflow</a></li><li><a href="https://www.javatpoint.com/convolutional-neural-network-in-tensorflow">https://www.javatpoint.com/convolutional-neural-network-in-tensorflow</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63d9a52b4023" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>