Skip to content

Commit

Permalink
Improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaudioSalvatoreArcidiacono committed Dec 12, 2024
1 parent 90b9a53 commit 8d34db3
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 30 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 10 additions & 10 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
site_name: sklearo
site_url: https://claudiosalvatorearcidiacono.github.io/sklearo/
repo_url: https://github.com/ClaudioSalvatoreArcidiacono/sklearo

theme:
name: material
Expand Down
20 changes: 10 additions & 10 deletions sklearo/encoding/woe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
"""

Expand Down

0 comments on commit 8d34db3

Please sign in to comment.