892 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
77
views
Error: package or namespace load failed for 'caret' (conda environment with r-base = 4.4.3 and r-essentials)
Set-up
conda version 24.7.1
Created new environment in anaconda prompt:
conda create --name r_env2 conda conda-forge::r-essentials conda-forge::r-base=4.4.3
Confirmed that r-essentials included caret ...
1
vote
0
answers
34
views
How can read all text before the cursor in custom keyboard?
I'm developing a custom iOS keyboard using SwiftUI. I want to access a large portion of text before the cursor. I'm currently using:
textDocumentProxy.documentContextBeforeInput
However, this only ...
1
vote
1
answer
62
views
Different folds using set.seed and caret:createFolds
Running caret:createFolds multiple times with a set.seed prior to running the first caret:createFolds call creates different folds. But while running caret:createFolds with set.seed running just ...
3
votes
0
answers
83
views
Error in predict.train .... type must be either "raw" or "prob"
I am using caret with ranger for regression but I need to set quantreg = TRUE as I need this to compute quantiles (see below) some extract of my code. But I am getting this error:
Error in predict....
0
votes
1
answer
50
views
Error predicting with REEMtree model: Number of observations in newdata does not match group identifiers
I am using the REEMtree package in R to build a tree with random effects, but when I attempt to make predictions on the test data, I encounter the following error:
Error in predict.REEMtree(...
1
vote
0
answers
60
views
R warning "There were missing values in resampled performance measures" when using caret with horizon is equal to one
I use the following codes to train time seires models:
Train time series model in caret provided by the caret author Max Kuhn
library(caret)
library(ggplot2)
data(economics)
myTimeControl <- ...
0
votes
1
answer
75
views
Default distribution and link function used by train in caret R
How do I know the distribution and link function used in model development that the train function in caret uses?
I have a dataset (My_Data) of values of houses (Value_House) and characteristics of ...
1
vote
1
answer
98
views
Highlight the line where the caret is in a contenteditable element in JavaScript & Html
I am developing a text editor for the web frontend, and I want to highlight the line where the text caret is located.
Normally, it should be quite simple to implement: just by listening to the ...
0
votes
1
answer
74
views
Importance plot in train() method from caret package problem
I have made a model using the following codes. There is one categorical variable among my variables called "ot_soilTextu."
rf_final <- caret::train(BULK_DENSITY ~ forest_210 + legumes_158 ...
1
vote
1
answer
94
views
Print AUC in my multiple ROC Curves from ggroc [closed]
this is my 3 ROC Curves !
rocs <- list()
rocs[["modele1"]] <- roc(data3$USI3, predict(modele1))
rocs[["modele2"]] <- roc(data3$USI3, predict(modele2))
rocs[["modele3&...
2
votes
1
answer
84
views
WinForm RichTextbox auto scroll only when scrollbar caret is in the bottom
I am using a RichTextBox in Winforms to display live stream of text. When new data comes in, the RichTextBox scrolls down to display the latest added text.
If the user wants to view previous data by ...
0
votes
1
answer
304
views
Error when calculating SHAP value in xgboost model - feature names are different?
I have trained an XGBoost model using caret and now, I am calculating the mean SHAP value of each predictor using the package SHAPforxgboost, using the following code:
library(SHAPforxgboost)
...
0
votes
1
answer
122
views
SwiftUI macOS TextField ignores tint
I need to be able to style TextField in my SwiftUI macOS application. Specifically, I would need to be able to change the cursor (caret) and the selection color. As I read online, for this people use ...
23
votes
6
answers
25k
views
Cursor disappearing inside text field
I'm encountering an unusual issue on Windows 10 and Windows 11 PCs where my mouse cursor disappears within any text field—whether on websites, in search bars, or similar fields in Chrome or other ...
1
vote
1
answer
108
views
JavaFX TextArea - Get caret bounds
I am trying to show a popup beneath the caret of a text area. This means I need both X and Y coordinates.
I am currently trying to achieve it this way:
final var textFieldBounds = input....