[IG-CM-MT-MY_mf850finalproject_ii.R:3:2:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L3) *style:* **Commented code should be removed.**
```r
#### 12/20/2016
 ^~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:16:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L16) *style:* **Variable and function names should be all lowercase.**
```r
laggedDataFile <- "laggeddata.rds"
^~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:19:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L19) *style:* **Variable and function names should be all lowercase.**
```r
LinearRegrssionFile <- "Linear_Ridge_Lasso.R"
^~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:20:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L20) *style:* **Variable and function names should be all lowercase.**
```r
RandomForestRegressionFile <- "random_forest_reg.R"
^~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:21:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L21) *style:* **Variable and function names should be all lowercase.**
```r
LogisticRegressionFile <- "Logistic_Ridge_Lasso.R"
^~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:22:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L22) *style:* **Variable and function names should be all lowercase.**
```r
RandomForestCatFile <- "random_forest_cat.R"  # Random forest high/low
^~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:23:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L23) *style:* **Variable and function names should be all lowercase.**
```r
LogisticRegressionModelLambdaFile <- "Logistic_Ridge_Lasso_model_lambda.rds"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:23:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L23) *style:* **Variable and function names should not be longer than 30 characters.**
```r
LogisticRegressionModelLambdaFile <- "Logistic_Ridge_Lasso_model_lambda.rds"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:25:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L25) *style:* **Variable and function names should be all lowercase.**
```r
LinearRegrssionModelFile <- "Linear_Ridge_Lasso_model.rds"
^~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:26:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L26) *style:* **Variable and function names should be all lowercase.**
```r
LinearRegrssionModelLambdaFile <- "Linear_Ridge_Lasso_model_lambda.rds"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:27:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L27) *style:* **Variable and function names should be all lowercase.**
```r
RandomForestRegressionModelFile <- "random_forest_model.rds"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:27:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L27) *style:* **Variable and function names should not be longer than 30 characters.**
```r
RandomForestRegressionModelFile <- "random_forest_model.rds"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:28:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L28) *style:* **Variable and function names should be all lowercase.**
```r
LogisticRegressionModelFile <- "Logistic_Ridge_Lasso_model.rds"
^~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:29:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L29) *style:* **Variable and function names should be all lowercase.**
```r
RandomForestCatModelFile <- "random_forest_cat_model.rds"
^~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:31:8:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L31) *style:* **Put spaces around all infix operators.**
```r
par(ask=FALSE)
      ~^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:36:57:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L36) *style:* **Commas should always have a space after.**
```r
  packagestoinstall_split <- strsplit(packagestoinstall,", ")[[1]]
                                                        ^
```
[IG-CM-MT-MY_mf850finalproject_ii.R:38:7:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L38) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(!packagename %in% rownames(installed.packages())){
      ^
```
[IG-CM-MT-MY_mf850finalproject_ii.R:42:31:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L42) *style:* **Commas should always have a space after.**
```r
      print(paste(packagename,"already installed"))
                              ^
```
[IG-CM-MT-MY_mf850finalproject_ii.R:44:40:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L44) *style:* **Put spaces around all infix operators.**
```r
    library(packagename, character.only=TRUE)
                                      ~^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:49:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L49) *style:* **Variable and function names should be all lowercase.**
```r
regressionStockPredictions <- function(df) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:50:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L50) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:55:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L55) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:56:61:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L56) *style:* **Trailing whitespace is superfluous.**
```r
  # Scale data - remove categorical variable and add it back
                                                            ^
```
[IG-CM-MT-MY_mf850finalproject_ii.R:62:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L62) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:64:13:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L64) *style:* **Trailing whitespace is superfluous.**
```r
  ### GLMNET
            ^
```
[IG-CM-MT-MY_mf850finalproject_ii.R:66:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L66) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:67:48:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L67) *style:* **Trailing whitespace is superfluous.**
```r
  # Import glmnet model and parameter from file
                                               ^
```
[IG-CM-MT-MY_mf850finalproject_ii.R:68:23:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L68) *style:* **Variable and function names should be all lowercase.**
```r
  glm_best <- readRDS(LinearRegrssionModelFile)
                      ^~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:68:23:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L68) *warning:* **no visible binding for global variable ‘LinearRegrssionModelFile’**
```r
  glm_best <- readRDS(LinearRegrssionModelFile)
                      ^~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:69:3:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L69) *style:* **Variable and function names should be all lowercase.**
```r
  bestLambda <- readRDS(LinearRegrssionModelLambdaFile)
  ^~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:69:25:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L69) *style:* **Variable and function names should be all lowercase.**
```r
  bestLambda <- readRDS(LinearRegrssionModelLambdaFile)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:69:25:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L69) *warning:* **no visible binding for global variable ‘LinearRegrssionModelLambdaFile’**
```r
  bestLambda <- readRDS(LinearRegrssionModelLambdaFile)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:70:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L70) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:71:29:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L71) *style:* **Trailing whitespace is superfluous.**
```r
  # Reformat data for glmnet
                            ^
```
[IG-CM-MT-MY_mf850finalproject_ii.R:73:57:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L73) *style:* **Trailing whitespace is superfluous.**
```r
  # Predict using optimal Linear Regression Coefficients
                                                        ^
```
[IG-CM-MT-MY_mf850finalproject_ii.R:74:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L74) *style:* **lines should not be more than 80 characters.**
```r
  predict_glm <- predict.glmnet(glm_best, newx = x_data_lin, type = "response", s = bestLambda)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:74:18:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L74) *warning:* **no visible global function definition for ‘predict.glmnet’**
```r
  predict_glm <- predict.glmnet(glm_best, newx = x_data_lin, type = "response", s = bestLambda)
                 ^~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:74:85:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L74) *style:* **Variable and function names should be all lowercase.**
```r
  predict_glm <- predict.glmnet(glm_best, newx = x_data_lin, type = "response", s = bestLambda)
                                                                                ^~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:75:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L75) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:77:19:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L77) *style:* **Trailing whitespace is superfluous.**
```r
  ## Random Forest
                  ^
```
[IG-CM-MT-MY_mf850finalproject_ii.R:79:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L79) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:80:58:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L80) *style:* **Trailing whitespace is superfluous.**
```r
  # Import random forest model from file - has 1400 trees
                                                         ^
```
[IG-CM-MT-MY_mf850finalproject_ii.R:81:27:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L81) *style:* **Variable and function names should be all lowercase.**
```r
  rf_reg_model <- readRDS(RandomForestRegressionModelFile)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:81:27:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L81) *style:* **Variable and function names should not be longer than 30 characters.**
```r
  rf_reg_model <- readRDS(RandomForestRegressionModelFile)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:81:27:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L81) *warning:* **no visible binding for global variable ‘RandomForestRegressionModelFile’**
```r
  rf_reg_model <- readRDS(RandomForestRegressionModelFile)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:82:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L82) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:85:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L85) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:86:32:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L86) *style:* **Trailing whitespace is superfluous.**
```r
  # Predict using Random Forest
                               ^
```
[IG-CM-MT-MY_mf850finalproject_ii.R:88:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L88) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:92:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L92) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:93:3:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L93) *warning:* **no visible global function definition for ‘h2o.init’**
```r
  h2o.init(nthreads = -1)
  ^~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:94:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L94) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:95:21:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L95) *warning:* **no visible global function definition for ‘as.h2o’**
```r
  x_data_h2o.hex <- as.h2o(x_data_lin)
                    ^~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:96:3:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L96) *style:* **Variable and function names should be all lowercase.**
```r
  dnnModel <- h2o.loadModel("DNNmodel/DNNmodel")
  ^~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:96:15:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L96) *style:* **Variable and function names should be all lowercase.**
```r
  dnnModel <- h2o.loadModel("DNNmodel/DNNmodel")
              ^~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:96:15:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L96) *warning:* **no visible global function definition for ‘h2o.loadModel’**
```r
  dnnModel <- h2o.loadModel("DNNmodel/DNNmodel")
              ^~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:97:32:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L97) *warning:* **no visible global function definition for ‘h2o.predict’**
```r
  predict.reg <- as.data.frame(h2o.predict(dnnModel, x_data_h2o.hex))
                               ^~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:97:44:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L97) *style:* **Variable and function names should be all lowercase.**
```r
  predict.reg <- as.data.frame(h2o.predict(dnnModel, x_data_h2o.hex))
                                           ^~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:98:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L98) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:99:3:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L99) *warning:* **no visible global function definition for ‘h2o.shutdown’**
```r
  h2o.shutdown(prompt = FALSE)
  ^~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:100:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L100) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:104:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L104) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:106:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L106) *style:* **lines should not be more than 80 characters.**
```r
  predictions <- (weights[1]*predict.reg$predict + weights[2]*predict_rf + weights[3]*predict_glm)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:106:29:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L106) *style:* **Put spaces around all infix operators.**
```r
  predictions <- (weights[1]*predict.reg$predict + weights[2]*predict_rf + weights[3]*predict_glm)
                           ~^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:106:62:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L106) *style:* **Put spaces around all infix operators.**
```r
  predictions <- (weights[1]*predict.reg$predict + weights[2]*predict_rf + weights[3]*predict_glm)
                                                            ~^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:106:86:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L106) *style:* **Put spaces around all infix operators.**
```r
  predictions <- (weights[1]*predict.reg$predict + weights[2]*predict_rf + weights[3]*predict_glm)
                                                                                ~^~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:106:99:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L106) *style:* **Trailing whitespace is superfluous.**
```r
  predictions <- (weights[1]*predict.reg$predict + weights[2]*predict_rf + weights[3]*predict_glm)
                                                                                ^
```
[IG-CM-MT-MY_mf850finalproject_ii.R:118:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L118) *style:* **Variable and function names should be all lowercase.**
```r
stockPredictions <- regressionStockPredictions(df)
^~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:118:21:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L118) *style:* **Variable and function names should be all lowercase.**
```r
stockPredictions <- regressionStockPredictions(df)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_ii.R:119:7:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_ii.R#L119) *style:* **Variable and function names should be all lowercase.**
```r
print(stockPredictions)
      ^~~~~~~~~~~~~~~~
```


[IG-CM-MT-MY_mf850finalproject_iii.R:3:2:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L3) *style:* **Commented code should be removed.**
```r
#### 12/20/2016
 ^~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:16:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L16) *style:* **Variable and function names should be all lowercase.**
```r
laggedDataFile <- "laggeddata.rds"
^~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:19:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L19) *style:* **Variable and function names should be all lowercase.**
```r
LinearRegrssionFile <- "Linear_Ridge_Lasso.R"
^~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:20:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L20) *style:* **Variable and function names should be all lowercase.**
```r
RandomForestRegressionFile <- "random_forest_reg.R"
^~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:21:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L21) *style:* **Variable and function names should be all lowercase.**
```r
LogisticRegressionFile <- "Logistic_Ridge_Lasso.R"
^~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:22:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L22) *style:* **Variable and function names should be all lowercase.**
```r
RandomForestCatFile <- "random_forest_cat.R"
^~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:23:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L23) *style:* **Variable and function names should be all lowercase.**
```r
LogisticRegressionModelLambdaFile <- "Logistic_Ridge_Lasso_model_lambda.rds"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:23:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L23) *style:* **Variable and function names should not be longer than 30 characters.**
```r
LogisticRegressionModelLambdaFile <- "Logistic_Ridge_Lasso_model_lambda.rds"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:25:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L25) *style:* **Variable and function names should be all lowercase.**
```r
LinearRegrssionModelFile <- "Linear_Ridge_Lasso_model.rds"
^~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:26:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L26) *style:* **Variable and function names should be all lowercase.**
```r
LinearRegrssionModelLambdaFile <- "Linear_Ridge_Lasso_model_lambda.rds"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:27:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L27) *style:* **Variable and function names should be all lowercase.**
```r
RandomForestRegressionModelFile <- "random_forest_model.rds"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:27:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L27) *style:* **Variable and function names should not be longer than 30 characters.**
```r
RandomForestRegressionModelFile <- "random_forest_model.rds"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:28:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L28) *style:* **Variable and function names should be all lowercase.**
```r
LogisticRegressionModelFile <- "Logistic_Ridge_Lasso_model.rds"
^~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:29:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L29) *style:* **Variable and function names should be all lowercase.**
```r
RandomForestCatModelFile <- "random_forest_cat_model.rds"
^~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:31:8:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L31) *style:* **Put spaces around all infix operators.**
```r
par(ask=FALSE)
      ~^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:36:57:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L36) *style:* **Commas should always have a space after.**
```r
  packagestoinstall_split <- strsplit(packagestoinstall,", ")[[1]]
                                                        ^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:38:7:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L38) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(!packagename %in% rownames(installed.packages())){
      ^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:42:31:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L42) *style:* **Commas should always have a space after.**
```r
      print(paste(packagename,"already installed"))
                              ^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:44:40:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L44) *style:* **Put spaces around all infix operators.**
```r
    library(packagename, character.only=TRUE)
                                      ~^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:50:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L50) *style:* **Variable and function names should be all lowercase.**
```r
categoricalStockPredictions <- function(df) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:55:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L55) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:56:61:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L56) *style:* **Trailing whitespace is superfluous.**
```r
  # Scale data - remove categorical variable and add it back
                                                            ^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:62:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L62) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:64:4:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L64) *style:* **Commented code should be removed.**
```r
  ### GLMNET - LOGISITIC
   ^~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:64:25:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L64) *style:* **Trailing whitespace is superfluous.**
```r
  ### GLMNET - LOGISITIC
                        ^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:66:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L66) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:67:48:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L67) *style:* **Trailing whitespace is superfluous.**
```r
  # Import glmnet model and parameter from file
                                               ^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:68:23:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L68) *style:* **Variable and function names should be all lowercase.**
```r
  glm_best <- readRDS(LogisticRegressionModelFile)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:68:23:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L68) *warning:* **no visible binding for global variable ‘LogisticRegressionModelFile’**
```r
  glm_best <- readRDS(LogisticRegressionModelFile)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:69:3:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L69) *style:* **Variable and function names should be all lowercase.**
```r
  bestLambda <- readRDS(LogisticRegressionModelLambdaFile)
  ^~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:69:25:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L69) *style:* **Variable and function names should be all lowercase.**
```r
  bestLambda <- readRDS(LogisticRegressionModelLambdaFile)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:69:25:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L69) *style:* **Variable and function names should not be longer than 30 characters.**
```r
  bestLambda <- readRDS(LogisticRegressionModelLambdaFile)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:69:25:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L69) *warning:* **no visible binding for global variable ‘LogisticRegressionModelLambdaFile’**
```r
  bestLambda <- readRDS(LogisticRegressionModelLambdaFile)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:70:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L70) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:71:29:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L71) *style:* **Trailing whitespace is superfluous.**
```r
  # Reformat data for glmnet
                            ^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:73:57:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L73) *style:* **Trailing whitespace is superfluous.**
```r
  # Predict using optimal Linear Regression Coefficients
                                                        ^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:74:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L74) *style:* **lines should not be more than 80 characters.**
```r
  predict_glm <- predict.glmnet(glm_best, newx = x_data_lin, type = "response", s = bestLambda)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:74:18:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L74) *warning:* **no visible global function definition for ‘predict.glmnet’**
```r
  predict_glm <- predict.glmnet(glm_best, newx = x_data_lin, type = "response", s = bestLambda)
                 ^~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:74:85:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L74) *style:* **Variable and function names should be all lowercase.**
```r
  predict_glm <- predict.glmnet(glm_best, newx = x_data_lin, type = "response", s = bestLambda)
                                                                                ^~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:75:45:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L75) *style:* **Trailing whitespace is superfluous.**
```r
  # Change log odds to categorical variables
                                            ^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:76:46:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L76) *style:* **Do not place spaces around code in parentheses or square brackets.**
```r
  predictions <- ifelse(predictions > 0, 1, 0 )
                                             ^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:77:50:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L77) *style:* **Trailing whitespace is superfluous.**
```r
  # Ensure data types are the same int -> factors
                                                 ^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:79:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L79) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:81:19:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L81) *style:* **Trailing whitespace is superfluous.**
```r
  ## Random Forest
                  ^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:83:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L83) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:84:58:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L84) *style:* **Trailing whitespace is superfluous.**
```r
  # Import random forest model from file - has 1400 trees
                                                         ^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:85:27:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L85) *style:* **Variable and function names should be all lowercase.**
```r
  rf_cat_model <- readRDS(RandomForestCatModelFile)
                          ^~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:85:27:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L85) *warning:* **no visible binding for global variable ‘RandomForestCatModelFile’**
```r
  rf_cat_model <- readRDS(RandomForestCatModelFile)
                          ^~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:86:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L86) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:89:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L89) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:90:32:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L90) *style:* **Trailing whitespace is superfluous.**
```r
  # Predict using Random Forest
                               ^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:92:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L92) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:96:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L96) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:97:3:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L97) *warning:* **no visible global function definition for ‘h2o.init’**
```r
  h2o.init(nthreads = -1)
  ^~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:98:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L98) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:99:21:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L99) *warning:* **no visible global function definition for ‘as.h2o’**
```r
  x_data_h2o.hex <- as.h2o(x_data_lin)
                    ^~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:100:3:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L100) *style:* **Variable and function names should be all lowercase.**
```r
  dnnModel <- h2o.loadModel("DNNmodel_cat/DNNmodel_cat")
  ^~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:100:15:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L100) *style:* **Variable and function names should be all lowercase.**
```r
  dnnModel <- h2o.loadModel("DNNmodel_cat/DNNmodel_cat")
              ^~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:100:15:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L100) *warning:* **no visible global function definition for ‘h2o.loadModel’**
```r
  dnnModel <- h2o.loadModel("DNNmodel_cat/DNNmodel_cat")
              ^~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:101:32:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L101) *warning:* **no visible global function definition for ‘h2o.predict’**
```r
  predict.reg <- as.data.frame(h2o.predict(dnnModel, x_data_h2o.hex))
                               ^~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:101:44:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L101) *style:* **Variable and function names should be all lowercase.**
```r
  predict.reg <- as.data.frame(h2o.predict(dnnModel, x_data_h2o.hex))
                                           ^~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:102:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L102) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:103:3:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L103) *warning:* **no visible global function definition for ‘h2o.shutdown’**
```r
  h2o.shutdown(prompt = FALSE)
  ^~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:104:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L104) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:105:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L105) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:107:17:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L107) *style:* **Trailing whitespace is superfluous.**
```r
  ## Predictions
                ^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:109:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L109) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:111:26:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L111) *style:* **Trailing whitespace is superfluous.**
```r
  # Order is DNN, RF, GLM
                         ^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:112:28:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L112) *style:* **Commas should never have a space before.**
```r
  Accuracy <- c(.8, 0.356  ,0.6317)
                         ~~^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:112:29:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L112) *style:* **Commas should always have a space after.**
```r
  Accuracy <- c(.8, 0.356  ,0.6317)
                            ^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:113:24:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L113) *style:* **Put spaces around all infix operators.**
```r
  weights <- (Accuracy)/sum(Accuracy)
                      ~^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:114:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L114) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:115:73:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L115) *style:* **Trailing whitespace is superfluous.**
```r
  # Turn predictions from factors into integers for combining at the end
                                                                        ^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:116:4:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L116) *style:* **Commented code should be removed.**
```r
  #predict.reg <- as.integer(predict.reg)
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:120:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L120) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:122:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L122) *style:* **lines should not be more than 80 characters.**
```r
  predictions <- (weights[1]*predict_dnn + weights[2]*predict_rf + weights[3]*predict_glm)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:122:29:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L122) *style:* **Put spaces around all infix operators.**
```r
  predictions <- (weights[1]*predict_dnn + weights[2]*predict_rf + weights[3]*predict_glm)
                           ~^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:122:54:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L122) *style:* **Put spaces around all infix operators.**
```r
  predictions <- (weights[1]*predict_dnn + weights[2]*predict_rf + weights[3]*predict_glm)
                                                    ~^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:122:78:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L122) *style:* **Put spaces around all infix operators.**
```r
  predictions <- (weights[1]*predict_dnn + weights[2]*predict_rf + weights[3]*predict_glm)
                                                                            ~^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:123:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L123) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:124:28:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L124) *style:* **Trailing whitespace is superfluous.**
```r
  # Make predictions 0 or 1
                           ^
```
[IG-CM-MT-MY_mf850finalproject_iii.R:138:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L138) *style:* **Variable and function names should be all lowercase.**
```r
stockPredictions <- categoricalStockPredictions(df)
^~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:138:21:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L138) *style:* **Variable and function names should be all lowercase.**
```r
stockPredictions <- categoricalStockPredictions(df)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[IG-CM-MT-MY_mf850finalproject_iii.R:139:7:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/IG-CM-MT-MY_mf850finalproject_iii.R#L139) *style:* **Variable and function names should be all lowercase.**
```r
print(stockPredictions)
      ^~~~~~~~~~~~~~~~
```


Looks good!


Ah en effet, il n'y a pas les commentaires qui figure en haut du fichier et je me suis effectivement servi de votre lien. Dans tout les cas, ce n'est pas moi qui ai développé cette partie.


Somehow this only triggered notifications from my fork. I've not seen notifications from the main repository.


@ghsr thanks for updating all the repos. Currently doing a new build of rr.
Just a small thing, while patching i got this small error, I think its not required for rr so shouldn't be a problem http://hastebin.com/eqitesawen.vbs

Thanks once again!


Il semblerait que mon commit n'ai jamais été pris en compte. Comment faire pour qu'il le soit ?


I have a PR in the pipe. Shall switch it on again in there.


Test commit


a test code created


I was wondering what you were doing here since an anonymous function was being passed in and the return value wasn't being used; essentially a no-op. And _then after looking at the test_ I realised you were relying on the side effects of executing the wrapped function immediately.

While, as the test shows, this is clearly achieving the functional _intent_, I think the code ends up being a bit unclear. Calling a (as of yet non-existent) function `deprecated.printWarning(msg)` would make the intent a lot clearer IMHO.

Would you mind extracting the relevant parts of `wrap` into an exported function of its own that you can call? Preferably also being called from `wrap` to avoid duplication.

Hope I don't come across as too anal about these things, just trying to keep things orderly 👮🏻


Nice catch!


was this the missing one


OK, it would be nice if I can keep livereload, it looks useful, but I still need the style.css build process I had. Though, feel free to modify it. Here's my logic behind it.

Take font-awesome and bootstrap from bower, and add them in style.css

When I change anything thing in sass files, to compile them into style.css. Everything goes there. Would be nice if it was minified.

Thanks @sayanriju - if you have any specific questions with this codebase, please feel free to ping me.


I think you meant to change `git clone git://github.com/tpope/vim-vinegar.git` to `git clone git://github.com/dhruvasagar/vim-vinegar.git` and not the url of `pathogen` which is obsolete for vim8 user anyway.


@guilhermejacob in this commit, you reverted a bunch of changes that i made.  was that intentional?


Yeah, it's not actually that great. I wonder how folks actually resize their panes, can't believe they really use the `tmux resize-pane -D 20` crap.


@johnleider You shouldn't use fixed data in **package.json**.
After I use `vue init vuetifyjs/webpack`, I get your data.
`vue-cli` questions won't be used in the template.

**package.json** should use `{{ name }}`, `{{ description }}` and `{{ author }}` as it was.


Remove https://github.com/ghsr/build_tools/blob/cm-14.1/patches/vendor_cm.patch file
and this line https://github.com/ghsr/build_tools/blob/cm-14.1/patch#L17


> PMMP doesn't have working Durability though ;)

Wrong... when was the last time you actually used PocketMine-MP?

> showing othe players that you are eating/feeding a mob.

Wrong again... AnimatePacket and InteractPacket...

> It seems to update the item in the hand and can be used for plugins.

Facedesk... plugins already have this power with a packet actually intended for this.


I think the line 30 (else WIN32 part) should be fixed as well


134041643-Fault-Fouling-Chiller (rongpengzhang) - x86_64-Linux-Ubuntu-14.04-gcc-4.8: OK (2389 of 2389 tests passed, 574 test warnings)

 * 574 tests had: AUD diffs.
 * 1 test had: ERR diffs.
 * 1 test had: ESO small diffs.
 * 1 test had: MTR small diffs.

![Build Badge](http://img.shields.io/badge/build%20status-warnings-yellow.png) ![Test Badge](http://img.shields.io/badge/tests%20passed-100.0%25-green.png)


I will probably squash all the commits back to a certain date so that it looks clean :)


object-assign 也可以去掉。


This compiles with warnings:

Config:
debug: 'no'
sanitize: 'no'
optimize: 'yes'
arch: 'i386'
bits: '32'
kernel: 'MINGW32_NT-6.2'
os: 'Windows_NT'
prefetch: 'yes'
popcnt: 'no'
sse: 'yes'
pext: 'no'

Flags:
CXX: g++
CXXFLAGS: -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshad
ow -DNDEBUG -O3 -msse
LDFLAGS:  -static

Testing config sanity. If this fails, try 'make help' ...

make ARCH=x86-32 COMP=mingw all
make[1]: Entering directory `/tmp/tmpinmfzd/atumanian-Stockfish-03300b6/src'
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o benchmark.o benchmark.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o bitbase.o bitbase.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o bitboard.o bitboard.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o endgame.o endgame.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o evaluate.o evaluate.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o main.o main.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o material.o material.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o misc.o misc.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o movegen.o movegen.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o movepick.o movepick.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o pawns.o pawns.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o position.o position.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o psqt.o psqt.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o search.o search.cpp
search.cpp: In instantiation of 'Value {anonymous}::search(Position&, Search::St
ack*, Value, Value, Depth, bool, bool) [with {anonymous}::NodeType NT = (<unname
d>::NodeType)1u]':
search.cpp:410:89:   required from here
search.cpp:639:74: warning: suggest parentheses around '&&' within '||' [-Wparen
theses]
                     && (ttData.bound() == BOUND_EXACT || ttValue >= beta && ttD
ata.bound() == BOUND_LOWER
                                                          ~~~~~~~~~~~~~~~~^~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~
search.cpp:640:41: warning: suggest parentheses around '&&' within '||' [-Wparen
theses]
                     || ttValue <= alpha && ttData.bound() == BOUND_UPPER)))
                        ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search.cpp:636:25: warning: suggest parentheses around '&&' within '||' [-Wparen
theses]
             && (!PvNode && (ttValue >= beta ? (ttData.bound() & BOUND_LOWER)

search.cpp: In instantiation of 'Value {anonymous}::qsearch(Position&, Search::S
tack*, Value, Value, Depth) [with {anonymous}::NodeType NT = (<unnamed>::NodeTyp
e)0u; bool InCheck = false]':
search.cpp:734:41:   required from 'Value {anonymous}::search(Position&, Search:
:Stack*, Value, Value, Depth, bool, bool) [with {anonymous}::NodeType NT = (<unn
amed>::NodeType)1u]'
search.cpp:410:89:   required from here
search.cpp:1216:76: warning: suggest parentheses around '&&' within '||' [-Wpare
ntheses]
             || PvNode && (ttData.bound() == BOUND_EXACT || ttValue >= beta && t
tData.bound() == BOUND_LOWER
                                                            ~~~~~~~~~~~~~~~~^~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search.cpp:1217:41: warning: suggest parentheses around '&&' within '||' [-Wpare
ntheses]
                     || ttValue <= alpha && ttData.bound() == BOUND_UPPER))) {
                        ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search.cpp:1214:25: warning: suggest parentheses around '&&' within '||' [-Wpare
ntheses]
             && (!PvNode && (ttValue >= beta ? (ttData.bound() & BOUND_LOWER)

search.cpp: In instantiation of 'Value {anonymous}::search(Position&, Search::St
ack*, Value, Value, Depth, bool, bool) [with {anonymous}::NodeType NT = (<unname
d>::NodeType)0u]':
search.cpp:766:56:   required from 'Value {anonymous}::search(Position&, Search:
:Stack*, Value, Value, Depth, bool, bool) [with {anonymous}::NodeType NT = (<unn
amed>::NodeType)1u]'
search.cpp:410:89:   required from here
search.cpp:639:74: warning: suggest parentheses around '&&' within '||' [-Wparen
theses]
                     && (ttData.bound() == BOUND_EXACT || ttValue >= beta && ttD
ata.bound() == BOUND_LOWER
                                                          ~~~~~~~~~~~~~~~~^~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~
search.cpp:640:41: warning: suggest parentheses around '&&' within '||' [-Wparen
theses]
                     || ttValue <= alpha && ttData.bound() == BOUND_UPPER)))
                        ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search.cpp:636:25: warning: suggest parentheses around '&&' within '||' [-Wparen
theses]
             && (!PvNode && (ttValue >= beta ? (ttData.bound() & BOUND_LOWER)

search.cpp: In instantiation of 'Value {anonymous}::qsearch(Position&, Search::S
tack*, Value, Value, Depth) [with {anonymous}::NodeType NT = (<unnamed>::NodeTyp
e)0u; bool InCheck = true]':
search.cpp:1022:64:   required from 'Value {anonymous}::search(Position&, Search
::Stack*, Value, Value, Depth, bool, bool) [with {anonymous}::NodeType NT = (<un
named>::NodeType)1u]'
search.cpp:410:89:   required from here
search.cpp:1216:76: warning: suggest parentheses around '&&' within '||' [-Wpare
ntheses]
             || PvNode && (ttData.bound() == BOUND_EXACT || ttValue >= beta && t
tData.bound() == BOUND_LOWER
                                                            ~~~~~~~~~~~~~~~~^~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search.cpp:1217:41: warning: suggest parentheses around '&&' within '||' [-Wpare
ntheses]
                     || ttValue <= alpha && ttData.bound() == BOUND_UPPER))) {
                        ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search.cpp:1214:25: warning: suggest parentheses around '&&' within '||' [-Wpare
ntheses]
             && (!PvNode && (ttValue >= beta ? (ttData.bound() & BOUND_LOWER)

search.cpp: In instantiation of 'Value {anonymous}::qsearch(Position&, Search::S
tack*, Value, Value, Depth) [with {anonymous}::NodeType NT = (<unnamed>::NodeTyp
e)1u; bool InCheck = true]':
search.cpp:1035:61:   required from 'Value {anonymous}::search(Position&, Search
::Stack*, Value, Value, Depth, bool, bool) [with {anonymous}::NodeType NT = (<un
named>::NodeType)1u]'
search.cpp:410:89:   required from here
search.cpp:1216:76: warning: suggest parentheses around '&&' within '||' [-Wpare
ntheses]
             || PvNode && (ttData.bound() == BOUND_EXACT || ttValue >= beta && t
tData.bound() == BOUND_LOWER
                                                            ~~~~~~~~~~~~~~~~^~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search.cpp:1217:41: warning: suggest parentheses around '&&' within '||' [-Wpare
ntheses]
                     || ttValue <= alpha && ttData.bound() == BOUND_UPPER))) {
                        ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search.cpp:1214:25: warning: suggest parentheses around '&&' within '||' [-Wpare
ntheses]
             && (!PvNode && (ttValue >= beta ? (ttData.bound() & BOUND_LOWER)

search.cpp: In instantiation of 'Value {anonymous}::qsearch(Position&, Search::S
tack*, Value, Value, Depth) [with {anonymous}::NodeType NT = (<unnamed>::NodeTyp
e)1u; bool InCheck = false]':
search.cpp:1036:61:   required from 'Value {anonymous}::search(Position&, Search
::Stack*, Value, Value, Depth, bool, bool) [with {anonymous}::NodeType NT = (<un
named>::NodeType)1u]'
search.cpp:410:89:   required from here
search.cpp:1216:76: warning: suggest parentheses around '&&' within '||' [-Wpare
ntheses]
             || PvNode && (ttData.bound() == BOUND_EXACT || ttValue >= beta && t
tData.bound() == BOUND_LOWER
                                                            ~~~~~~~~~~~~~~~~^~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search.cpp:1217:41: warning: suggest parentheses around '&&' within '||' [-Wpare
ntheses]
                     || ttValue <= alpha && ttData.bound() == BOUND_UPPER))) {
                        ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search.cpp:1214:25: warning: suggest parentheses around '&&' within '||' [-Wpare
ntheses]
             && (!PvNode && (ttValue >= beta ? (ttData.bound() & BOUND_LOWER)

g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o thread.o thread.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o timeman.o timeman.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o tt.o tt.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o uci.o uci.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o ucioption.o ucioption.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -Wextra -Wshadow -DN
DEBUG -O3 -msse   -c -o syzygy/tbprobe.o syzygy/tbprobe.cpp
g++ -o stockfish benchmark.o bitbase.o bitboard.o endgame.o evaluate.o main.o ma
terial.o misc.o movegen.o movepick.o pawns.o position.o psqt.o search.o thread.o
 timeman.o tt.o uci.o ucioption.o syzygy/tbprobe.o  -static
make[1]: Leaving directory `/tmp/tmpinmfzd/atumanian-Stockfish-03300b6/src'


Fixed in Clover 4.7.1 (http://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/clover/4.7.1/)


134041643-Fault-Fouling-Chiller (rongpengzhang) - x86_64-Linux-Ubuntu-14.04-cppcheck-1.61: OK (0 of 0 tests passed, 0 test warnings)

![Build Badge](http://img.shields.io/badge/build%20status-passing-green.png)


src/TransformCore/PHE/HayApi/PersistenceBundle/Scoring/Rag/DrinkingScore.php
<https://github.com/TransformCore/HayPersistenceApi/pull/308/files#diff-8b23613de7b8af8225d8f56991c0903d>

Indentation on case statement, all sub commands must be 4 spaces in from
the case condition

On Mon, Dec 19, 2016 at 8:56 AM, Gav <notifications@github.com> wrote:

> was this the missing one
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/TransformCore/HayPersistenceApi/commit/00dea28a6df04d410d8e3966af7bf63d0f28101c#commitcomment-20230149>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AF1y2Dr3gpDei1x0kFRmP0gX3qpFfO7mks5rJka3gaJpZM4LQf3c>
> .
>


这个也是我疑惑的地方，这个是用来做数据库查询用的，在单元测试时确实没用。


not sure "subject" is correct in this form: I was searching wikipedia to be sure "soggetto" in movies terms was "subject" but I found a lot of messy neologisms... if you are sure it is, I'm happy with it: you are my reference when it comes to movies production.


public void createContact(ContactData contact) {


fillContactForm(contact, true);


你的方法确实可读性更好。


@gebner Yes, of course. I will add this test in my next commit.


ContactData contact = new ContactData("Bilbo", "Baggins", "Shire","8(800)8008080","bilbo@mail.ru", "test1");
app.getContactHelper().createContact(contact); // без true


Created multidev environment [ci-example-d8-composer#ci-162](https://dashboard.pantheon.io/sites/c401fd14-f745-4e51-9af2-f30b45146a0c#ci-162).

[![Visit Site](https://raw.githubusercontent.com/pantheon-systems/ci-drops-8/0.1.0/data/img/visit-site-36.png)](https://ci-162-ci-example-d8-composer.pantheonsite.io/)


Lmao 😆


我在这里的总是就是这些Mock的数据在每个测试里，导致测试比较冗长，也比较难读。所以，我特意重构提炼了出来，但确实有你说的问题，不知道有什么好的解决方法。


Don't forget to put this in a json x)


@glenn12345 config/web.php 是 Yii2 基础版的文件，你使用的是 Yii2 高级版，对应的应该是 common 中的 config\main.php 文件。这些是基础知识，应该好好看一下文档 :smile:


public void createKontact(KontactData kontact) {


fillKontactForm(kontact, true);


null));


I just released Clover 4.7.1 which solves JENKINS-39410 and JENKINS-38956 issues.


Would work on this. Thanks!


commit 6-replaced $result by $message and $color to pass into flashmessage() function


Would be really nice to separate refactoring commits from actual changes.


'server' wasn't a typo... it was a pun...


I am waiting for you :+1:  :dancer:


fw 1.3.2 for the dlan 1200 wifi+ ac needs a :sys:NetworkFilter.AllowTelnet=yes , however I cannot get the sysmgr (where this moved to instead of rcS) to start the telnetd, yet.
I could add a full config&firmware decoder if you like... amended and updated develo_fw_check.c


element.findElement(By.xpath("//td[3]")).getText(); - еще надо указать ячейку из которой достаем текст
Также можно попробовать вытаскивать фамилии, емайл и телефон.


[test_train_split.R:44:19:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/test_train_split.R#L44) *style:* **Place a space before left parenthesis, except in a function call.**
```r
MSE_test1 <- mean((y_test - mean(y_train)) ^ 2)
                  ^
```


commit-7 replaced $message & $color with $result again, a better way to print the messages, through flashmessage() function AND created  redirectTo() fun. for redirecting


[MF850Utilities.R:1:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L1) *style:* **Variable and function names should be all lowercase.**
```r
laggedDataFile <- "laggeddata.rds"
^~~~~~~~~~~~~~
```
[MF850Utilities.R:5:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L5) *style:* **Variable and function names should be all lowercase.**
```r
LinearRegrssionFile <- "Linear_Ridge_Lasso.R"
^~~~~~~~~~~~~~~~~~~
```
[MF850Utilities.R:6:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L6) *style:* **Variable and function names should be all lowercase.**
```r
RandomForestRegressionFile <- "random_forest_reg.R"
^~~~~~~~~~~~~~~~~~~~~~~~~~
```
[MF850Utilities.R:7:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L7) *style:* **Variable and function names should be all lowercase.**
```r
LogisticRegressionFile <- "Logistic_Ridge_Lasso.R"
^~~~~~~~~~~~~~~~~~~~~~
```
[MF850Utilities.R:8:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L8) *style:* **Variable and function names should be all lowercase.**
```r
RandomForestCatFile <- "random_forest_cat.R"  # Random forest high/low
^~~~~~~~~~~~~~~~~~~
```
[MF850Utilities.R:9:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L9) *style:* **Variable and function names should be all lowercase.**
```r
LogisticRegressionModelLambdaFile <- "Logistic_Ridge_Lasso_model_lambda.rds"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[MF850Utilities.R:9:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L9) *style:* **Variable and function names should not be longer than 30 characters.**
```r
LogisticRegressionModelLambdaFile <- "Logistic_Ridge_Lasso_model_lambda.rds"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[MF850Utilities.R:12:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L12) *style:* **Variable and function names should be all lowercase.**
```r
LinearRegrssionModelFile <- "Linear_Ridge_Lasso_model.rds"
^~~~~~~~~~~~~~~~~~~~~~~~
```
[MF850Utilities.R:13:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L13) *style:* **Variable and function names should be all lowercase.**
```r
LinearRegrssionModelLambdaFile <- "Linear_Ridge_Lasso_model_lambda.rds"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[MF850Utilities.R:14:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L14) *style:* **Variable and function names should be all lowercase.**
```r
RandomForestRegressionModelFile <- "random_forest_model.rds"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[MF850Utilities.R:14:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L14) *style:* **Variable and function names should not be longer than 30 characters.**
```r
RandomForestRegressionModelFile <- "random_forest_model.rds"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[MF850Utilities.R:15:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L15) *style:* **Variable and function names should be all lowercase.**
```r
LogisticRegressionModelFile <- "Logistic_Ridge_Lasso_model.rds"
^~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[MF850Utilities.R:16:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L16) *style:* **Variable and function names should be all lowercase.**
```r
RandomForestCatModelFile <- "random_forest_cat_model.rds"
^~~~~~~~~~~~~~~~~~~~~~~~
```
[MF850Utilities.R:18:8:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L18) *style:* **Put spaces around all infix operators.**
```r
par(ask=FALSE)
      ~^~
```
[MF850Utilities.R:25:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L25) *style:* **Variable and function names should be all lowercase.**
```r
loadLaggedDataSet <- function() {
^~~~~~~~~~~~~~~~~
```
[MF850Utilities.R:26:36:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L26) *style:* **Variable and function names should be all lowercase.**
```r
  mynewdataframe <- readRDS(file = laggedDataFile)
                                   ^~~~~~~~~~~~~~
```
[MF850Utilities.R:26:36:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L26) *warning:* **no visible binding for global variable ‘laggedDataFile’**
```r
  mynewdataframe <- readRDS(file = laggedDataFile)
                                   ^~~~~~~~~~~~~~
```
[MF850Utilities.R:31:57:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L31) *style:* **Commas should always have a space after.**
```r
  packagestoinstall_split <- strsplit(packagestoinstall,", ")[[1]]
                                                        ^
```
[MF850Utilities.R:33:7:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L33) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(!packagename %in% rownames(installed.packages())){
      ^
```
[MF850Utilities.R:37:31:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L37) *style:* **Commas should always have a space after.**
```r
      print(paste(packagename,"already installed"))
                              ^
```
[MF850Utilities.R:39:40:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L39) *style:* **Put spaces around all infix operators.**
```r
    library(packagename, character.only=TRUE)
                                      ~^~
```
[MF850Utilities.R:43:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L43) *style:* **Variable and function names should be all lowercase.**
```r
lagStockData <- function(stockdata) {
^~~~~~~~~~~~
```
[MF850Utilities.R:47:6:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L47) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  for(company in companies)
     ^
```
[MF850Utilities.R:48:3:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L48) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
  {
  ^
```
[MF850Utilities.R:50:51:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L50) *style:* **Commas should always have a space after.**
```r
    futurereturns <- c(returns[2:length(returns)],NA)
                                                  ^
```
[MF850Utilities.R:51:29:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L51) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
    if (1 == NROW(returns)) {futurereturns <- c(NA)}
                            ^
```
[MF850Utilities.R:51:52:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L51) *style:* **Closing curly-braces should always be on their own line, unless it's followed by an else.**
```r
    if (1 == NROW(returns)) {futurereturns <- c(NA)}
                                                   ^
```
[MF850Utilities.R:52:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L52) *style:* **Trailing whitespace is superfluous.**
```r

^~~~
```
[MF850Utilities.R:54:16:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L54) *style:* **Use <-, not =, for assignment.**
```r
    newdataset = rbind(newdataset, company)
               ^
```
[MF850Utilities.R:56:7:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L56) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(i %% 500 == 0) print(i)
      ^
```
[MF850Utilities.R:58:30:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L58) *style:* **Variable and function names should be all lowercase.**
```r
  saveRDS(newdataset, file = laggedDataFile)
                             ^~~~~~~~~~~~~~
```
[MF850Utilities.R:58:30:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L58) *warning:* **no visible binding for global variable ‘laggedDataFile’**
```r
  saveRDS(newdataset, file = laggedDataFile)
                             ^~~~~~~~~~~~~~
```
[MF850Utilities.R:62:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L62) *style:* **Variable and function names should be all lowercase.**
```r
removeLastMonth <- function(stockdata) {
^~~~~~~~~~~~~~~
```
[MF850Utilities.R:66:6:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L66) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  for(company in companies)
     ^
```
[MF850Utilities.R:67:3:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L67) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
  {
  ^
```
[MF850Utilities.R:68:13:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L68) *style:* **Use <-, not =, for assignment.**
```r
    company = company[-1,]
            ^
```
[MF850Utilities.R:68:26:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L68) *style:* **Commas should always have a space after.**
```r
    company = company[-1,]
                         ^
```
[MF850Utilities.R:69:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L69) *style:* **Trailing whitespace is superfluous.**
```r

^~~~
```
[MF850Utilities.R:70:16:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L70) *style:* **Use <-, not =, for assignment.**
```r
    newdataset = rbind(newdataset, company)
               ^
```
[MF850Utilities.R:72:7:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L72) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(i %% 500 == 0) print(i)
      ^
```
[MF850Utilities.R:76:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/MF850Utilities.R#L76) *style:* **Trailing blank lines are superfluous.**
```r

^
```


[NeuralNet_tryM.R:17:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/NeuralNet_tryM.R#L17) *style:* **lines should not be more than 80 characters.**
```r
h2o.deeplearning( x = explanatorycolumns, y = "futurereturns", training_frame =  x_trainh2o.hex,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[NeuralNet_tryM.R:18:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/NeuralNet_tryM.R#L18) *style:* **lines should not be more than 80 characters.**
```r
                  validation_frame = x_testh2o.hex, activation =  "Tanh", hidden = rep(100, 100),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[NeuralNet_tryM.R:19:65:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/NeuralNet_tryM.R#L19) *style:* **Trailing whitespace is superfluous.**
```r
                  #momentum_start = 0.5, momentum_stable = 0.99,
                                                                ^
```
[NeuralNet_tryM.R:25:6:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/NeuralNet_tryM.R#L25) *style:* **Variable and function names should be all lowercase.**
```r
m <- h2o.getModel(model_id)
     ^~~~~~~~~~~~
```
[NeuralNet_tryM.R:28:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/NeuralNet_tryM.R#L28) *style:* **Variable and function names should be all lowercase.**
```r
h2o.saveModel(m,model_id)
^~~~~~~~~~~~~
```
[NeuralNet_tryM.R:28:17:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/NeuralNet_tryM.R#L28) *style:* **Commas should always have a space after.**
```r
h2o.saveModel(m,model_id)
                ^
```
[NeuralNet_tryM.R:45:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/NeuralNet_tryM.R#L45) *style:* **lines should not be more than 80 characters.**
```r
h2o.deeplearning( x = explanatorycolumns, y = "futurereturns", training_frame =  x_trainh2o.hex,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[NeuralNet_tryM.R:46:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/NeuralNet_tryM.R#L46) *style:* **lines should not be more than 80 characters.**
```r
                  validation_frame = x_testh2o.hex, activation =  "Tanh", hidden = rep(100, 100),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[NeuralNet_tryM.R:47:65:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/NeuralNet_tryM.R#L47) *style:* **Trailing whitespace is superfluous.**
```r
                  #momentum_start = 0.5, momentum_stable = 0.99,
                                                                ^
```
[NeuralNet_tryM.R:49:41:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/NeuralNet_tryM.R#L49) *style:* **Trailing whitespace is superfluous.**
```r
                  distribution = "AUTO",
                                        ^
```
[NeuralNet_tryM.R:55:7:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/NeuralNet_tryM.R#L55) *style:* **Variable and function names should be all lowercase.**
```r
m2 <- h2o.getModel(model_id_cat)
      ^~~~~~~~~~~~
```
[NeuralNet_tryM.R:58:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/NeuralNet_tryM.R#L58) *style:* **Variable and function names should be all lowercase.**
```r
h2o.saveModel(m2,model_id_cat)
^~~~~~~~~~~~~
```
[NeuralNet_tryM.R:58:18:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/NeuralNet_tryM.R#L58) *style:* **Commas should always have a space after.**
```r
h2o.saveModel(m2,model_id_cat)
                 ^
```
[NeuralNet_tryM.R:65:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/717faff5a744bb464bc207018330089956bc53d7/NeuralNet_tryM.R#L65) *style:* **Trailing blank lines are superfluous.**
```r

^
```