WEBVTT
Kind: captions
Language: en

00:00:00.080 --> 00:00:05.520
Both of these cars are being controlled by an&nbsp;
AI. But one of them was handcoded by me, a human,&nbsp;&nbsp;

00:00:05.520 --> 00:00:10.640
and the other was coded entirely by Claude. Both&nbsp;
of these AIs evolved over thousands of generations&nbsp;&nbsp;

00:00:10.640 --> 00:00:15.600
to get to this point, and today I'm going to&nbsp;
unleash them in a head-to-head race to see who&nbsp;&nbsp;

00:00:15.600 --> 00:00:19.920
wins. This experiment is going to be a lot of fun,&nbsp;
but I'm actually doing it to prove a point. I got&nbsp;&nbsp;

00:00:19.920 --> 00:00:25.760
this comment the other day. Just use AI, lol.&nbsp;
Why did you was all this tin? And this comment&nbsp;&nbsp;

00:00:25.760 --> 00:00:32.080
really got me thinking. All these massive LLMs&nbsp;
like Claude, Chat GBT, and Gemini are definitely&nbsp;&nbsp;

00:00:32.080 --> 00:00:36.560
changing the world of coding at large. They're&nbsp;
changing the whole world at large. And a lot of&nbsp;&nbsp;

00:00:36.560 --> 00:00:41.280
people think that they're not changing it for&nbsp;
the better. I'm someone who loves to learn new&nbsp;&nbsp;

00:00:41.280 --> 00:00:46.320
things. Right now, I'm learning to code and make&nbsp;
YouTube videos, but I'm really starting to wonder,&nbsp;&nbsp;

00:00:46.320 --> 00:00:51.440
what's the point of learning something that an&nbsp;
AI can just do for me? Well, today we're going to&nbsp;&nbsp;

00:00:51.440 --> 00:00:54.800
find out. And we're going to show that commenter&nbsp;
why learning things the hard way is still worth&nbsp;&nbsp;

00:00:54.800 --> 00:01:01.040
it by building a self-driving AI that can destroy&nbsp;
whatever Claude comes up with. Hopefully. I mean,&nbsp;&nbsp;

00:01:01.040 --> 00:01:08.000
I have no idea how this is going to go, but what I&nbsp;
do know is that it is not going to be easy. Chat,&nbsp;&nbsp;

00:01:08.000 --> 00:01:11.200
I think this is going to be easy. Wo, I&nbsp;
can't see with these things. All right,&nbsp;&nbsp;

00:01:11.200 --> 00:01:16.560
so we're going to be opening up VS Code today and&nbsp;
we're going to be coding a car AI from scratch.&nbsp;&nbsp;

00:01:16.560 --> 00:01:20.720
I got to stop making these intros so dramatic.&nbsp;
Anyways, there's a couple things I got to build&nbsp;&nbsp;

00:01:20.720 --> 00:01:24.480
before race day. We're going to have to make a&nbsp;
little racing game for our AIs to play. I'm going&nbsp;&nbsp;

00:01:24.480 --> 00:01:28.480
to have to design my own AI model. And then I'm&nbsp;
going to have to set up a training environment so&nbsp;&nbsp;

00:01:28.480 --> 00:01:32.080
we can learn to drive. So, let's start with&nbsp;
making our racing game. First, I'm going to&nbsp;&nbsp;

00:01:32.080 --> 00:01:36.400
need a way to render cars and obstacles.&nbsp;
I'm coding this entire project in Python,&nbsp;&nbsp;

00:01:36.400 --> 00:01:40.640
which is a pretty beginner-friendly programming&nbsp;
language. There are plenty of libraries out there&nbsp;&nbsp;

00:01:40.640 --> 00:01:44.720
that we could use for this kind of thing, but&nbsp;
I decided to use Pygame because I had a bit&nbsp;&nbsp;

00:01:44.720 --> 00:01:49.040
of experience with it. Using Pygame, I set up a&nbsp;
basic game loop and made some labels to keep my&nbsp;&nbsp;

00:01:49.040 --> 00:01:52.800
codebase organized. If you think about it, almost&nbsp;
everything that we're going to build for this&nbsp;&nbsp;

00:01:52.800 --> 00:01:57.520
program fits into one of these three categories.&nbsp;
Processing inputs, updating the physics, and then&nbsp;&nbsp;

00:01:57.520 --> 00:02:03.600
rendering things onto the screen. Okay, we've&nbsp;
got a window. Once I had a window popping up,&nbsp;&nbsp;

00:02:03.600 --> 00:02:08.480
I started following a random JavaScript tutorial&nbsp;
on a self-driving car implementation. Don't worry,&nbsp;&nbsp;

00:02:08.480 --> 00:02:12.720
I didn't end up following it for very long until&nbsp;
I split off and decided to do my own thing. for&nbsp;&nbsp;

00:02:12.720 --> 00:02:17.040
better or for worse. Following a coding tutorial&nbsp;
that's using a different coding language than the&nbsp;&nbsp;

00:02:17.040 --> 00:02:21.200
one you're writing your implementation in can&nbsp;
be a little tricky, but I'm plenty stubborn,&nbsp;&nbsp;

00:02:21.200 --> 00:02:25.120
so I wasn't going to let that stop me. I made a&nbsp;
car object, and then I gave it a couple important&nbsp;&nbsp;

00:02:25.120 --> 00:02:29.040
attributes that we're going to need for this&nbsp;
project. Stuff like the car's position, velocity,&nbsp;&nbsp;

00:02:29.040 --> 00:02:34.000
speed, all that good stuff. I see the issue. We&nbsp;
don't want y, we want x. Okay. Okay, cool. So,&nbsp;&nbsp;

00:02:34.000 --> 00:02:38.560
we have some movement. We want the controls to&nbsp;
feel like a car. So, the rectangle should only be&nbsp;&nbsp;

00:02:38.560 --> 00:02:44.320
able to move forward with holding left or right&nbsp;
creating steering, not lateral movement. Okay,&nbsp;&nbsp;

00:02:44.320 --> 00:02:49.600
there we go. Look at look at this little guy go.&nbsp;
The tutorial then started going over how to make a&nbsp;&nbsp;

00:02:49.600 --> 00:02:54.000
threelane racing game, starting with implementing&nbsp;
the lane. But at this point, I decided that I&nbsp;&nbsp;

00:02:54.000 --> 00:02:59.040
wanted to break away. By the way, now's probably&nbsp;
a good time to mention that I've set a few rules&nbsp;&nbsp;

00:02:59.040 --> 00:03:03.120
for myself during this project. First of all, I&nbsp;
have to live stream the entire process of coding&nbsp;&nbsp;

00:03:03.120 --> 00:03:07.680
the project on Twitch. I'm not allowed to use any&nbsp;
machine learning libraries and I'm not allowed to&nbsp;&nbsp;

00:03:07.680 --> 00:03:12.560
use generative AI to make my own AI model. That&nbsp;
would kind of defeat the point. I was feeling&nbsp;&nbsp;

00:03:12.560 --> 00:03:16.560
confident, but setting these rules was going to&nbsp;
make this project a lot harder. Instead of doing&nbsp;&nbsp;

00:03:16.560 --> 00:03:21.040
the whole infinite driving in a lane thing, I&nbsp;
decided to do something that would require a&nbsp;&nbsp;

00:03:21.040 --> 00:03:27.280
bit more of a artistic setup. So, I hopped over&nbsp;
to Photoshop and with the help of Twitch chat,&nbsp;&nbsp;

00:03:27.280 --> 00:03:32.320
designed the layout of our racetrack. And wait,&nbsp;
that's a Should we call it the digestive track?&nbsp;&nbsp;

00:03:32.320 --> 00:03:37.920
That's a good name. That's a good name. Oh,&nbsp;
what if we put like right here? Digestive track&nbsp;&nbsp;

00:03:37.920 --> 00:03:44.800
uh raceway. I ended up making a couple of these.&nbsp;
And don't worry, the final track that the face&nbsp;&nbsp;

00:03:44.800 --> 00:03:48.880
off is going to happen on is going to look way&nbsp;
better. I added my track image into my game. And&nbsp;&nbsp;

00:03:48.880 --> 00:03:53.920
then I used one of Pygame's built-in functions&nbsp;
to make a bounding hit box that fits the exact&nbsp;&nbsp;

00:03:53.920 --> 00:03:58.640
shape of the track. And with that done, I had a&nbsp;
whole little game on my hands. Oh, this is this&nbsp;&nbsp;

00:03:58.640 --> 00:04:05.680
is going to be a hard track. If things stayed this&nbsp;
easy, this uh this project uh Oh, this project is&nbsp;&nbsp;

00:04:05.680 --> 00:04:11.040
going to be a piece of cake. Oh. Oh sh Yeah, this&nbsp;
ended up being one of my biggest projects ever,&nbsp;&nbsp;

00:04:11.040 --> 00:04:14.640
including all the scripting and editing time. So,&nbsp;
if you're enjoying the video, it would mean the&nbsp;&nbsp;

00:04:14.640 --> 00:04:18.480
world to me if you would consider subscribing&nbsp;
or hyping the video. It helps me out a lot.&nbsp;&nbsp;

00:04:18.480 --> 00:04:22.720
That's all. Thank you so much. Well, we'd better&nbsp;
keep coding. Next, we're going to need to invent&nbsp;&nbsp;

00:04:22.720 --> 00:04:26.720
intelligence from the ground up. Our self-driving&nbsp;
AI is going to need a lot of the same things&nbsp;&nbsp;

00:04:26.720 --> 00:04:33.520
that a human needs to learn things. Number one,&nbsp;
observations. Number two, a brain. Number three,&nbsp;&nbsp;

00:04:33.520 --> 00:04:37.520
the chance to evolve over thousands of generations&nbsp;
with countless instances running in tandem,&nbsp;&nbsp;

00:04:37.520 --> 00:04:43.760
creating the perfect storm of an environment for&nbsp;
the slow evolution of its DNA. Let's start with&nbsp;&nbsp;

00:04:43.760 --> 00:04:48.400
observations. I started by creating a method in&nbsp;
the car object that takes the number of sensors&nbsp;&nbsp;

00:04:48.400 --> 00:04:52.640
you want as an argument. Then, using a bit of&nbsp;
simple math that could have helped me hang the art&nbsp;&nbsp;

00:04:52.640 --> 00:04:57.280
in my apartment a little more evenly, I calculate&nbsp;
what angles the sensors should point at. Next,&nbsp;&nbsp;

00:04:57.280 --> 00:05:01.680
I made a stepping method for the sensor that&nbsp;
checks every pixel one step at a time in the&nbsp;&nbsp;

00:05:01.680 --> 00:05:07.360
direction that the sensor points and checks if&nbsp;
it's ran into the track. Oh, let's go. Look at&nbsp;&nbsp;

00:05:07.360 --> 00:05:11.920
this, chat. Look at this. Everything we need right&nbsp;
there. The important detail here is that we don't&nbsp;&nbsp;

00:05:11.920 --> 00:05:16.320
just want to check if we've hit a wall at all. We&nbsp;
also need to measure the distance between the car&nbsp;&nbsp;

00:05:16.320 --> 00:05:20.560
and the wall so that when we build the car's&nbsp;
brain, it can tell whether it's in danger of&nbsp;&nbsp;

00:05:20.560 --> 00:05:26.240
hitting the walls. Speaking of cars and brains,&nbsp;
we'd better start working on the car's brain.&nbsp;&nbsp;

00:05:26.240 --> 00:05:30.880
To build it, we're going to need some shockingly&nbsp;
simple math. The same math that at scale can&nbsp;&nbsp;

00:05:30.880 --> 00:05:38.160
produce complex LLMs like Claude, who is our&nbsp;
opponent in this video. So, boo. So, first we're&nbsp;&nbsp;

00:05:38.160 --> 00:05:42.480
going to have to make a single neuron. Let's start&nbsp;
by taking the readouts from all seven of the car&nbsp;&nbsp;

00:05:42.480 --> 00:05:47.920
sensors and multiplying each one by a weight. A&nbsp;
number that basically represents how important the&nbsp;&nbsp;

00:05:47.920 --> 00:05:53.200
neuron thinks that that signal is. Once each input&nbsp;
is multiplied by its weights, we then add them&nbsp;&nbsp;

00:05:53.200 --> 00:05:58.160
all together plus one extra number called a bias.&nbsp;
We'll get to determining those weights and biases&nbsp;&nbsp;

00:05:58.160 --> 00:06:02.960
in a moment. Just stick with me here. Let's add up&nbsp;
all those totals that we just calculated and run&nbsp;&nbsp;

00:06:02.960 --> 00:06:08.560
that number through an activation function that&nbsp;
simplifies it down to a number between -1 and 1.&nbsp;&nbsp;

00:06:08.560 --> 00:06:13.920
With the right weights and biases, this one neuron&nbsp;
can now recognize a simple pattern. For example,&nbsp;&nbsp;

00:06:13.920 --> 00:06:18.880
the left wall is close to me right now. And if you&nbsp;
connect a whole network of these things together,&nbsp;&nbsp;

00:06:18.880 --> 00:06:23.760
they can learn some very complex behaviors.&nbsp;
Like when the left wall is getting close,&nbsp;&nbsp;

00:06:23.760 --> 00:06:28.640
I should probably turn right. In computer science,&nbsp;
we call this a neural network. The first layer has&nbsp;&nbsp;

00:06:28.640 --> 00:06:33.200
seven inputs, one for each of the sensors that we&nbsp;
gave the car. And the last layer represents all&nbsp;&nbsp;

00:06:33.200 --> 00:06:38.400
of the possible outputs that it can choose from.&nbsp;
The two connecting layers of 15 neurons are called&nbsp;&nbsp;

00:06:38.400 --> 00:06:43.920
hidden layers. And adding them in allows space for&nbsp;
reasoning and pattern recognition to occur in the&nbsp;&nbsp;

00:06:43.920 --> 00:06:49.360
network. Right now, my AI model theoretically&nbsp;
has the capacity to learn, but unless someone&nbsp;&nbsp;

00:06:49.360 --> 00:06:53.680
magically gave us the optimal weights and&nbsp;
biases for every single neuron connection,&nbsp;&nbsp;

00:06:53.680 --> 00:06:58.640
it's not going to be insert NASCAR driver's&nbsp;
name anytime soon. All right, we've designed the&nbsp;&nbsp;

00:06:58.640 --> 00:07:02.800
architecture of our neural network and we've given&nbsp;
it the ability to see, but if we want our model to&nbsp;&nbsp;

00:07:02.800 --> 00:07:07.440
have a chance of beating whatever Claude comes up&nbsp;
with, we're going to need to teach it to drive.&nbsp;&nbsp;

00:07:07.440 --> 00:07:11.520
And speaking of Claude, I should mention that at&nbsp;
some point in the build process for this AI model,&nbsp;&nbsp;

00:07:11.520 --> 00:07:15.440
I had some chatters telling me that well that&nbsp;
first of all that I'm a Chud and second of all&nbsp;&nbsp;

00:07:15.440 --> 00:07:20.160
that ChatGBT would probably make an AI that could&nbsp;
beat mine. So I thought that the best way to prove&nbsp;&nbsp;

00:07:20.160 --> 00:07:25.360
them wrong would be to make an AI that could beat&nbsp;
any of the Frontier models. Gemini, Chat GBT, and&nbsp;&nbsp;

00:07:25.360 --> 00:07:30.560
Claude all at the same time on one big racetrack.&nbsp;
And if I'm not strong enough to pull out the W,&nbsp;&nbsp;

00:07:30.560 --> 00:07:35.360
then we'll at least find out which of these models&nbsp;
is the best at coding, I guess. Hello, it's Luke&nbsp;&nbsp;

00:07:35.360 --> 00:07:39.120
but from the future. And as I just mentioned,&nbsp;
later in this video, I'm going to merge a bunch&nbsp;&nbsp;

00:07:39.120 --> 00:07:44.320
of AI generated code into my codebase. And can I&nbsp;
just be honest with you? I didn't read the code.&nbsp;&nbsp;

00:07:44.320 --> 00:07:48.240
And that's one of the big problems with AI right&nbsp;
now. There's more code being generated than ever&nbsp;&nbsp;

00:07:48.240 --> 00:07:52.560
before, and there's less code being actually read.&nbsp;
But that's where the sponsor of this segment of&nbsp;&nbsp;

00:07:52.560 --> 00:07:57.840
the video, CodeRabbit, comes in. CodeRabbit is not&nbsp;
an AI that writes code. It's a code review agent.&nbsp;&nbsp;

00:07:57.840 --> 00:08:02.960
You open a pull request, it reads the context of&nbsp;
your codebase, finds problems, and then for a lot&nbsp;&nbsp;

00:08:02.960 --> 00:08:07.360
of those problems, it offers you a one-click fix.&nbsp;
Their new change stack makes reviewing PRs easier&nbsp;&nbsp;

00:08:07.360 --> 00:08:12.160
than ever before. It breaks the PR into groups of&nbsp;
related changes, puts all the most important stuff&nbsp;&nbsp;

00:08:12.160 --> 00:08:15.680
first, and then gives you all sorts of summaries&nbsp;
and diagrams right where you need them. You can&nbsp;&nbsp;

00:08:15.680 --> 00:08:18.640
fly through the whole thing with keyboard&nbsp;
shortcuts and then submit the review back&nbsp;&nbsp;

00:08:18.640 --> 00:08:22.400
to GitHub without even leaving your browser tab.&nbsp;
And the cool thing is that CodeRabbit even learns&nbsp;&nbsp;

00:08:22.400 --> 00:08:26.640
your coding style and adapts to it over time. So,&nbsp;
I've ran it on a pull request for this project&nbsp;&nbsp;

00:08:26.640 --> 00:08:30.640
and check it out. It's giving me super useful&nbsp;
summaries, explaining exactly what changes were&nbsp;&nbsp;

00:08:30.640 --> 00:08:34.880
made, and then even showing me potential risks&nbsp;
with merging this PR. CodeRabbit is installed&nbsp;&nbsp;

00:08:34.880 --> 00:08:39.920
on over three million repos. It's used by over&nbsp;
a 100,000 open source projects, including Bun,&nbsp;&nbsp;

00:08:39.920 --> 00:08:45.440
and it's doing 2 million PR reviews every single&nbsp;
week. So, if you want to catch and fix issues in&nbsp;&nbsp;

00:08:45.440 --> 00:08:49.760
your codebase faster, check out CodeRabbit. Use&nbsp;
my link. It's linked down in the description.&nbsp;&nbsp;

00:08:49.760 --> 00:08:54.080
And now, let's get back to the freaking car&nbsp;
AI video that we're watching right now. So,&nbsp;&nbsp;

00:08:54.080 --> 00:08:59.280
how do we teach my AI to drive? Let's create a&nbsp;
population of a 100 cars with every neural network&nbsp;&nbsp;

00:08:59.280 --> 00:09:03.760
filled with completely random weights and set&nbsp;
them loose. Most of these guys are demonstrating&nbsp;&nbsp;

00:09:03.760 --> 00:09:09.680
some serious skill issues. But look, this car's&nbsp;
brain is just random noise like everybody else's,&nbsp;&nbsp;

00:09:09.680 --> 00:09:13.280
but he managed to make it around the corner. So,&nbsp;
let's give all the cars like this one that did&nbsp;&nbsp;

00:09:13.280 --> 00:09:18.000
better than the pack a bunch of chances to breed&nbsp;
as a reward for surviving. Just like nature,&nbsp;&nbsp;

00:09:18.000 --> 00:09:22.240
by the way. We're going to do that by inserting&nbsp;
it into a breeding pool and then taking all of&nbsp;&nbsp;

00:09:22.240 --> 00:09:26.880
the cars in the breeding pool and randomly pairing&nbsp;
them up with each other. Whenever we breed a car,&nbsp;&nbsp;

00:09:26.880 --> 00:09:31.440
a new car spawns with a random selection&nbsp;
of weights from both parent A and parent&nbsp;&nbsp;

00:09:31.440 --> 00:09:35.680
B's brain. Basically, we're scrambling the two&nbsp;
brains together and hoping that we get a new&nbsp;&nbsp;

00:09:35.680 --> 00:09:41.120
brain that's even smarter than either parent as a&nbsp;
result. So, let's take our entire breeding pool,&nbsp;&nbsp;

00:09:41.120 --> 00:09:47.440
spit out 100 new cars using our breeding function,&nbsp;
and set generation 2 loose onto the track. Wow,&nbsp;&nbsp;

00:09:47.440 --> 00:09:53.120
I think we're already seeing some improvements.&nbsp;
But there's still one major issue with this setup.&nbsp;&nbsp;

00:09:53.120 --> 00:09:57.920
Our cars have learned to successfully drive around&nbsp;
the track, but they've completely conformed to one&nbsp;&nbsp;

00:09:57.920 --> 00:10:02.320
single behavior. Since all our breeding function&nbsp;
does is randomly selects weights from either&nbsp;&nbsp;

00:10:02.320 --> 00:10:07.840
parent A or parent B, the best result that we can&nbsp;
expect to reach is just the optimal combination of&nbsp;&nbsp;

00:10:07.840 --> 00:10:12.640
all the original random weights. But what if that&nbsp;
combination isn't good enough? Well, just like in&nbsp;&nbsp;

00:10:12.640 --> 00:10:16.960
nature, we need to introduce some randomness. So,&nbsp;
after every generation, let's loop through all of&nbsp;&nbsp;

00:10:16.960 --> 00:10:21.440
our new cars and give them a small chance for&nbsp;
mutation. Now we just repeat that process for a&nbsp;&nbsp;

00:10:21.440 --> 00:10:25.760
couple hundred generations and boom, we're seeing&nbsp;
all sorts of improvements on the racetrack. I'm&nbsp;&nbsp;

00:10:25.760 --> 00:10:29.040
I'm happy with how this turned out. All right, so&nbsp;
we've designed our model. Now we just need to go&nbsp;&nbsp;

00:10:29.040 --> 00:10:33.360
collect all the submissions from our AI opponents&nbsp;
and duct tape everything together. I've spent&nbsp;&nbsp;

00:10:33.360 --> 00:10:38.560
around 10 hours making this game and my AI model.&nbsp;
I wonder how long it'll take Claude and the other&nbsp;&nbsp;

00:10:38.560 --> 00:10:42.880
models to make theirs. All right, so we're here&nbsp;
in Chadbt. I've dropped in all the files and I&nbsp;&nbsp;

00:10:42.880 --> 00:10:47.920
have this big prompt that basically tells it what&nbsp;
to do. There is no AI in the repo. Your job is to&nbsp;&nbsp;

00:10:47.920 --> 00:10:52.960
build one and it's entirely up to you how the&nbsp;
goal make your cars learn to drive as fast as&nbsp;&nbsp;

00:10:52.960 --> 00:10:57.920
possible generation over generation. So I'm giving&nbsp;
it no specific instructions on like what kind of&nbsp;&nbsp;

00:10:57.920 --> 00:11:02.320
machine learning algorithm to implement. So we're&nbsp;
going to see what these guys come up with. So I'm&nbsp;&nbsp;

00:11:02.320 --> 00:11:07.920
going to set chat GPT loose and hopefully we see&nbsp;
it start to think here. All right. Wow, it spit&nbsp;&nbsp;

00:11:07.920 --> 00:11:12.640
that out quickly. Okay. Well, let's hang on to&nbsp;
that for now and let's go to Claude. Um and we're&nbsp;&nbsp;

00:11:12.640 --> 00:11:17.920
going to do the same thing with the same prompt.&nbsp;
We're going to set Claude loose. Then finally,&nbsp;&nbsp;

00:11:17.920 --> 00:11:22.560
we're going to go to Gemini, paste our prompt, and&nbsp;
set it loose. So, I'm going to let these guys come&nbsp;&nbsp;

00:11:22.560 --> 00:11:27.040
up with whatever they're going to come up with,&nbsp;
and then we will take a look. All right. Now,&nbsp;&nbsp;

00:11:27.040 --> 00:11:31.200
we just need to rig everybody together and&nbsp;
set them loose on a training run. But first,&nbsp;&nbsp;

00:11:31.200 --> 00:11:37.280
let me introduce our contestants in the red car.&nbsp;
The only competitor here with a biological brain.&nbsp;&nbsp;

00:11:37.280 --> 00:11:43.760
It uses a tanh activation function. It's got 440&nbsp;
total parameters, and it has a secret weapon. It's&nbsp;&nbsp;

00:11:43.760 --> 00:11:48.800
the only model with two hidden layers, and you'll&nbsp;
see why that matters soon. In the orange car,&nbsp;&nbsp;

00:11:48.800 --> 00:11:54.800
we've got Claude. It's got the smallest brain here&nbsp;
and only one layer of 10 neurons. Its network is&nbsp;&nbsp;

00:11:54.800 --> 00:12:00.640
mirror symmetric, so it's basically going to learn&nbsp;
twice as fast. In the blue car, we've got Gemini.&nbsp;&nbsp;

00:12:00.640 --> 00:12:07.120
Seven sensors plus its own speedometer into one&nbsp;
hidden layer of 12 neurons. And in the green car,&nbsp;&nbsp;

00:12:07.120 --> 00:12:12.320
Chat GPT. Chat GBT's network handmp computes a&nbsp;
bunch of extra information based on the sensor&nbsp;&nbsp;

00:12:12.320 --> 00:12:17.680
readings so that it has 12 total inputs and it&nbsp;
even hard-coded some driving instincts on top&nbsp;&nbsp;

00:12:17.680 --> 00:12:22.480
of that. Hopefully that'll be enough. Something&nbsp;
tells me that this one might be my nemesis. Okay,&nbsp;&nbsp;

00:12:22.480 --> 00:12:27.120
now we just need to train all the models and then&nbsp;
when they're done we can pit them all against each&nbsp;&nbsp;

00:12:27.120 --> 00:12:32.160
other in one final race. So here's how this is&nbsp;
going to work. Every model gets a population of&nbsp;&nbsp;

00:12:32.160 --> 00:12:37.280
250 cars. And then all of the populations get to&nbsp;
train on the different training tracks. And at the&nbsp;&nbsp;

00:12:37.280 --> 00:12:42.640
end of each generation, every model takes its own&nbsp;
population scores and evolves the next 250 cars&nbsp;&nbsp;

00:12:42.640 --> 00:12:46.640
using its own learning rules. Let's get started.&nbsp;
Set them loose. I don't know how this is going to&nbsp;&nbsp;

00:12:46.640 --> 00:12:51.920
go. I'm hopefully going to catch a victory today&nbsp;
and my own car is going to beat the clankers,&nbsp;&nbsp;

00:12:51.920 --> 00:12:56.240
but we will find out. So, red is one of my&nbsp;
cars and right now I'm in the lead. I'm not&nbsp;&nbsp;

00:12:56.240 --> 00:13:00.000
going to lie. It's looking pretty good for me.&nbsp;
I haven't seen this yet. I I'm reacting live.&nbsp;&nbsp;

00:13:00.000 --> 00:13:04.640
This is actually a great start for me. Okay. Okay.&nbsp;
Claude's taking the lead. So, right out the gate,&nbsp;&nbsp;

00:13:04.640 --> 00:13:10.000
Claude was way ahead of the pack, like super far&nbsp;
ahead, and it was not looking good for me. But I&nbsp;&nbsp;

00:13:10.000 --> 00:13:14.560
still had hope that my model would be able to&nbsp;
catch up, because my model has one thing that&nbsp;&nbsp;

00:13:14.560 --> 00:13:20.000
the other ones do not. It has a second hidden&nbsp;
layer, and more hidden layers means more room&nbsp;&nbsp;

00:13:20.000 --> 00:13:24.240
for reasoning than any of the other models.&nbsp;
The trade-off is that it takes way more time&nbsp;&nbsp;

00:13:24.240 --> 00:13:29.680
to fine-tune all of the extra weights. So, in&nbsp;
other words, Claude learns faster, but I'm hoping&nbsp;&nbsp;

00:13:29.680 --> 00:13:40.560
that my model can learn more. At least that's the&nbsp;
hope. Let's run this thing overnight and find out.

00:13:40.560 --> 00:13:45.280
So, when I woke up the next day, I stumbled over&nbsp;
to my computer and checked the leaderboard from&nbsp;&nbsp;

00:13:45.280 --> 00:13:49.600
the overnight run, and it was pretty much&nbsp;
a four-way photo finish. After hundreds&nbsp;&nbsp;

00:13:49.600 --> 00:13:54.640
of generations, all four models ended up with&nbsp;
near identical fitness. Gemini caught up after&nbsp;&nbsp;

00:13:54.640 --> 00:13:59.280
some time. Chat TBT caught up and I was really&nbsp;
hoping to see my model take a late lead, but it&nbsp;&nbsp;

00:13:59.280 --> 00:14:04.640
wasn't looking good. Basically, every single model&nbsp;
eventually mastered all the training tracks. So,&nbsp;&nbsp;

00:14:04.640 --> 00:14:09.120
the final race was going to be kind of a tossup.&nbsp;
But I guess that means that there's only one thing&nbsp;&nbsp;

00:14:09.120 --> 00:14:14.320
left to do. But before the big race, I want to say&nbsp;
something. I spent all this time making this model&nbsp;&nbsp;

00:14:14.320 --> 00:14:20.000
with one goal in mind. Even if Claude, Chat, GBT,&nbsp;
and Gemini can make models that are just as good,&nbsp;&nbsp;

00:14:20.000 --> 00:14:24.880
if not better, than mine in about 30 seconds,&nbsp;
they can't learn for me. In the process of&nbsp;&nbsp;

00:14:24.880 --> 00:14:29.600
building this thing, I deepened my own neural&nbsp;
networks understanding of the world. And for me,&nbsp;&nbsp;

00:14:29.600 --> 00:14:33.520
that's what it's all about. So, anyways,&nbsp;
let's get on to the race. Let's let's roll&nbsp;&nbsp;

00:14:33.520 --> 00:14:37.040
it. Ladies and gentlemen, the time has come.&nbsp;
We've come a long way. We've built a game&nbsp;&nbsp;

00:14:37.040 --> 00:14:41.760
from scratch. We've implemented our own&nbsp;
model from scratch. We vibec coated three&nbsp;&nbsp;

00:14:41.760 --> 00:14:46.560
other models and harnessed them together and&nbsp;
trained them with an overnight training run.&nbsp;&nbsp;

00:14:46.560 --> 00:14:51.440
And now there's only one thing left to do and&nbsp;
that's race. This is the final racetrack. This&nbsp;&nbsp;

00:14:51.440 --> 00:14:55.520
is the final gauntlet. Um you can see here&nbsp;
it starts pretty chill with a big wide bend,&nbsp;&nbsp;

00:14:55.520 --> 00:14:59.840
but then they encounter some zigzags and then&nbsp;
they encounter a floating circle in the middle&nbsp;&nbsp;

00:14:59.840 --> 00:15:03.360
of the track. They've never seen an obstacle like&nbsp;
that before and I have no idea how they're going&nbsp;&nbsp;

00:15:03.360 --> 00:15:08.800
to react. Then there's some even more zigzags down&nbsp;
here and then finally lots of intense turns. turns&nbsp;&nbsp;

00:15:08.800 --> 00:15:13.760
tighter than anything they've ever seen in any&nbsp;
of their training tracks. My honest prediction,&nbsp;&nbsp;

00:15:13.760 --> 00:15:19.280
I'm going to predict second place. I think I'm&nbsp;
faster than Gemini, but I think Claude and Chat&nbsp;&nbsp;

00:15:19.280 --> 00:15:24.880
GPT are both better racers than me, but I don't&nbsp;
think I have anything left to say. Let's just&nbsp;&nbsp;

00:15:24.880 --> 00:15:30.800
let it rip. I'm so nervous. Oh my gosh. Okay,&nbsp;
go. Oh, actual countdown now. 3 2 1 go. And&nbsp;&nbsp;

00:15:30.800 --> 00:15:34.880
they're off to the races. Okay, so far I'm in&nbsp;
it. It's anyone's race. Gemini took that turn&nbsp;&nbsp;

00:15:34.880 --> 00:15:38.080
tighter than anyone else and now he's got a little&nbsp;
bit of a lead. I'm looking like I'm probably in&nbsp;&nbsp;

00:15:38.080 --> 00:15:41.440
third place right now, but this turn is going&nbsp;
to determine a lot. Onto the tight zigzags,&nbsp;&nbsp;

00:15:41.440 --> 00:15:47.040
making it through and then onto the circle. Oh my&nbsp;
gosh. Oh my gosh. Oh my god. Claude and and Gemini&nbsp;&nbsp;

00:15:47.040 --> 00:15:51.120
crashed. Now it's down to just me and ChatBT.&nbsp;
Onto the tight turns into the final section&nbsp;&nbsp;

00:15:51.120 --> 00:15:56.160
here. This is the hardest part of the track right&nbsp;
now. And oh my god. Oh my god. Chatbt crashed. I'm&nbsp;&nbsp;

00:15:56.160 --> 00:16:01.360
the only one left. That means if I could just&nbsp;
finish these last couple turns right here. Oh,&nbsp;&nbsp;

00:16:01.360 --> 00:16:10.960
let's go. Yes. No way. Oh my god. No way. I won.&nbsp;
Ladies and gentlemen, we've done it. Thank you to&nbsp;&nbsp;

00:16:10.960 --> 00:16:14.480
all of my channel members for supporting&nbsp;
the channel and thank you for watching.

