0% found this document useful (0 votes)
35 views2 pages

ML Ex

The document outlines a process for calculating the Mean Absolute Error (MAE) for various features related to a dataset. It identifies 'Sex' as the feature with the lowest MAE, followed by 'Age' after splitting by 'Sex = Female'. For 'Sex = Male', 'BP' is determined to be the best feature based on MAE calculations.

Uploaded by

pnqanh.gdsciu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views2 pages

ML Ex

The document outlines a process for calculating the Mean Absolute Error (MAE) for various features related to a dataset. It identifies 'Sex' as the feature with the lowest MAE, followed by 'Age' after splitting by 'Sex = Female'. For 'Sex = Male', 'BP' is determined to be the best feature based on MAE calculations.

Uploaded by

pnqanh.gdsciu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Step 1: Calculate the first MAE

1. Calculate the Mean Absolute Error (MAE) for each feature:


- `Sex`: MAE = 0.264
- `BP`: MAE = 0.331
- `Age`: MAE = 0.44
- `Cholesterol`: MAE = 0.456

2. Select the feature with the lowest MAE: `Sex`.

Step 2: Split `Sex = Female`


Features to Consider: `Age`, `BP`, `Cholesterol`
1. Calculate the MAE for each feature:
- `Age`: MAE = 0.125
- `BP`: MAE = 0.33
- `Cholesterol`: MAE = 0.45

2. Best feature: `Age`.

Split by `Age`:
---

Step 3: Split `Age = Middle-age` (Sex = Female)


Features to Consider: `BP`, `Cholesterol`
1. Calculate the MAE for each feature:
- `BP`: MAE = 0.0 (Best split).
- `Cholesterol`: MAE = 0.5.
2. Best feature: `BP`.

---

Step 4: Split `Sex = Male`


Features to Consider: `Age`, `BP`, `Cholesterol`
1. Calculate the MAE for each feature:
- `BP`: MAE = 0.143
- `Age`: MAE = 0.44
- `Cholesterol`: MAE = 0.456

2. Best feature: `BP`.

Split by `BP`:

You might also like