簡體   English   中英

在h2o glm中棄用了p值

[英]is p-value deprecated in h2o glm

Elasticnet中是否棄用了p值? 以下參考資料顯示了系數中的p值http://docs.h2o.ai/h2o/latest-stable/h2o-docs/data-science/glm.html

但是當我執行以下命令時我看不到p值

 head(elastic_net_best_model@model$coefficients_table)
 Coefficients: glm coefficients

              names  coefficients standardized_coefficients

僅當將compute_p_values設置為true時,才會計算p值,並且這僅在沒有正則化的情況下才有效,這需要lambda = 0

舉個例子,

library(h2o)
h2o.init()
x<-as.h2o(iris)
xg<-h2o.glm(y="Sepal.Length",training_frame=x,compute_p_values=TRUE,lambda=0)
head(xg@model$coefficients_table)

這給出了輸出:

Coefficients: glm coefficients
               names coefficients std_error   z_value  p_value standardized_coefficients
1          Intercept     2.171266  0.279794  7.760227 0.000000                  6.425687
2 Species.versicolor    -0.723562  0.240169 -3.012721 0.003060                 -0.723562
3  Species.virginica    -1.023498  0.333726 -3.066878 0.002584                 -1.023498
4        Sepal.Width     0.495889  0.086070  5.761466 0.000000                  0.216141
5       Petal.Length     0.829244  0.068528 12.100867 0.000000                  1.463863
6        Petal.Width    -0.315155  0.151196 -2.084418 0.038888                 -0.240223

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM