# keisya-putri/eksperimen_sml_keisya architecture

> Architecture diagram of the GitHub repository keisya-putri/eksperimen_sml_keisya, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/keisya-putri/eksperimen_sml_keisya
- Repository: https://github.com/keisya-putri/eksperimen_sml_keisya

## Overview

This repository contains a small dataset-preprocessing workflow. Its sampled script cleans a supplied DataFrame, prepares numeric and categorical features, splits the data, fits and applies a transformer, saves a column header and serialized transformer, and returns the split arrays. The tree also contains a survey CSV and an experiment notebook, but their relationship to the script is not established by the available excerpts.

Main entry points: [`preprocessing/automate_keisya.py`](https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/automate_keisya.py) (Select Features), [`preprocessing/dataset_preprocessing/osmi_features_header.csv`](https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/dataset_preprocessing/osmi_features_header.csv) (Feature Header), [`preprocessing/dataset_preprocessing/preprocessor_osmi.joblib`](https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/dataset_preprocessing/preprocessor_osmi.joblib) (Saved Transformer)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_input(("Input DataFrame"))
node_clean["Clean Dataset<br/>[automate_keisya.py]"]
node_gender["Normalize Gender<br/>[automate_keisya.py]"]
node_features["Select Features<br/>[automate_keisya.py]"]
node_split["Train Test Split<br/>[automate_keisya.py]"]
node_transform["Fit Transformer<br/>[automate_keisya.py]"]
node_header["Feature Header"]
node_model["Saved Transformer"]
node_results["Split Arrays"]
node_notebook["Experiment Notebook"]

node_input -->|"supplies data"| node_clean
node_clean -->|"normalizes gender"| node_gender
node_gender -->|"selects features"| node_features
node_features -->|"splits data"| node_split
node_split -->|"fits and transforms"| node_transform
node_features -->|"writes columns"| node_header
node_transform -->|"saves transformer"| node_model
node_transform -->|"returns splits"| node_results

click node_clean "https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/automate_keisya.py"
click node_gender "https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/automate_keisya.py"
click node_features "https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/automate_keisya.py"
click node_split "https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/automate_keisya.py"
click node_transform "https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/automate_keisya.py"
click node_header "https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/dataset_preprocessing/osmi_features_header.csv"
click node_model "https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/dataset_preprocessing/preprocessor_osmi.joblib"
click node_notebook "https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/Eksperimen_keisya.ipynb"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_input,node_results toneIndigo
class node_clean,node_gender,node_features,node_split,node_transform,node_header,node_model,node_notebook toneTeal
```

## Components

### Other components

- **Input DataFrame**
- [Clean Dataset](https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/automate_keisya.py): `preprocessing/automate_keisya.py`
- [Normalize Gender](https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/automate_keisya.py): `preprocessing/automate_keisya.py`
- [Select Features](https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/automate_keisya.py): `preprocessing/automate_keisya.py`
- [Train Test Split](https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/automate_keisya.py): `preprocessing/automate_keisya.py`
- [Fit Transformer](https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/automate_keisya.py): `preprocessing/automate_keisya.py`
- [Feature Header](https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/dataset_preprocessing/osmi_features_header.csv): `preprocessing/dataset_preprocessing/osmi_features_header.csv`
- [Saved Transformer](https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/dataset_preprocessing/preprocessor_osmi.joblib): `preprocessing/dataset_preprocessing/preprocessor_osmi.joblib`
- **Split Arrays**
- [Experiment Notebook](https://github.com/keisya-putri/eksperimen_sml_keisya/blob/main/preprocessing/Eksperimen_keisya.ipynb): `preprocessing/Eksperimen_keisya.ipynb`

## Connections

- Input DataFrame → Clean Dataset: supplies data (evidence: `preprocessing/automate_keisya.py`)
- Clean Dataset → Normalize Gender: normalizes gender (evidence: `preprocessing/automate_keisya.py`)
- Normalize Gender → Select Features: selects features (evidence: `preprocessing/automate_keisya.py`)
- Select Features → Train Test Split: splits data (evidence: `preprocessing/automate_keisya.py`)
- Train Test Split → Fit Transformer: fits and transforms (evidence: `preprocessing/automate_keisya.py`)
- Select Features → Feature Header: writes columns (evidence: `preprocessing/automate_keisya.py`)
- Fit Transformer → Saved Transformer: saves transformer (evidence: `preprocessing/automate_keisya.py`)
- Fit Transformer → Split Arrays: returns splits (evidence: `preprocessing/automate_keisya.py`)
