From 8d34db3e3d34695ce4aac376022af198022cf967 Mon Sep 17 00:00:00 2001 From: Claudio Salvatore Arcidiacono <22871978+ClaudioSalvatoreArcidiacono@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:06:15 +0100 Subject: [PATCH] Improve documentation --- README.md | 20 ++++++++++---------- docs/index.md | 20 ++++++++++---------- mkdocs.yml | 1 + sklearo/encoding/woe.py | 20 ++++++++++---------- 4 files changed, 31 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index a9747b2..1d085e4 100644 --- a/README.md +++ b/README.md @@ -34,16 +34,16 @@ encoder = WOEEncoder() encoder.fit(df[["category"]], df["target"]) encoded = encoder.transform(df[["category"]]) print(encoded) -category -0 -0.223144 -1 -0.223144 -2 -0.223144 -3 1.029619 -4 1.029619 -5 1.029619 -6 1.029619 -7 1.029619 -8 1.029619 + category +0 -0.916291 +1 -0.916291 +2 -0.916291 +3 0.470004 +4 0.470004 +5 0.470004 +6 0.470004 +7 0.470004 +8 0.470004 ``` ## Features diff --git a/docs/index.md b/docs/index.md index b632a1e..ea40adc 100644 --- a/docs/index.md +++ b/docs/index.md @@ -30,16 +30,16 @@ encoder = WOEEncoder() encoder.fit(df[["category"]], df["target"]) encoded = encoder.transform(df[["category"]]) print(encoded) -category -0 -0.223144 -1 -0.223144 -2 -0.223144 -3 1.029619 -4 1.029619 -5 1.029619 -6 1.029619 -7 1.029619 -8 1.029619 + category +0 -0.916291 +1 -0.916291 +2 -0.916291 +3 0.470004 +4 0.470004 +5 0.470004 +6 0.470004 +7 0.470004 +8 0.470004 ``` ## Features diff --git a/mkdocs.yml b/mkdocs.yml index 29f34e9..b9037cb 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,5 +1,6 @@ site_name: sklearo site_url: https://claudiosalvatorearcidiacono.github.io/sklearo/ +repo_url: https://github.com/ClaudioSalvatoreArcidiacono/sklearo theme: name: material diff --git a/sklearo/encoding/woe.py b/sklearo/encoding/woe.py index 6e0ffce..dd1c917 100644 --- a/sklearo/encoding/woe.py +++ b/sklearo/encoding/woe.py @@ -113,16 +113,16 @@ class WOEEncoder(BaseTargetEncoder): encoder.fit(df[["category"]], df["target"]) encoded = encoder.transform(df[["category"]]) print(encoded) - category - 0 -0.223144 - 1 -0.223144 - 2 -0.223144 - 3 1.029619 - 4 1.029619 - 5 1.029619 - 6 1.029619 - 7 1.029619 - 8 1.029619 + category + 0 -0.916291 + 1 -0.916291 + 2 -0.916291 + 3 0.470004 + 4 0.470004 + 5 0.470004 + 6 0.470004 + 7 0.470004 + 8 0.470004 ``` """