CODAIT / r4ml

Scalable R for Machine Learning
Apache License 2.0
42 stars 13 forks source link

[R4ML-104] LM Summary #52

Closed bdwyer2 closed 6 years ago

bdwyer2 commented 7 years ago

stats::summary():

> summary(r_object)

Call:
lm(formula = ArrDelay ~ ., data = r_train)

Residuals:
    Min      1Q  Median      3Q     Max 
 -72.87  -14.47   -6.57    4.09 1007.97 

Coefficients:
              Estimate Std. Error t value             Pr(>|t|)    
(Intercept) -2.6773545  0.4017461  -6.664      0.0000000000267 ***
Month       -0.0834103  0.0253103  -3.296             0.000983 ***
DayofMonth   0.0173401  0.0098780   1.755             0.079190 .  
DayOfWeek    0.0624231  0.0437355   1.427             0.153500    
CRSDepTime   0.0069634  0.0001823  38.190 < 0.0000000000000002 ***
Distance     0.0007512  0.0001576   4.766      0.0000018855314 ***
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 30.85 on 125880 degrees of freedom
Multiple R-squared:  0.01166,   Adjusted R-squared:  0.01163 
F-statistic: 297.1 on 5 and 125880 DF,  p-value: < 0.00000000000000022

>

R4ML::summary.r4ml.lm():

> summary(r4ml_object)
Call:
r4ml.lm(ArrDelay ~ ., data = train, intercept = TRUE)

Residuals:
   Mean: 0   St. Dev.: 30.85138

Coefficients:

                 Estimate Std. Error t value    Pr(>|t|)
CRSDepTime   0.0069634376  0.0001823  38.288 0.000000000
DayofMonth   0.0173400634  0.0098771   1.829 0.067404968
DayOfWeek    0.0624231240  0.0437292   1.507 0.131712158
Distance     0.0007512097  0.0001576   5.032 0.000000487
(Intercept) -2.6773544592  0.4017187  -6.881 0.000000000
Month       -0.0834103278  0.0253057  -3.206 0.001344601

NOTE: Std. Error, t value, & Pr(>|t|) are estimated

Residual standard deviation: 30.85138

Multiple R-squared: 0.01166, Adjusted R-squared: 0.01163

This PR also fixes issue #51

R4ML-CI commented 7 years ago

Build triggered.

R4ML-CI commented 7 years ago

Build success. All unit tests passed.

R4ML-CI commented 7 years ago

Build triggered.

R4ML-CI commented 7 years ago

Build success. All unit tests passed.

R4ML-CI commented 7 years ago

Build triggered.

R4ML-CI commented 7 years ago

Unit test failed.

R4ML-CI commented 7 years ago

Build triggered.

R4ML-CI commented 7 years ago

Build success. All unit tests passed.