上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 72 下一页
摘要: 在R语言里面,DataFrame的一列数据本质上可以认为是一个向量或列表,但是一行数据不是。 今天有一个31列的数据集,由于放在第一行的变量名格式不规范,读入数据的时候不能顺带读入变量名。于是跳过首行,先直接读入数据,之后手动给DataFrame命名。 为了避免出错,把变量第一行作为DataFram 阅读全文
posted @ 2019-04-10 21:57 2021年的顺遂平安君 阅读(4240) 评论(0) 推荐(0)
摘要: object type randomForest 会根据变量的类型来决定 或`classification class(iris$Species) classification`。 iris example data(iris) set.seed(111) ind 阅读全文
posted @ 2019-03-28 22:26 2021年的顺遂平安君 阅读(597) 评论(0) 推荐(0)
摘要: object type randomForest 会根据变量的类型来决定regression或classification。class(iris$Species)是 factor,所以是classification。 iris.rf$type[1] "... 阅读全文
posted @ 2019-03-28 22:26 2021年的顺遂平安君 阅读(71) 评论(0) 推荐(0)
摘要: library("reticulate")use_python("/usr/bin/python", required = T)py_config() 注意 1 每开启一个session,第一次设置生效,之后再使用这个命令不生效,需要重启session... 阅读全文
posted @ 2019-03-16 16:57 2021年的顺遂平安君 阅读(113) 评论(0) 推荐(0)
摘要: 注意 1 每开启一个session,第一次设置生效,之后再使用这个命令不生效,需要重启session 2 命令要放在最后,使设置生效 阅读全文
posted @ 2019-03-16 16:57 2021年的顺遂平安君 阅读(1421) 评论(0) 推荐(0)
摘要: 同时安装多个库 设置并行线程数 阅读全文
posted @ 2019-03-14 20:35 2021年的顺遂平安君 阅读(343) 评论(0) 推荐(0)
摘要: 同时安装多个库 Pkg.add.(["IJulia", "Combinatorics", "Plots", "TaylorSeries"]) 设置并行线程数 export JULIA_NUM_THREADS=4 #The number of thre... 阅读全文
posted @ 2019-03-14 20:35 2021年的顺遂平安君 阅读(91) 评论(0) 推荐(0)
摘要: // Convenience wrapper around predict for models with // single tensor outputs of shape (1, 1, 1), // typically used f... 阅读全文
posted @ 2019-03-13 21:57 2021年的顺遂平安君 阅读(59) 评论(0) 推荐(0)
摘要: convert tensor5 datatype to std::vector 阅读全文
posted @ 2019-03-13 21:57 2021年的顺遂平安君 阅读(377) 评论(0) 推荐(0)
摘要: Model Extract layers Feed forward calculation 阅读全文
posted @ 2019-03-13 18:28 2021年的顺遂平安君 阅读(576) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 72 下一页