Giter Club home page Giter Club logo

Comments (9)

Hmaoxian avatar Hmaoxian commented on July 29, 2024

hello~I can't install the package successfully by running the following code,could you please give me some help?

library(devtools)
install_github("tomasgreif/woe")
library(woe)
the error is like this:
install_github("tomasgreif/woe")
Downloading github repo tomasgreif/woe@master
Error in curl::curl_fetch_memory(url, handle = handle) :
Timeout was reached

from woe.

Chuck-UGA avatar Chuck-UGA commented on July 29, 2024

I have the same issue @kevinogoro, all of my numerical variables would yield this error.

from woe.

XiaoxiaoWang87 avatar XiaoxiaoWang87 commented on July 29, 2024

Same problem as @kevinogoro and @Chuck-UGA. The german_data works fine, but my data crashes. What's wrong?

from woe.

tomasgreif avatar tomasgreif commented on July 29, 2024

Hi @XiaoxiaoWang87 @Chuck-UGA . I am not mantaining this package as it was more an exercise in package development. If you can send me a dataset where error can be reproduced I can try to find the source of error.

from woe.

XiaoxiaoWang87 avatar XiaoxiaoWang87 commented on July 29, 2024

Hi @tomasgreif , all. Thanks! I eventually solved my problem by doing row.names(dat) <- 1:nrow(dat) before running iv.mult(). I'm not sure why but originally my dataset row names are not ordered, which potentially caused the crash. Perhaps other people had a similar problem?

from woe.

tomasgreif avatar tomasgreif commented on July 29, 2024

Yeah, that could cause a problem. When nodes from decision trees are
assigned back to data the algorithm silently assumes that rownames are
ordered.

On 10 August 2015 at 20:34, XiaoxiaoWang87 [email protected] wrote:

Hi @tomasgreif https://github.com/tomasgreif , all. Thanks! I
eventually solved my problem by doing row.names(dat) <- 1:nrow(dat) before
running iv.mult(). I'm not sure why but originally my dataset row names are
not ordered, which potentially caused the crash. Perhaps other people had a
similar problem?


Reply to this email directly or view it on GitHub
#1 (comment).

from woe.

xxiang13 avatar xxiang13 commented on July 29, 2024

I had a same issue. After debugging, I found out the issue caused by unmatched row names. Since I deleted some rows before, but in R the row.names won't update. For example, if I delete 10th row, the row.names would show 7,8,9,11. In this package, in function ivr.num(), it uses row.names to be 'foreign key' to merge two data frame, so causes NA rows. At the end, outcome variable Y would have 3 classes, which are '0', '1', '' and shows the error message: iv.str(df, "tmp_iv_calc_label", y) : Not a binary outcome. In order to solve the problem, you can reorder row names of your data before use the function by doing row.names(data) = seq(1,nrow(data)). Hope it helps!

from woe.

chiraxjr avatar chiraxjr commented on July 29, 2024

One could just do the rownames(dataset)=NULL, the algo will start working.

from woe.

RaviThej0803 avatar RaviThej0803 commented on July 29, 2024

can this function -> iv.mult(train_data, "ABOVE50K", TRUE), be used when my train_data has both character and integer data

from woe.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.