Example: Difference between revisions

202 bytes added ,  19 February 2023
no edit summary
No edit summary
No edit summary
Line 6: Line 6:
An example in machine learning refers to a pair of input and output values used to train a model. The input value is made up of [[features]] or attributes that describe an object or phenomenon, while the output value serves as its [[label]] or [[class]]. For instance, spam detection systems typically take email messages (input) as their label (output), which could either be "spam" or "not spam." Similarly, image recognition systems take pictures as inputs and assign them labels describing what the image depicts. Suppose we collected a dataset of 2000 apartments with their features and prices. The features and the price of a single apartment would be an example.
An example in machine learning refers to a pair of input and output values used to train a model. The input value is made up of [[features]] or attributes that describe an object or phenomenon, while the output value serves as its [[label]] or [[class]]. For instance, spam detection systems typically take email messages (input) as their label (output), which could either be "spam" or "not spam." Similarly, image recognition systems take pictures as inputs and assign them labels describing what the image depicts. Suppose we collected a dataset of 2000 apartments with their features and prices. The features and the price of a single apartment would be an example.


3 labeled examples:
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 21: Line 22:
|-
|-
| Downtown || 2 || 1 || $700,000
| Downtown || 2 || 1 || $700,000
|-
|}
3 unlabeled examples:
{| class="wikitable"
|-
! colspan="3"| Features
|-
! Temperature
! Precipitation
! Humidity
|-
| 25 || 9 || 12
|-
| 20 || 54 || 32
|-
| 31 || 0 || 87
|-
|-
|}
|}