# Adult
The [Adult dataset](https://archive.ics.uci.edu/ml/datasets/Adult) from the [UCI ML repository](https://archive.ics.uci.edu/ml/datasets).
Census dataset including personal characteristic of a person, and their income threshold.

# Configurations and tasks
| **Configuration** | **Task**                  | Description                                                     |
|-------------------|---------------------------|-----------------------------------------------------------------|
| encoding          |                           | Encoding dictionary showing original values of encoded features.|
| income            | Binary classification     | Classify the person's income as over or under the threshold.    |
| income-no race    | Binary classification     | As `income`, but the `race` feature is removed.                 |
| race              | Multiclass classification | Predict the race of the individual.                             |

# Usage
```python
from datasets import load_dataset

dataset = load_dataset("mstz/adult", "income")["train"]
```

# Features
Target feature changes according to the selected configuration and is always in last position in the dataset.

|**Feature**                    |**Type**   | **Description**                                            |
|-------------------------------|-----------|------------------------------------------------------------|
|`age`                          |`[int64]`  | Age of the person.                                         |
|`capital_gain`                 |`[float64]`| Capital gained by the person.                              |
|`capital_loss`                 |`[float64]`| Capital lost by the person.                                |
|`education`                    |`[int8]`   | Education level: the higher, the more educated the person. |
|`final_weight`                 |`[int64]`  |                                                            |
|`hours_worked_per_week`        |`[int64]`  | Hours worked per week.                                     |
|`marital_status`               |`[string]` | Marital status of the person.                              |
|`native_country`               |`[string]` | Native country of the person.                              |
|`occupation`                   |`[string]` | Job of the person.                                         |
|`race`                         |`[string]` | Race of the person.                                        |
|`relationship`                 |`[string]` |                                                            |
|`is_male`                      |`[bool]`   | Man/Woman.                                                 |
|`workclass`                    |`[string]` | Type of job of the person.                                 |
|**over_threshold**             |`int8`     | `1` for income `>= 50k$`, `0` otherwise.                   |
task_categories:tabular-classification size_categories:10K<n<100K language:en license:cc adult tabular_classification binary_classification multiclass_classification UCI region:us
{"language": ["en"], "license": "cc", "size_categories": ["10K<n<100K"], "task_categories": ["tabular-classification"], "pretty_name": "Adult", "tags": ["adult", "tabular_classification", "binary_classification", "multiclass_classification", "UCI"], "configs": ["encoding", "income", "income-no race", "race"]}
TAGS
#task_categories-tabular-classification #size_categories-10K<n<100K #language-English #license-cc #adult #tabular_classification #binary_classification #multiclass_classification #UCI #region-us 

Adult
=====


The Adult dataset from the UCI ML repository.
Census dataset including personal characteristic of a person, and their income threshold.


Configurations and tasks
========================


Configuration: encoding, Task: , Description: Encoding dictionary showing original values of encoded features.
Configuration: income, Task: Binary classification, Description: Classify the person's income as over or under the threshold.
Configuration: income-no race, Task: Binary classification, Description: As 'income', but the 'race' feature is removed.
Configuration: race, Task: Multiclass classification, Description: Predict the race of the individual.


Usage
=====


Features
========


Target feature changes according to the selected configuration and is always in last position in the dataset.


Feature: 'age', Type: '[int64]', Description: Age of the person.
Feature: 'capital\_gain', Type: '[float64]', Description: Capital gained by the person.
Feature: 'capital\_loss', Type: '[float64]', Description: Capital lost by the person.
Feature: 'education', Type: '[int8]', Description: Education level: the higher, the more educated the person.
Feature: 'final\_weight', Type: '[int64]', Description: 
Feature: 'hours\_worked\_per\_week', Type: '[int64]', Description: Hours worked per week.
Feature: 'marital\_status', Type: '[string]', Description: Marital status of the person.
Feature: 'native\_country', Type: '[string]', Description: Native country of the person.
Feature: 'occupation', Type: '[string]', Description: Job of the person.
Feature: 'race', Type: '[string]', Description: Race of the person.
Feature: 'relationship', Type: '[string]', Description: 
Feature: 'is\_male', Type: '[bool]', Description: Man/Woman.
Feature: 'workclass', Type: '[string]', Description: Type of job of the person.
Feature: over\_threshold, Type: 'int8', Description: '1' for income '>= 50k$', '0' otherwise.



TAGS
#task_categories-tabular-classification #size_categories-10K<n<100K #language-English #license-cc #adult #tabular_classification #binary_classification #multiclass_classification #UCI #region-us 

passage: TAGS
#task_categories-tabular-classification #size_categories-10K<n<100K #language-English #license-cc #adult #tabular_classification #binary_classification #multiclass_classification #UCI #region-us 
