小编Abd*_*der的帖子

svg圈没有用javascript绘制

我一直在尝试使用HTML中的javascript为svg操作做一个hello world.我写了下面的代码,虽然它生成了正确的html,但我没有在浏览器中看到任何输出,也没有看到任何错误.

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
var svg1 = document.createElement("svg");
svg1.setAttribute("height",200);
svg1.setAttribute("width",500);
document.body.appendChild(svg1);
var circles = document.createElement("circle");
circles.setAttribute("cx",20);
circles.setAttribute("cy",20);
circles.setAttribute("r",20);
svg1.appendChild(circles);
</script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

我哪里错了?提前致谢.

html javascript svg

7
推荐指数
1
解决办法
5813
查看次数

当给予mfinal> 10时,adabag助推功能会抛出错误

我有一个奇怪的问题,每当我尝试增加adafag包的功能超过10时的mfinal参数我得到一个错误,即使有mfinal = 9我得到警告.

我的列车数据有7级依赖变量和100个独立变量以及大约22000个数据样本(使用DMwR对一个类别进行了分类).我的因变量按顺序位于训练数据集的末尾.

library(adabag)
gc()
exp_recog_boo <- boosting(V1 ~ .,data=train_dataS,boos=TRUE,mfinal=9)

Error in 1:nrow(object$splits) : argument of length 0
In addition: Warning messages:
1: In acum + acum1 :
longer object length is not a multiple of shorter object length
Run Code Online (Sandbox Code Playgroud)

提前致谢.

r adaboost

4
推荐指数
1
解决办法
8963
查看次数

标签 统计

adaboost ×1

html ×1

javascript ×1

r ×1

svg ×1