跑跑卡丁车 int error in Int tRender...

r - Error in sample.int(length(x), size, replace, prob) : cannot take a sample larger than the population when 'replace = FALSE' - Stack Overflow
Join the Stack Overflow Community
Stack Overflow is a community of 6.9 million programmers, just like you, helping each other.
J it only takes a minute:
I am trying to run SOM from kohonen package. when I use 10x10 dimension. it works, bu when I increase the 2d latent dimension iton 20x20 or bigger, it gave me this below error. can someone help me? why is this happen?. what is the ideal 2D latent dimension if I have 167 data with 9 variables? thank you so much
& dim(data)
& dim(data_scale)
& class(data)
[1] "data.frame"
& class(data_scale)
[1] "matrix"
& som_grid&-somgrid(xdim = 10, ydim = 10 , topo = "hexagonal")
& som_model&-som(data_scale, grid=som_grid, rlen=1000, alpha=c(0.05,0.01),n.hood="circular", keep.data=TRUE)
& som_grid&-somgrid(xdim = 20, ydim = 10 , topo = "hexagonal")
& som_grid&-somgrid(xdim = 20, ydim = 20 , topo = "hexagonal")
& som_model&-som(data_scale, grid=som_grid, rlen=1000, alpha=c(0.05,0.01),n.hood="circular", keep.data=TRUE)
Error in sample.int(length(x), size, replace, prob) :
cannot take a sample larger than the population when 'replace = FALSE'
67.5k765126
You have 167 observations. You cannot have more cells (20x20) than observations.
Try to change:
som_grid&-somgrid(xdim = 12, ydim = 12 , topo = "hexagonal")
It should work.
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
rev .25625
Stack Overflow works best with JavaScript enabled期待那一刻 的翻译是:Looking forward to the moment 中文翻译英文意思,翻译英语
请在下面的文本框内输入文字,然后点击开始翻译按钮进行翻译,如果您看不到结果,请重新翻译!
期待那一刻
选择语言:从
罗马尼亚语
罗马尼亚语
Looking forward to that moment
Looking forward to the moment
Look to the moment
Anticipates that moment
相关内容&a儿时的***塔 Childhood ivory tower & afree of fissure 免于裂痕 & aedengay
alphaporno gaybubble
coolgaymovies jocks-n-cocks
oldmanboytube
crazygaytube hugemaletube edengay alphaporno gaybubble pornhub hotgoo coolgaymovies Jock n公鸡 oldmanboytube crazygaytube hugemaletube & a以下PO分成四个货柜 Following PO divides into four cabinets & a昨天做得爽吗?几点回去的? Yesterday did crisply? How many selects goes back? & aequilibrium geometries 平衡geometries & aDo not know why my heart is so sore! 不要知道为什么我的心脏是很疼痛的! & aGlobal Employment Trends, January 2008 全球性就业变化趋势, 2008年1月 & ai want to lost my heart in a boy's body i want to lost my heart in a boy's body & a当今世界科技突飞猛进,信息日新月异,使得信息成了当今社会的“主角”,阅读 Now the world science and technology progresses by leaps and bounds, the information changes with each new day, causes the information to become now the society “the lead”, reading & a经常看电视会影响学习,会导致学习下降 Looked frequently the television can affect the study, can cause the study to drop & a祝你幸福,快乐。 Wishes you to be happy, joyful. & a据报道,联合国斡旋者制定出了他们希望双方都能接受的方案。 According to the report, United Nations mediation formulation they had hoped both sides both can accept plan. & a11. Teen Fuckin 11. 青少年的Fuckin & a并且 你是否对我们公司有一定的了解呢? And you whether has certain understanding to our company? & a经常访问该网站 Visits this website frequently & aDES level at which the house will devolve 正在翻译,请等待...
& aMarilyn Oborny says:
& aError in Ini tRender().Shuttingdown. 错误在Ini tRender ()。Shuttingdown。 & awhat is two monkeys? 什么是二只猴子? & athe eighteenth century appeared to dominate the twentieth 18世纪看上去控制二十个 & a今天的主题是我的暑假 正在翻译,请等待...
& awhen i forget how to breathe 当我忘记如何呼吸 & a还有一些 Also has some & aYou know how hard it can be.
& a请将“持久型”和“快干型”有机胶水的海关需要的代码提供给我。谢谢! Please “lasting” and “the raped drying” the organic glue water customs need the code provides to me.Thanks! & aOn this day last year 在这天去年 & aIt is also fun to help others 它也是帮助其他的乐趣 & a期待那一刻 Anticipates that moment &

参考资料

 

随机推荐