Closed derekpowell closed 6 years ago
I will address this hopefully this coming Friday. My next CRAN release will likely be in July, but you'll have a patch from this repository before then.
great, thanks!
Fixed. Reinstall with devtools;:install_github("nutterb/HydeNet", ref = "current-devel")
Gory details:
There were parts of the code that used data[, col_name]
. For the data.frame
class, this will return a vector if col_name
is of length 1. The same call for tibbles, however, returns another tibble. I replaced all these instances with data[[col_name]]
to force the return of the single column where it was wanted.
Really excited about HydeNet and hoping to use it for an upcoming project. Just caught what appears to be a bug in handling data passed in as a tibble (from tidyverse).
Here's a (relatively) minimal reproducible example:
On my system that code fails on the last line with error:
Error in eval(expr, envir, enclos) : y values must be 0 <= y <= 1
Looking at the
net.Hyde2
object, it looks like the variables are being treated as categorical and/or binomial when they should be treated as normal:My system version info: