Can't find private function for sklearn (LocalOutlierFactor) in reticulate
问题 I tried to add a part of a python code to my R Script. Unfortunately it seems that I can't use a private function for the LocalOutlierFactor in R: # Sample Data n <- 5000 n_outlier <- .05 * n set.seed(11212) inlier <- mvtnorm::rmvnorm(n, mean = c(0,0)) outlier <- mvtnorm::rmvnorm(n_outlier, mean = c(20, 20)) testdata <- rbind(inlier, outlier) smp_size <- floor(0.5 * nrow(testdata)) train_ind <- sample(seq_len(nrow(testdata)), size = smp_size) train_lof <-as.data.frame(testdata[train_ind, ])