> For the complete documentation index, see [llms.txt](https://notes.adarshdubey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.adarshdubey.com/deep-learning/deep-learning-specialization-notes/1.-neural-networks-and-deep-learning/week-1.md).

# Week 1

## Neural network

Let's see what exactly a neural network is. Let's consider an example on houring price prediction.

So suppose we have the data of 6 houses along with their prices and we're going to use it to make a machine learning model.

<img src="/files/lrCiE1wyfQiFIfc8DXfL" alt="Graph of our dataset" class="gitbook-drawing">

Now in machine learning, we would simply plot a line in the graph using some like linear regression. *Let's plot it in the above example.*

<img src="/files/lrCiE1wyfQiFIfc8DXfL" alt="Graph of our dataset" class="gitbook-drawing">

Now we have drawn a simple blue linear line that can work pretty well on the above dataset.&#x20;

But heyyy, wait! Price can-not be negative, atleast in our case, it seems illogical to sell a house at negative price. So to fix that, we'll put a simple straight line at the x-axis so that the blue line can never go below x-axis.

<img src="/files/lrCiE1wyfQiFIfc8DXfL" alt="Graph of our dataset" class="gitbook-drawing">

Now if you see closely, you would see, we have built a simple machine learning model. But in fact, this is also a deep learning model.&#x20;

<img src="/files/n4OCv7edsTdoKJXjuuFo" alt="Our most simple neural network" class="gitbook-drawing">

And as you can see, this is our neural network, basically a single perceptron for our dataset. In fact, the function we used above is very widely used in deep learning and is known as [**ReLU**](#user-content-fn-1)[^1]**.**

In the above example, we had nothing but house size. But suppose, now we have a lot more information about the house, in such cases, we create a more complex neural network like below.

<img src="/files/BWNPhlHLR5EnFXEdwilZ" alt="A more complex neural network" class="gitbook-drawing">

## Supervised learning

Supervised learning is basically training a deep learning (or machine learning) model on a data, which has all the labels including the target label.

It can be done in any of the way.

### Structured data

A data that is in more of a tablular format.

### Un-structured data

Some data like images, audios or something else that is not structured properly.

[^1]: Rectified Linear Units


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://notes.adarshdubey.com/deep-learning/deep-learning-specialization-notes/1.-neural-networks-and-deep-learning/week-1.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
