|
4 | 4 | # fitXGBoostModel() in test_xgboost.R |
5 | 5 | data_train <- matrix(seq(1:300000), nrow=100000) |
6 | 6 | data_test <- matrix(c(seq(1:28000), seq(280001:300000)), nrow=16000) |
7 | | -labels_train <- c(rep(1,50000), rep(0,50000)) |
| 7 | +labels_train <- as.logical(c(rep(1,50000), rep(0,50000))) |
8 | 8 | xgb_model <- fitXGBoostModel(labels_train, data_train, show.cv=TRUE) |
9 | 9 | # Extract the predictions and results from the list |
10 | 10 | xgb_predictions = predict(xgb_model, data_test) |
@@ -110,14 +110,14 @@ seCombinedExtendedGeneExpected <- transcriptToGeneExpression(seCombinedExtended) |
110 | 110 | ## prior models to use for scoreReadClass() and junctions() |
111 | 111 | ##to train new ones see update_xgboost_models.R |
112 | 112 | defaultModels = readRDS("./inst/extdata/defaultModels.rds") |
113 | | -defaultModels$transcriptModelME = xgb.load("./inst/extdata/read_class_ME.model") |
114 | | -defaultModels$transcriptModelSE = xgb.load("./inst/extdata/read_class_SE.model") |
| 113 | +defaultModels$transcriptModelME = xgb.load("./inst/extdata/read_class_ME.ubj") |
| 114 | +defaultModels$transcriptModelSE = xgb.load("./inst/extdata/read_class_SE.ubj") |
115 | 115 |
|
116 | 116 | standardJunctionModels_temp = list() |
117 | | -standardJunctionModels_temp$spliceSitePredictionStart.start = xgb.load("./inst/extdata/spliceSitePredictionStart.start.model") |
118 | | -standardJunctionModels_temp$spliceSitePredictionStart.end = xgb.load("./inst/extdata/spliceSitePredictionStart.end.model") |
119 | | -standardJunctionModels_temp$spliceSitePredictionEnd.start = xgb.load("./inst/extdata/spliceSitePredictionEnd.start.model") |
120 | | -standardJunctionModels_temp$spliceSitePredictionEnd.end = xgb.load("./inst/extdata/spliceSitePredictionEnd.end.model") |
| 117 | +standardJunctionModels_temp$spliceSitePredictionStart.start = xgb.load("./inst/extdata/model_spliceSitePredictionStart.start.ubj") |
| 118 | +standardJunctionModels_temp$spliceSitePredictionStart.end = xgb.load("./inst/extdata/model_spliceSitePredictionStart.end.ubj") |
| 119 | +standardJunctionModels_temp$spliceSitePredictionEnd.start = xgb.load("./inst/extdata/model_spliceSitePredictionEnd.start.ubj") |
| 120 | +standardJunctionModels_temp$spliceSitePredictionEnd.end = xgb.load("./inst/extdata/model_spliceSitePredictionEnd.end.ubj") |
121 | 121 |
|
122 | 122 | usethis::use_data(data1, data2, data3, data4, data5, |
123 | 123 | estOutput_woBC, |
|
0 commit comments