我正在尝试两种不平衡数据的采样方法。我使用了"Caret“包的"upSample”函数,一切都很顺利。然而,当我使用"downSample“函数时,我有以下错误: Error in sample.int(length(x), size, replace, prob) :
cannot take asample larger than the population when 'replace = FALSE&
当尝试在install笔记本上安装R包caret时,它安装了许多依赖项,但最终失败了,出现了非零退出状态错误。由于某些原因,无法安装依赖项recipes。install.packages('caret')
(as ‘lib’ is unspecified)
also installing the dependencies ‘numDeriv’, ‘SQUAREM