# Notations

The training set is denoted by X.

It has N training examples.

Each example is denoted by $$x^t, r^t$$ where $$x^t$$ is the feature set of the $$t^{th}$$ training example and $$r^t$$ is the corresponding label.

$$x^t=\begin{bmatrix}x\_1^t\x\_2^t\\.\\.\\.\x\_d^t\end{bmatrix}$$

The training set is denoted as $$X = {x^t, r^t}\_{t=1}^{N}$$

h(x) is the hypothesis that assigns a label r to x. For example, if we have a task of classifying cars as family cars/not family cars, based on two features $$X\_1, X\_2$$, based on the below feature space, we could hypothesize that:

$$h(x) = \begin{cases}1; P\_1\leq X\_1\leq P\_2 ,,&,, e\_1\leq X\_2\leq e\_2\0; otherwise\end{cases}$$

![](/files/-M5-0S7tkpJlw48aYWmM)

This hypothesis, however, may or may not be correct.

The error of the hypothesis h on X is given by:

$$E(h|X)$$ or $$Err(h|X) = |{x^t \in X | h(x^t) \neq r^t }|$$, basically the number of misclassified examples.

Say we know the correct hypothesis and we compare our current hypothesis with the correct hypothesis:

![](/files/-M5-0S7wIAFz5qZn1vyy)

The current hypothesis labels everything inside the orange box as + and everything outside as -.

False positives are examples that are mistakenly labeled by our current hypothesis as positive. False negatives are examples that are mistakenly labeled by our current hypothesis as negative.

Based on the task at hand, we must focus on reducing either false positives or false negatives.


---

# Agent Instructions: 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:

```
GET https://vikram-bajaj.gitbook.io/cs-gy-6923-machine-learning/types-of-machine-learning/supervised-learning/notations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
