_ | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁
FrontPage › Sampling

Sampling #

training 一危磯 30%, test 一危磯ゼ 70%
library(caret)
partition_idx <- createDataPartition (x$危覿, p=0.3)$Resample1
training <- x[partition_idx, ]
test <- x[-partition_idx, ]

library(caret)
tmp <- downSample(subset(x, select = -危覿), factor(dataset$危覿))
tmp <- upSample(subset(x, select = -危覿), factor(dataset$危覿))
  • downSample:一危郁 讓曙 襷豢. 襯 れ, 譟=1000覈, 危=100覈企 downSample 譟=100覈, 危=100覈朱 襷豢.
  • upSample:一危郁 襷 讓曙 襷豢.
蠍 蠍郁鍵..
企: : るジ讓曙 襦螻豺 企Ν 譯殊語. 襦螻豺
EditText : Print : Mobile : FindPage : DeletePage : LikePages : Powered by MoniWiki : Last modified 2018-04-13 23:12:53

讌 瑚 覿螻狩. 蠏碁朱 企蟾讌 瑚企. 覈 蟆 . 蠏碁朱 企 蟆 . 蠏碁Μ螻 覈 蟆 り 伎 願 企 蟆蟾讌 蠍壱讌 蟆企. ( 覯 伎)