gcForest

作者: Liam_ml | 来源:发表于2018-11-10 21:38 被阅读7次

简介

gcForest算法在Zhou和Feng 2017(https://arxiv.org/abs/1702.08835,参考本文的技术细节)和pylablanche(https://github.com/pylablanche)中提出了Python3.X在github上实现这个算法(https://github.com/pylablanche/gcForest)。我们提供了一个名为gcForest的R包,它是pylablanche的gcForest模块(Python3.X)的R接口。如果您想了解更多关于gcForest的信息,请阅读源文章(Deep Forest)。

基本要求

Python 3.X
Numpy> = 1.12.0
Scikit-learn> = 0.18.1

安装

install.packages('gcForest')
devtools::install_github('DataXujing/gcForest_r')

使用gcForest

例子:

library(gcForest)
sk <- reticulate::import('sklearn')
train_test_split <- sk$model_selection$train_test_split

data <- sk$datasets$load_iris
iris <- data()
X = iris$data
y = iris$target
data_split = train_test_split(X, y, test_size=0.33)

X_tr <- data_split[[1]]
X_te <- data_split[[2]]
y_tr <- data_split[[3]]
y_te <- data_split[[4]]

gcforest_m <- gcforest(shape_1X=4L, window=2L, tolerance=0.0)
gcforest_m$fit(X_tr,y_tr)
gcf_model <- model_save(gcforest_m,'../gcforest_model.model')

gcf <- model_load('../gcforest_model.model')
gcf$predict(X_te)

相关文章

  • gcForest

    这也是一种基于决策树的方法,这是一种深度树的集成方法(deep forest ensemble method ) ...

  • gcForest

    简介 gcForest算法在Zhou和Feng 2017(https://arxiv.org/abs/1702.0...

  • gcforest论文的解读

    论文标题: Deep Forest: Towards an Alternative to Deep Neural...

  • gcforest的官方代码详解

    本文采用的是v1.1版本,github地址https://github.com/kingfengji/gcFore...

  • gcForest - multi-grained cascade

    周志华先生最近发布了论文Deep Forest: Towards An Alternative to Deep N...

网友评论

    本文标题:gcForest

    本文链接:https://www.haomeiwen.com/subject/zietfqtx.html