I am trying to paste together a path-string. Like this "C:\testfile.txt" This doesn't work at all: filename <- "testfile.txt" path <- paste("C:\\\",filename,sep="") This also doesn't produce the right result: filename <- "testfile.txt" path <- paste("C:\\\\",filename,sep="") [1] "C:\\\testfile.txt" Can you help me to prudece a path-string with only one backslash?
I found the definition: Bagging is to use the same training for every predictor, but to train them on different random subsets of the training set. When sampling is performed with replacement, this method is called bagging (short for bootstrap aggregating). When sampling is performed without replacement, it is called pasting. What is "replacement" in this context?
I am bit confused about two concepts. From my understanding Bagging is when each data is replaced after each choice. so for example for each subset of data you pick one from population, replace it then pick one again, etc... and this is repeated for each subset of data. But for pasting people say it is sampling without replacement however does that mean you can't have same data on any subset? I thought it picks one subset w/o replacement but …