BrainsToBytes - page 3

Hands-on NumPy(III): Indexing and slicing

NumPy array indexing is a big topic, and there are many different ways of selecting elements from an array. Let’s start with the simplest case: selecting an entry from a 1-dimensional array. import numpy as np arr = np.arange(10) print(arr) [0 1 2 3 4 5 6 7 8 9] You can access elements from a 1-dimensional array in NumPy using the same sy...

Read more

Hands-on NumPy (I): Creating ndarrays

NumPy (an acronym for Numeric Python) is a library for working with multi-dimensional arrays and matrices. It was created in 2005 by Travis Oliphant, and since then received numerous contributions from the community that enabled it to grow into one of the most used tools in data science. NumPy lets you manipulate huge arrays in a very performan...

Read more

Deep Learning Basics(11): Moving forward

We reached the end of our introductory journey in deep learning. Now you understand what this is all about. Maybe you really like it and are ready to deepen your knowledge in the topic(deepen, deep learning, get it? 👀). This will be a shorter article, I’ll just offer some pointers you can follow as next steps. Good, let’s get started! ...

Read more

Deep Learning Basics(10): Regularization

In the previous article we learned how to use Keras to build more powerful neural networks. Professional-grade libraries like Keras, Tensorflow, and Pytorch let you build neural networks that can learn intricate patterns and solve novel problems. Deep-learning networks lets learn subtle patterns thanks to their inherently large hypothesis space...

Read more

Deep Learning Basics(9): Building networks using Keras

We already covered the most important deep learning concepts and created different implementations using vanilla Python. Now, we are in a position where we can start building something a bit more elaborate. We’ll use a more hands-on approach by building a deep learning model for classification using production-grade software. You will learn ho...

Read more

Deep Learning Basics(7): Correlation

In previous articles, we learned how neural networks adjust their weights to improve the accuracy of their predictions using techniques like gradient descent. In this article, we will take a look at the learning process using a more abstract perspective. We will discuss the correlation between inputs and outputs in a training set, and how neura...

Read more

Deep Learning Basics(6): Generalized gradient descent (II)

In the previous article the foundations for a generalized implementation of gradient descent. Namely, cases with multiple inputs and one output, and multiple outputs and one input. In this article, we will continue our generalization efforts to come up with a version of gradient descent that works with any number of inputs and outputs. First, ...

Read more

Deep Learning Basics(5): Generalized gradient descent (I)

In the previous article, we learned about gradient descent with a simple 1-input/1-output network. In this article, we will learn how to generalize this technique for networks with any number of inputs and outputs. We will concentrate on 3 different scenarios: Gradient descent with on NNs with multiple inputs and a single output. Gradient...

Read more

Deep Learning Basics(4): Gradient Descent

In the previous article, we learned about hot/cold learning. We also learned that hot/cold learning has some problems: it’s slow and prone to overshoot, so we need a better way of adjusting the weights. A better approach should take into consideration how accurate our predictions are and adjust the weights accordingly. Predictions that are way...

Read more

Deep Learning Basics(3): Hot/Cold learning

In the previous articles, we learned how neural networks perform estimations: a weighted sum is performed between the network inputs and its weights. Until now, the values of those weights were given to us by a mysterious external force. We took for granted that those are the values that produce the best estimates. Finding the right value for e...

Read more

Deep Learning Basics(2): Estimation

In the previous article we learned what a neural network is and how it performs predictions: the input is combined with knowledge (in the form of a weight value) to produce an output. In practice, just one input and one weight are rarely of any use. Most systems in the real world are much more complex, so you will need networks that can handle ...

Read more

Deep Learning Basics(1): Introduction

So, deep learning. Have you heard about it? If you work in the tech sector, you probably have. Every week you see news about how people are using it to solve all sorts of interesting challenges. Because of all the interest (and sometimes raw hype) around deep learning, you might believe that it’s some sort of revolutionary new technology. Well,...

Read more

Those little bugs in our brains

We tend to think of our brains as infallible logical machines with perfect memory and absolute rationality. We couldn’t be more wrong: it doesn’t matter how educated or intelligent we are, there are inherent flaws in our brains we just can’t get rid of. This has nothing to do with your preparation or ability for rational thinking, usually, it’s...

Read more