klarsen1 / information Goto Github PK
View Code? Open in Web Editor NEWInformation Package
Information Package
Hi there
Thanks for your Information package.
I have been using the create_infotables and plot_infotables function but I was wondering about the sign of the WOE value. Using the German credit data, variable checkingstatus1 level A11 for example, I manually calculate the WOE as -0.818 whereas it is calculated as 0.818 in create_infotables function. As such the plot_infotables plots the positive 0.818. My calculation of the IV is the same ie 0.206.
See below my example:
url <- ("http://www.biz.uiowa.edu/faculty/jledolter/DataMining/germancredit.csv")
creditdata <- readr::read_csv(url)
gmodels::CrossTable(creditdata$Default,
creditdata$checkingstatus1, prop.r= TRUE, prop.c =FALSE, prop.t=FALSE,
chisq = TRUE)
percentgood <- 0.1985714
percentbad <- 0.45
odds <- percentgood/percentbad
woe <- log(odds)
IV <- create_infotables(data=creditdata,
y="default")
plot_infotables(IV,"checkingstatus1", show_values=TRUE)
suuuuuper blog
https://multithreaded.stitchfix.com/blog/2015/08/13/weight-of-evidence/
and git repo
but only can you share it in python code?
or may be you know some exteranl link for python ?
Hi,
Just wondering if the WOE & IV handles factor columns differently than if they were some type of integer column/id? I have seen some different variable outcomes when using create_infotables()
when having my character columns converted to factors versus when I convert them to numeric id's.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.