zmjones / edarf

exploratory data analysis using random forests
MIT License
68 stars 11 forks source link

Example does not work #50

Closed PhilippPro closed 8 years ago

PhilippPro commented 8 years ago

Something with "gridsize" is wrong:

> library(randomForest)
randomForest 4.6-12
Type rfNews() to see new features/changes/bug fixes.
> library(edarf)
> 
> data(iris)
> data(swiss)
> 
> ## classification
> fit <- randomForest(Species ~ ., iris)
> pd <- partial_dependence(fit, iris, c("Petal.Width", "Sepal.Length"))
Fehler in ifelse(gridsize >= nunique, nunique, gridsize) : 
  Objekt 'gridsize' nicht gefunden
> pd_int <- partial_dependence(fit, iris, c("Petal.Width", "Sepal.Length"), interaction = TRUE)
Fehler in ifelse(gridsize >= nunique, nunique, gridsize) : 
  Objekt 'gridsize' nicht gefunden
> 
> ## Regression
> fit <- randomForest(Fertility ~ ., swiss)
> pd <- partial_dependence(fit, swiss, "Education")
Fehler in ifelse(gridsize >= nunique, nunique, gridsize) : 
  Objekt 'gridsize' nicht gefunden
> pd_int <- partial_dependence(fit, swiss, c("Education", "Catholic"), interaction = TRUE)
Fehler in ifelse(gridsize >= nunique, nunique, gridsize) : 
  Objekt 'gridsize' nicht gefunden
zmjones commented 8 years ago

should be fixed now. i am not sure why travis didn't catch this, as it failed a local check. will look at the logs and figure that out. passed locally though.

zmjones commented 8 years ago

travis config was messed up. fixed and don't think it will happen again.