上一页 1 2 3 4 5 6 7 ··· 72 下一页
摘要: namespace ‘glue’ is imported by ‘tidyselect’, ‘dplyr’ so cannot be unloaded 报错原因是dplyr和tidyselect两个包所要求的glue版本不同。把glue更新到最新版本即可,可以需要源码编译。 阅读全文
posted @ 2020-11-21 17:16 2021年的顺遂平安君 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 最忠实Leo Breiman算法的版本是 randomForest,但是这个库不支持并行,性能也比较差。 有两个优化后的替代版本,都支持并行计算。 ranger rborist 阅读全文
posted @ 2020-11-21 17:14 2021年的顺遂平安君 阅读(90) 评论(0) 推荐(0) 编辑
摘要: $R^2$不止一种定义方式,这里是scikit-learn中所使用的定义。 As such variance is dataset dependent, R² may not be meaningfully comparable across different datasets. Best pos 阅读全文
posted @ 2020-11-21 17:12 2021年的顺遂平安君 阅读(1574) 评论(0) 推荐(0) 编辑
摘要: 官方例子如下, rescale01 <- function(x) { rng <- range(x, na.rm = TRUE) (x - rng[1]) / (rng[2] - rng[1]) } df <- tibble(x = 1:4, y = rnorm(4)) df %>% mutate( 阅读全文
posted @ 2020-11-21 17:11 2021年的顺遂平安君 阅读(452) 评论(0) 推荐(0) 编辑
摘要: out-of-bag prediction Created: Jun 29, 2020 12:22 PM Updated: Jun 29, 2020 12:28 PM https://stackoverflow.com/questions/25153276/difference-of-predict 阅读全文
posted @ 2020-11-21 17:09 2021年的顺遂平安君 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 两个主要功能, 替换NA x <- c(2, 1, NA, 5, 3, NA) # Create example vector coalesce(x, 999) # Apply coalesce function # 2 1 999 5 3 999 x中的NA被替换成了999。 对比并替换 这个功能 阅读全文
posted @ 2020-11-21 17:07 2021年的顺遂平安君 阅读(243) 评论(0) 推荐(0) 编辑
摘要: case_when 要点有两个 不匹配的时候会返回 NA,而不是保持不变 根据顺序进行条件判断,顺序很重要 下面这段代码, x <- 1:50 case_when( x %% 35 == 0 ~ "fizz buzz", x %% 5 == 0 ~ "fizz", x %% 7 == 0 ~ "bu 阅读全文
posted @ 2020-11-21 17:05 2021年的顺遂平安君 阅读(4028) 评论(0) 推荐(0) 编辑
摘要: Filtering joins filter rows from x based on the presence or absence of matches in y: semi_join() return all rows from x with a match in y. anti_join() 阅读全文
posted @ 2020-11-21 17:04 2021年的顺遂平安君 阅读(401) 评论(0) 推荐(0) 编辑
摘要: bind_rows & bind_cols 这两个命令是do.call(rbind, dfs)和do.call(cbind, dfs)的代替,使用起来更有效率。 one <- starwars[1:4, ] two <- starwars[9:12, ] bind_rows(one, two) bi 阅读全文
posted @ 2020-11-21 17:02 2021年的顺遂平安君 阅读(1146) 评论(0) 推荐(0) 编辑
摘要: macOS 10.12 下使用pip install opencv-python安装OpenCV后会报错,主要是版本兼容问题。不想折腾macOS,可以安装 3.4.9.33 这个版本的OpenCV这个兼容版本。 阅读全文
posted @ 2020-11-21 16:58 2021年的顺遂平安君 阅读(234) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 72 下一页