Remove separator
This commit is contained in:
@@ -6,14 +6,14 @@ The **Geometry Preserving Categorical Encoder (GPCE)** is a novel categorical da
|
|||||||
|
|
||||||
This repository contains the full implementation of GPCE, along with experimental code used to evaluate its performance against widely adopted categorical encoders.
|
This repository contains the full implementation of GPCE, along with experimental code used to evaluate its performance against widely adopted categorical encoders.
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- **Python 3.11.4**
|
- **Python 3.11.4**
|
||||||
- See `requirements.txt` for full dependency details
|
- See `requirements.txt` for full dependency details
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Motivation
|
## Motivation
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ Most machine learning models require numerical inputs, making categorical encodi
|
|||||||
|
|
||||||
No single traditional method successfully resolves all of these issues at once. GPCE is designed to address this gap.
|
No single traditional method successfully resolves all of these issues at once. GPCE is designed to address this gap.
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Key Idea Behind GPCE
|
## Key Idea Behind GPCE
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ GPCE is based on a **geometric interpretation of categorical variables**. Instea
|
|||||||
|
|
||||||
This geometric symmetry ensures that categories are treated as **equally distinct entities**, faithfully reflecting their categorical nature.
|
This geometric symmetry ensures that categories are treated as **equally distinct entities**, faithfully reflecting their categorical nature.
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Core Design Principles
|
## Core Design Principles
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@ GPCE is built upon three core principles:
|
|||||||
3. **Leakage-Free Encoding**
|
3. **Leakage-Free Encoding**
|
||||||
The encoding process is completely independent of target labels and uses only training data.
|
The encoding process is completely independent of target labels and uses only training data.
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Methodology
|
## Methodology
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ For each categorical feature:
|
|||||||
|
|
||||||
The resulting encoded features are concatenated with existing numerical features and passed directly to machine learning models.
|
The resulting encoded features are concatenated with existing numerical features and passed directly to machine learning models.
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Advantages of GPCE
|
## Advantages of GPCE
|
||||||
|
|
||||||
@@ -94,7 +94,7 @@ The resulting encoded features are concatenated with existing numerical features
|
|||||||
|
|
||||||
While GPCE may not always achieve the single highest accuracy in every setting, it consistently performs near the top and rarely exhibits severe performance degradation.
|
While GPCE may not always achieve the single highest accuracy in every setting, it consistently performs near the top and rarely exhibits severe performance degradation.
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Experimental Evaluation
|
## Experimental Evaluation
|
||||||
|
|
||||||
@@ -113,7 +113,7 @@ Across multiple models, including:
|
|||||||
|
|
||||||
Results demonstrate that GPCE achieves **high predictive stability and competitive accuracy** across diverse learning algorithms.
|
Results demonstrate that GPCE achieves **high predictive stability and competitive accuracy** across diverse learning algorithms.
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Experimental Results
|
## Experimental Results
|
||||||
|
|
||||||
@@ -141,7 +141,7 @@ While it does not always achieve the highest accuracy in every setting,
|
|||||||
it consistently performs better than most baseline encoders and avoids
|
it consistently performs better than most baseline encoders and avoids
|
||||||
severe performance degradation.
|
severe performance degradation.
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@@ -202,7 +202,7 @@ X_train_enc, X_test_enc = gpc_encoder(
|
|||||||
# - Are directly usable in standard machine learning models
|
# - Are directly usable in standard machine learning models
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Sample Dataset
|
## Sample Dataset
|
||||||
|
|
||||||
@@ -212,7 +212,7 @@ The experiments in this repository use the **Bank Marketing Dataset** from Kaggl
|
|||||||
|
|
||||||
This dataset contains multiple high-cardinality categorical features and serves as a realistic benchmark for evaluating categorical encoding methods.
|
This dataset contains multiple high-cardinality categorical features and serves as a realistic benchmark for evaluating categorical encoding methods.
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user