NumPy
SoftwareWikipedia
158
MENTIONS
49
EPISODES
22
PODCASTS
Search complete. 158 mentions across 49 episodes found for "NumPy".
Nov 13, 2026
Neural Networks from Scratch - P.3 The Dot Product
H
3:40Harrison KinsleyHOST
So yeah, that's a cleaner, more dynamic way of doing inputs times the weights plus the bias for a layer in Python.
H
3:50Harrison KinsleyHOST
Now we're still going to transition to doing this with NumPy and doing vectors and matrices and stuff like that, but this is a cleaner way.
H
3:59Harrison KinsleyHOST
And if you're following along in some other language, obviously the answer is to use loops.
H
4:07Harrison KinsleyHOST
So now the next thing I want to touch before we get into the NumPy stuff is we're still getting a lot of questions on weights and biases.
H
4:15Harrison KinsleyHOST
So I just want to clear that up as quickly as possible.
H
4:18Harrison KinsleyHOST
So weights and biases are these knobs that I say we tune, but really down the line, it's going to be the optimizer that tunes these values in an attempt to fit to some data.
H
7:22Harrison KinsleyHOST
So these are just two different tools that help in two different ways and and that's it So anyways, I think this will make more sense as we especially get into Activation functions and like rectified linear.
H
7:34Harrison KinsleyHOST
It should be unbelievably obvious what bias can do for you But anyway, just for now hopefully you can see that there are two different tools doing two different things and if we have millions of these little tools that we can sort of tweak we can change the overall kind of outputs and Now, with that in mind, let's get into transitioning into more real mathematics rather than this stuff.
Neural Networks from Scratch - P.4 Batches, Layers, and Objects
H
13:33Harrison KinsleyHOST
All right, so let's go ahead and transpose the weights.
H
13:36Harrison KinsleyHOST
Now, to do that, we're actually going to convert weights to a NumPy array.
H
13:39Harrison KinsleyHOST
Now, why do we need to do that? So right now, inputs and weights are lists of lists in Python.
H
13:45Harrison KinsleyHOST
When we pass those to NumPy's dot product function here, what's happening is in the back end, these inputs and this weight these are actually getting converted to NumPy arrays.
H
13:55Harrison KinsleyHOST
But since we want to use NumPy to transpose the weights, we actually are going to convert weights now to NumPy array weights.
H
14:04Harrison KinsleyHOST
And then to transpose that, it's actually just dot capital T.
H
14:08Harrison KinsleyHOST
Boom, transpose.
11 MINS LATER
H
24:56Harrison KinsleyHOST
So in this case, you're going to pass a batch.
Neural Networks from Scratch - P.5 Hidden Layer Activation Functions
H
27:11Harrison KinsleyHOST
Actually, there's two reasons we're going to use this NNFS package.
H
27:14Harrison KinsleyHOST
The first is for stuff like NumPy.
H
27:17Harrison KinsleyHOST
So our goal and our hope here is that everybody can follow along and get the same values as we do, at least if they want to.
H
27:25Harrison KinsleyHOST
Obviously, again, if you're following along in another language or maybe you want to change things and not do things exactly the same way as I'm doing, which is totally fine, but if you want to confirm that you're doing things correctly, you need to be able to repeat the results that we get.
H
27:57Harrison KinsleyHOST
So it won't work very well just as a heads up.
H
28:01Harrison KinsleyHOST
But you'll also need to always be doing that.
H
28:02Harrison KinsleyHOST
So instead, what we're going to do is we're going to import nnfs and then do nnfs.init. And besides setting the random seed, the other thing nnfs init is doing for us is it's setting a default data type for NumPy to use.
H
28:17Harrison KinsleyHOST
So for whatever reason, the dot product for NumPy, we only found this out after getting many people in the document and finding some people were getting slightly different values, and it was very weird.
Paul Allen: Ancestry.com Co-Founder on 35 Years of Startups, Facebook Apps, AI, Local News
P
64:27Paul AllenGUEST
So Travis Oliphant, who just moved to Utah after 25 years in Austin, you guys should interview Travis.
P
64:33Paul AllenGUEST
He invented NumPy and SciPy.
P
64:35Paul AllenGUEST
He created Anaconda, which is a $1 or $2 billion company to distribute Python into enterprise.
P
64:41Paul AllenGUEST
Travis is one of the top three or four people in the world in the Python ecosystem.
P
64:46Paul AllenGUEST
He's the reason Python was the language for AI.
P
64:50Paul AllenGUEST
Yeah.
P
64:50Paul AllenGUEST
because he built NumPy and SciPy.
P
64:54Paul AllenGUEST
So Travis is an investor and we hired some of his AI experts to build custom ML models back in 2020.
Neural Networks from Scratch - P.6 Softmax Activation
H
12:22Harrison KinsleyHOST
Those values should be pretty close to what's in the book.
H
12:25Harrison KinsleyHOST
It actually isn't exactly, but this isn't using NumPy.
H
12:29Harrison KinsleyHOST
So the values should line up, I think, when we're using NumPy.
H
12:33Harrison KinsleyHOST
We'll confirm that when we get there.
H
12:36Harrison KinsleyHOST
But so the NNFS, first of all, we're not even initializing the NNFS package, but that is part of what the init package is doing.
H
13:00Harrison KinsleyHOST
So that's the raw Python implementation.
H
13:04Harrison KinsleyHOST
And again, if you're coming from some other language, you would need to implement this in your language.
H
13:09Harrison KinsleyHOST
But now the next thing that we're going to do is convert this to NumPy.
Pixell Tutorial - Mathew Madhavacheril (February 6, 2020)
M
15:08Mathew MadhavacherilGUEST
To read in a map, you can use the end map module and just say we have Okay, so what this does is it opens up the fits file, looks in the fits headers, and then loads in a map.
M
15:31Mathew MadhavacherilGUEST
A really important point I want to make around here is that the way that maps work in pixel is by pixel basically extends the NumPy array.
M
15:43Mathew MadhavacherilGUEST
So if you're familiar with working with NumPy arrays, then pixel is really fun to use.
M
15:48Mathew MadhavacherilGUEST
because anything that you can do to a numpy array, it inherits all of the properties of numpy array, but it extends on top of that by adding this WCS object, which we just talked about as a world coordinate system object.
M
16:01Mathew MadhavacherilGUEST
So this particular command is going to load in the FITS header.
M
17:02Mathew MadhavacherilGUEST
All right, so once this is loaded in, we're going to print out the shape and dtype or data type of the sample array.
M
17:14Mathew MadhavacherilGUEST
And you can see it's a two-dimensional array with shape 1505 and 3521, which means that there's 1,505 pixels along the y-direction and 3,521 along the x-direction.
M
17:30Mathew MadhavacherilGUEST
And this is, you know, the most basic structure that you can have in an ND map, which is an extension of a NumPy array.
Cyber Python 2077 - Using computer vision to read and walk from Cyberpunk 2077 map
H
9:55Harrison KinsleyHOST
So let's just look at it real quick.
H
9:58Harrison KinsleyHOST
We don't have NumPy.
H
9:59Harrison KinsleyHOST
Let's import NumPy as np.
H
10:04Harrison KinsleyHOST
Save that.
H
10:05Harrison KinsleyHOST
Run it.
Run your own AI (but private)
N
14:20Network ChuckHOST
First of all, you would need some hardware, servers with GPUs.
N
14:23Network ChuckHOST
Then you would also need a bunch of tools and libraries and SDKs like PyTorch and TensorFlow, Pandas, NumPy, Scikit-learn, Transformers and FastAI.
N
14:32Network ChuckHOST
The list goes on.
N
14:33Network ChuckHOST
You need lots of tools and resources in order to fine tune an LLM.
Charting Stocks and Forex Part 21 - How to calculate exponential moving average in python
H
3:40Harrison KinsleyHOST
Now, what we'll do for this is, again, it needs to weight the closer or more recent data more.
H
3:49Harrison KinsleyHOST
And luckily for us, NumPy has exponential kind of like built into it, so we can kind of use it.
H
3:54Harrison KinsleyHOST
So anyway, weight equals np.exp. And then we want to use np.linspace, negative 1, comma, 0, comma, and then the window.
H
4:11Harrison KinsleyHOST
Now, the next thing we want to do is say weights divided by equal weights.sum.
Neural Networks from Scratch - P.7 Calculating Loss with Categorical Cross-Entropy
H
10:06Harrison KinsleyHOST
We're going to be using math for math.log.
H
10:08Harrison KinsleyHOST
In the previous example, I used numpy.log.
H
10:11Harrison KinsleyHOST
But we're going to use math.log because this is neural networks from scratch in Python, and NumPy is kind of cheating.
H
10:18Harrison KinsleyHOST
So this is how we get around that.
H
10:20Harrison KinsleyHOST
So we'll use math in this example.
39 more episodes mention NumPy.
Create an account to see the whole feed, search across every transcript, and follow the entities you care about.