Comments (4)
This is almost surely an int64 issue. I'll look into it. If you could provide a small code snippet that causes the error, that would be quite helpful.
from cyclops.
@jreps -- this following does cause an error (both in Cyclops
with the first covariateId
that I need to fix and in bit64
in representing the 2nd #). But, I think you are experiencing something different. Can you add to this code snippet?
test_that("Check int64 reductions", {
set.seed(123)
data <- simulateCyclopsData(nstrata = 1,
nrows = 1000,
ncovars = 5,
model="logistic")
# using int64
data$outcomes$rowId <- bit64::as.integer64(data$outcomes$rowId)
data$covariates$rowId <- bit64::as.integer64(data$covariates$rowId)
data$covariates$covariateId <- bit64::as.integer64(data$covariates$covariateId)
data$covariates$covariateId[1] <- bit64::as.integer64( "9223372036854775807")
data$covariates$covariateId[2] <- bit64::as.integer64("18446744073709551615")
cyclopsData64 <- convertToCyclopsData(data$outcomes,data$covariates, modelType = "lr", addIntercept = TRUE)
data$covariates$covariateId[1:3]
summary(cyclopsData64)
})
from cyclops.
I think the summary() issue with your data example is the same as in the summary() issue with the fitted model I saw yesterday:
set.seed(123)
data <- simulateCyclopsData(nstrata = 1,
nrows = 1000,
ncovars = 5,
model="logistic")
# using int64
data$outcomes$rowId <- bit64::as.integer64(data$outcomes$rowId)
data$covariates$rowId <- bit64::as.integer64(data$covariates$rowId)
data$covariates$covariateId <- bit64::as.integer64(data$covariates$covariateId)
data$covariates$covariateId[1] <- bit64::as.integer64( "9223372036854775807")
data$covariates$covariateId[2] <- bit64::as.integer64("18446744073709551615")
cyclopsData64 <- convertToCyclopsData(data$outcomes,data$covariates, modelType = "lr", addIntercept = TRUE)
data$covariates$covariateId[1:3]
fit <- Cyclops::fitCyclopsModel(cyclopsData64, prior = createPrior("laplace", useCrossValidation = TRUE))
meanLinearPredictor(fit) # seems to give the same error
from cyclops.
This commit (develop
branch) should fix the issue (and probably introduce many new ones):
from cyclops.
Related Issues (20)
- more efficient support for time-varying covariates in cyclopsdata for cox models HOT 1
- Issue with covertToCyclopsData - ORDER By is Ignored in sub queries HOT 3
- (Solved) 'Rcpp_precious_remove' not provided by package 'Rcpp'
- 'NAs produced by integer overflow' when calling `confint()` HOT 3
- Add test for proportionality assumption HOT 2
- (Tiny) differences in optimal hyperparameter depending on number of threads HOT 2
- Small differences in prediction between operating systems HOT 3
- Add location parameters for coefficient specific priors HOT 2
- Create new release? HOT 4
- Merge fix for likelihood profile computation into main at some point? HOT 1
- upper and lower bound of CI are equal, but no failure flag
- what is the meaning of "POOR_BLR_STEP"?
- as(<numLike>, "dgeMatrix") is deprecated
- remove dependency on boost-headers `BH`
- arrow_S4 branch cross-validation generating unexpected output to the console HOT 1
- considerable time spent in `setPrior` for IHT and BAR HOT 3
- Cox model handling of intervals? HOT 2
- listOpenCLDevices returns character(0)
- Please don't forget to update package website when creating a release
- Faster likelihood profiling? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cyclops.