[random_forest_cat.R:9:2:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L9) *style:* **Commented code should be removed.**
```r
#install.packages("randomForest")
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_cat.R:10:9:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L10) *style:* **Variable and function names should be all lowercase.**
```r
library(randomForest)
        ^~~~~~~~~~~~
```
[random_forest_cat.R:28:40:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L28) *style:* **Trailing whitespace is superfluous.**
```r
  # Number of trees to use in algorithm
                                       ^
```
[random_forest_cat.R:29:23:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L29) *style:* **Put spaces around all infix operators.**
```r
  numb_trees_rf <- 200*tree_numb
                     ~^~
```
[random_forest_cat.R:30:22:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L30) *style:* **Trailing whitespace is superfluous.**
```r
  # Fit random forest
                     ^
```
[random_forest_cat.R:31:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L31) *style:* **lines should not be more than 80 characters.**
```r
  fit_temp <- randomForest(x_train, y_train_cat, xtest = x_test, ytest = y_test_cat, ntree = numb_trees_rf)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_cat.R:31:15:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L31) *style:* **Variable and function names should be all lowercase.**
```r
  fit_temp <- randomForest(x_train, y_train_cat, xtest = x_test, ytest = y_test_cat, ntree = numb_trees_rf)
              ^~~~~~~~~~~~
```
[random_forest_cat.R:32:45:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L32) *style:* **Trailing whitespace is superfluous.**
```r
  # Temporary confusion matrix for in sample
                                            ^
```
[random_forest_cat.R:34:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L34) *style:* **lines should not be more than 80 characters.**
```r
  # # In sample accuracy - sum the 1st and 4th element of matrix (6 elements total)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_cat.R:34:5:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L34) *style:* **Commented code should be removed.**
```r
  # # In sample accuracy - sum the 1st and 4th element of matrix (6 elements total)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_cat.R:34:84:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L34) *style:* **Trailing whitespace is superfluous.**
```r
  # # In sample accuracy - sum the 1st and 4th element of matrix (6 elements total)
                                                                                ^
```
[random_forest_cat.R:39:27:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L39) *style:* **Trailing whitespace is superfluous.**
```r
  # Out of sample accuracy
                          ^
```
[random_forest_cat.R:41:24:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L41) *style:* **Trailing whitespace is superfluous.**
```r
  # Store in data frame
                       ^
```
[random_forest_cat.R:42:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L42) *style:* **lines should not be more than 80 characters.**
```r
  rf_tree_err[tree_numb, 1:3] <- c(train_accuracy_temp, numb_trees_rf, test_accuracy_temp)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_cat.R:42:91:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L42) *style:* **Trailing whitespace is superfluous.**
```r
  rf_tree_err[tree_numb, 1:3] <- c(train_accuracy_temp, numb_trees_rf, test_accuracy_temp)
                                                                                ^
```
[random_forest_cat.R:43:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L43) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[random_forest_cat.R:49:37:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L49) *style:* **Put spaces around all infix operators.**
```r
abline(rf_err_fit, col = "blue", lwd= 4)
                                   ~^
```
[random_forest_cat.R:50:13:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L50) *style:* **Put spaces around all infix operators.**
```r
abline(h = 1-high_low_ratio_train, col = "red", lwd = 4) # at 0.65
           ~^~
```
[random_forest_cat.R:51:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L51) *style:* **lines should not be more than 80 characters.**
```r
legend("topright",  c("Regression error fit", "Error Rate Training set"), col = c("blue", "red"), lwd = 4)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_cat.R:59:3:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L59) *style:* **Commented code should be removed.**
```r
# rf_tree_err[which(rf_tree_err$Out_Error_Rate == min_out_err), ]
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_cat.R:61:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L61) *style:* **lines should not be more than 80 characters.**
```r
fit_cat <- randomForest(x_train, as.factor(y_train_cat), xtest = x_test, ytest = as.factor(y_test_cat), keep.forest = T, ntree = 1400)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_cat.R:61:12:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L61) *style:* **Variable and function names should be all lowercase.**
```r
fit_cat <- randomForest(x_train, as.factor(y_train_cat), xtest = x_test, ytest = as.factor(y_test_cat), keep.forest = T, ntree = 1400)
           ^~~~~~~~~~~~
```
[random_forest_cat.R:63:25:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L63) *style:* **Variable and function names should be all lowercase.**
```r
saveRDS(fit_cat, file = RandomForestCatModelFile)
                        ^~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_cat.R:64:3:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_cat.R#L64) *style:* **Commented code should be removed.**
```r
# saveRDS(best_row$Lambda, file = LinearRegrssionModelLambdaFile)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```


return TokenID and TokenExpires


`Option`クラスは以下の様に空データを返却するように修正します。
```
    @classmethod
    def parse_value(cls, buf):
        # Sub-classes should override this method, if needed.
        return {}

    def serialize_value(self):
        # Sub-classes should override this method, if needed.
        return b''
```

`OptionDataUnknown`クラスでは対象となる引数であるbufを辞書型にて設定し返却するように修正します。

```
    @classmethod
    def parse_value(cls, buf):
        return {"buf": buf}

    def serialize_value(self):
        return self.buf
```


library_packet_refの章についての記述の追加および修正を行っておりますので
ご指摘頂きました

```
doc: library_packet_ref: Update references
```

の内容がしっくりくると思いますので、上記に修正致します。


#include<iostream>
using namespace std;
int main()
{
printf("hello world");
}


学长雪姐的结晶。。。。。。。。。。。。。。。。。。。。


I'm very sorry!
We transformed HttpObjectDecoder in order to generate fewer objects.But we are wrong.


ご指摘のとおりです。@property箇所の修正で気づくべきでした。
以下の様に修正します。

```
        if self.checksum is not None:
            present |= GRE_CHECKSUM_FLG

            # For purposes of computing the checksum,
            # the value of the checksum field is zero.
            # Also, because Reserved1 is always 0x00 of 2 bytes,
            # Set in conjunction with checksum.
            optional += b'\x00' * self._CHECKSUM_LEN

        if self._key is not None:
            present |= GRE_KEY_FLG
            optional += struct.pack(self._KEY_PACK_STR, self._key)

        if self.seq_number is not None:
            present |= GRE_SEQUENCE_NUM_FLG
            optional += struct.pack(self._SEQNUM_PACK_STR, self.seq_number)
```


Should be rollbacked. See pull request #1223


所以你写了啥？😂


[random_forest_reg.R:7:2:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L7) *style:* **Commented code should be removed.**
```r
#install.packages("randomForest")
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_reg.R:8:9:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L8) *style:* **Variable and function names should be all lowercase.**
```r
library(randomForest)
        ^~~~~~~~~~~~
```
[random_forest_reg.R:19:78:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L19) *style:* **Trailing whitespace is superfluous.**
```r
names(rf_tree_mse)[1:3] <- c("MSE_in_sample", "Numb Trees", "MSE_out_sample")
                                                                             ^
```
[random_forest_reg.R:23:40:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L23) *style:* **Trailing whitespace is superfluous.**
```r
  # Number of trees to use in algorithm
                                       ^
```
[random_forest_reg.R:24:23:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L24) *style:* **Put spaces around all infix operators.**
```r
  numb_trees_rf <- 200*tree_numb
                     ~^~
```
[random_forest_reg.R:25:22:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L25) *style:* **Trailing whitespace is superfluous.**
```r
  # Fit random forest
                     ^
```
[random_forest_reg.R:26:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L26) *style:* **lines should not be more than 80 characters.**
```r
  fit_temp <- randomForest(x_train, y_train, xtest = x_test, ytest = y_test, ntree = numb_trees_rf)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_reg.R:26:15:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L26) *style:* **Variable and function names should be all lowercase.**
```r
  fit_temp <- randomForest(x_train, y_train, xtest = x_test, ytest = y_test, ntree = numb_trees_rf)
              ^~~~~~~~~~~~
```
[random_forest_reg.R:27:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L27) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[random_forest_reg.R:29:25:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L29) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  MSE_in_sample <- mean((fit_temp$predicted - y_train) ^ 2)
                        ^
```
[random_forest_reg.R:30:29:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L30) *style:* **Trailing whitespace is superfluous.**
```r
  # Calculate out sample MSE
                            ^
```
[random_forest_reg.R:31:26:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L31) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  MSE_out_sample <- mean((fit_temp$test$predicted - y_test) ^ 2)
                         ^
```
[random_forest_reg.R:32:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L32) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[random_forest_reg.R:33:24:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L33) *style:* **Trailing whitespace is superfluous.**
```r
  # Store in data frame
                       ^
```
[random_forest_reg.R:35:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L35) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[random_forest_reg.R:41:37:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L41) *style:* **Put spaces around all infix operators.**
```r
abline(rf_err_fit, col = "blue", lwd= 4)
                                   ~^
```
[random_forest_reg.R:43:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L43) *style:* **lines should not be more than 80 characters.**
```r
legend("topright",  c("Regression error fit", "MSE Training set"), col = c("blue", "red"), lwd = 4)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_reg.R:52:3:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L52) *style:* **Commented code should be removed.**
```r
# rf_tree_mse[which(rf_tree_mse$MSE_out_sample == min_out_err), ]
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_reg.R:56:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L56) *style:* **lines should not be more than 80 characters.**
```r
fit_temp <- randomForest(x_train, y_train, xtest = x_test, ytest = y_test, ntree = 700)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_reg.R:56:13:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L56) *style:* **Variable and function names should be all lowercase.**
```r
fit_temp <- randomForest(x_train, y_train, xtest = x_test, ytest = y_test, ntree = 700)
            ^~~~~~~~~~~~
```
[random_forest_reg.R:67:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L67) *style:* **lines should not be more than 80 characters.**
```r
fit_best_rf <- randomForest(x_train, y_train, xtest = x_test, ytest = y_test, ntree = 700, keep.forest = TRUE)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_reg.R:67:16:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L67) *style:* **Variable and function names should be all lowercase.**
```r
fit_best_rf <- randomForest(x_train, y_train, xtest = x_test, ytest = y_test, ntree = 700, keep.forest = TRUE)
               ^~~~~~~~~~~~
```
[random_forest_reg.R:69:22:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L69) *style:* **Variable and function names should be all lowercase.**
```r
saveRDS(fit_best_rf, RandomForestRegressionModelFile)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_reg.R:69:22:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/0f0bb6c02bfb36c55dffb11eb66e324708a3f7ac/random_forest_reg.R#L69) *style:* **Variable and function names should not be longer than 30 characters.**
```r
saveRDS(fit_best_rf, RandomForestRegressionModelFile)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```


Excellent, thank you and again, my apologies.


Seems like 'resolve' is not a valid keyword for GitHub, I hope it automatically sets the issue to fixed if I state here that this merge fixes issue #6 .


@ganwenlong so just to clarify, there is no issue right ?


hi humans


more code


develop (macumber) - Win64-Windows-7-VisualStudio-12: OK (2152 of 2182 tests passed, 0 test warnings)

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


Doesn't this commit break installation?


Imam vmesnik za git, vendar mi noče potisniti datotek na github, ampak mi vrže napako
" Pushing to https://github.com/markun9/PSA1
To https://github.com/markun9/PSA1
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/markun9/PSA1'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details."
Če pa v mapi izvedem git pull svoje strani predmeta, pa mi napiše, da je vse že posodobljeno, ćeprav v resnici ni, ker sm na računalniku precej stvari spreminjal.


Hello,
Why are you keeping these comments? Isn't version control here for this reason?


Hello.

[Second](https://github.com/PkXwmpgN/elements/blob/ee77cdd78347b63e8b0e69f44534140cf162c400/elements/assets/asset_model.cpp#L40) time I view this debuging code and I wonder, why not using instead #include ["../platform/android/elements/libs/Elements/src/main/jni/logging.h"](https://github.com/PkXwmpgN/elements/blob/caa4f2099007a7b0bc962cad1306d57eef17daa5/platform/android/elements/libs/Elements/src/main/jni/logging.h)?

Thank you.


Thanks you for facing the user's requests so fastly!


<img width="480" alt="screen shot 2016-12-19 at 3 09 50 pm" src="https://cloud.githubusercontent.com/assets/3982650/21305640/688c3b72-c5ff-11e6-9966-439fb0add2dc.png">


Il manque ce lien dans le message de commit.

https://laracasts.com/discuss/channels/tips/hoawebsocket-with-laravel-5-projects-push-notifications?page=1


bibak


This project belongs to px.


You're on the right track here.  In __init__, you make good use of self, but where to you tell Python that it should expect something called self?  Compare with examples from the slides.

You can finish print_summary next time.  It helps to put some descriptive words in the print statement, like: print("My name is "+self.name+" and I'm from "...


@jensens Jenkins CI reporting about code analysis
See the full report here: http://jenkins.plone.org/job/package-plone.app.z3cform/17/violations
```
plone/app/z3cform/inline_validation.py:15:1: C901 'InlineValidationView.__call__' is too complex (15)
plone/app/z3cform/widget.py:8:1: I001 isort found an import in the wrong position
plone/app/z3cform/widget.py:18:1: I001 isort found an import in the wrong position
plone/app/z3cform/interfaces.py:4:1: I001 isort found an import in the wrong position
plone/app/z3cform/templates.py:24:1: E305 expected 2 blank lines after class or function definition, found 1
plone/app/z3cform/tests/example.py:26:5: D001 found implements( replace it with zope.interface.implementer
plone/app/z3cform/tests/example.py:31:13: Q000 Remove bad quotes.
plone/app/z3cform/tests/example.py:44:34: Q000 Remove bad quotes.
plone/app/z3cform/tests/example.py:55:13: Q000 Remove bad quotes.
plone/app/z3cform/tests/example.py:70:30: Q000 Remove bad quotes.
plone/app/z3cform/tests/example.py:71:55: Q000 Remove bad quotes.
plone/app/z3cform/tests/example.py:72:52: Q000 Remove bad quotes.
plone/app/z3cform/tests/example.py:77:13: Q000 Remove bad quotes.
plone/app/z3cform/tests/test_widgets.py:41:5: D001 found implements( replace it with zope.interface.implementer
plone/app/z3cform/tests/test_widgets.py:1254:40: Q000 Remove bad quotes.
plone/app/z3cform/tests/test_utils.py:21:9: E731 do not assign a lambda expression, use a def
plone/app/z3cform/tests/test_widget.py:12:15: D001 found implements( replace it with zope.interface.implementer
```
Follow [these instructions](https://github.com/plone/jenkins.plone.org/blob/master/docs/source/run-qa-on-package.rst) to reproduce it locally.


decrementIdsLargerThen should be decrementIdsLargerThan, I guess?


The listing of that feature doesn't have to mean that it is working perfectly fine. The important part is to get it into the distribution first. We can still fix it during testing until 2017-02-05 with a version `v0.16.1` or with quilt patches on top.


revert


@AlexGaspar Would you mind creating a separate pull request for with just commit for upstream?


On trouve la même chose sur le github https://github.com/hoaproject/Websocket section "Quick usage".


you could try. It helps for me for ie9-11
maybe not work in older versions


For everyone you can now download pre build extractors in release section -> https://github.com/cmangos/mangos-classic/releases

For those who want to avoid extraction process you can download latest version of dbc/map/vmap/mmap
here: http://ovh.to/hKVwRh
or: https://mega.nz/#!hlEz0TiJ!Nwq9ASHqk5tO0VjMRUSk5OsVyBa5J8DJfrlk8bFhqgg


@sayanriju how does this work when compiling down scss files to css, and importing things from bower like bootstrap, and font awesome?


Hello, unfortunately still there is script error on the website :(
_ReferenceError: Js2coffee is not defined_


I try to alternative between "nicer figures" and "update". Maybe, I should a few more items to this rotating list. :D


OK, I'm going to remove getters and setters if they are not needed.


Et?


Die Method-Annotation ist als **best practice** von SensioLabs empfohlen.


真的还希望您能继续分享~


About https://github.com/jhipster/generator-jhipster/issues/4549#issuecomment-267849091
@deepu105 : I think the issue is here.
- `${pathFrom}i18n/_entity_${language}.json` = `client/src/main/webapp/i18n/_entity_en.json`
- it doesn't exist, as it has been refactored to `client/i18n/...`

Sorry, I didn't have time to test + PR. Just pointed out the issue


@legendre , I wanted to have Clark's index for comparisons because it cannot be implemented with `designdist()`. I also added new function `chaodist()` in this branch: it is similar to `designdist`, but can implement any user-defined Chao dissimilarity.


"Better layout", "Increase readability", "Improve clearness", "Minor restructuring", ... :wink:


@sayanriju I'm confused. I had this import bootstrap, and font-awesome when it complied down scss -> style.css

How is style.css being built with livereload?


It doesn't.

This just adds livereload so as to suit my own development workflow.

Will integrate stuff from _your_ gulpfile once I am fully setup.

Please do not merge anything until I send a PR.

On Mon, Dec 19, 2016 at 2:09 PM, Joseph Chambers <notifications@github.com>
wrote:

> @sayanriju <https://github.com/sayanriju> how does this work when
> compiling down scss files to css, and importing things from bower like
> bootstrap, and font awesome?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/imcodingideas/GiftCashing/commit/3849550b091d1002e95488a1703d5e581ad55071#commitcomment-20230004>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAK9fQ42tMZcDNF7yt9U_sbF-OiG3JHpks5rJkLDgaJpZM4LQfDU>
> .
>

--
Sayan "Riju" Chakrabarti
Kolkata, India.
---------------------------------------------------------
GnuPG Public Key ID: 0xB6506B6F
---------------------------------------------------------


Why did you revert this?


```
for(int i = 0; i < args.length; i++) {
    args[i] = args[i].trim();
}
```


[test_train_split.R:44:19:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/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)
                  ^
```


[random_forest_cat.R:9:2:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L9) *style:* **Commented code should be removed.**
```r
#install.packages("randomForest")
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_cat.R:10:9:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L10) *style:* **Variable and function names should be all lowercase.**
```r
library(randomForest)
        ^~~~~~~~~~~~
```
[random_forest_cat.R:28:40:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L28) *style:* **Trailing whitespace is superfluous.**
```r
  # Number of trees to use in algorithm
                                       ^
```
[random_forest_cat.R:29:23:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L29) *style:* **Put spaces around all infix operators.**
```r
  numb_trees_rf <- 200*tree_numb
                     ~^~
```
[random_forest_cat.R:30:22:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L30) *style:* **Trailing whitespace is superfluous.**
```r
  # Fit random forest
                     ^
```
[random_forest_cat.R:31:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L31) *style:* **lines should not be more than 80 characters.**
```r
  fit_temp <- randomForest(x_train, y_train_cat, xtest = x_test, ytest = y_test_cat, ntree = numb_trees_rf)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_cat.R:31:15:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L31) *style:* **Variable and function names should be all lowercase.**
```r
  fit_temp <- randomForest(x_train, y_train_cat, xtest = x_test, ytest = y_test_cat, ntree = numb_trees_rf)
              ^~~~~~~~~~~~
```
[random_forest_cat.R:32:45:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L32) *style:* **Trailing whitespace is superfluous.**
```r
  # Temporary confusion matrix for in sample
                                            ^
```
[random_forest_cat.R:34:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L34) *style:* **lines should not be more than 80 characters.**
```r
  # # In sample accuracy - sum the 1st and 4th element of matrix (6 elements total)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_cat.R:34:5:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L34) *style:* **Commented code should be removed.**
```r
  # # In sample accuracy - sum the 1st and 4th element of matrix (6 elements total)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_cat.R:34:84:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L34) *style:* **Trailing whitespace is superfluous.**
```r
  # # In sample accuracy - sum the 1st and 4th element of matrix (6 elements total)
                                                                                ^
```
[random_forest_cat.R:39:27:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L39) *style:* **Trailing whitespace is superfluous.**
```r
  # Out of sample accuracy
                          ^
```
[random_forest_cat.R:41:24:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L41) *style:* **Trailing whitespace is superfluous.**
```r
  # Store in data frame
                       ^
```
[random_forest_cat.R:42:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L42) *style:* **lines should not be more than 80 characters.**
```r
  rf_tree_err[tree_numb, 1:3] <- c(train_accuracy_temp, numb_trees_rf, test_accuracy_temp)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_cat.R:42:91:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L42) *style:* **Trailing whitespace is superfluous.**
```r
  rf_tree_err[tree_numb, 1:3] <- c(train_accuracy_temp, numb_trees_rf, test_accuracy_temp)
                                                                                ^
```
[random_forest_cat.R:43:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L43) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[random_forest_cat.R:49:37:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L49) *style:* **Put spaces around all infix operators.**
```r
abline(rf_err_fit, col = "blue", lwd= 4)
                                   ~^
```
[random_forest_cat.R:50:13:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L50) *style:* **Put spaces around all infix operators.**
```r
abline(h = 1-high_low_ratio_train, col = "red", lwd = 4) # at 0.65
           ~^~
```
[random_forest_cat.R:51:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L51) *style:* **lines should not be more than 80 characters.**
```r
legend("topright",  c("Regression error fit", "Error Rate Training set"), col = c("blue", "red"), lwd = 4)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_cat.R:59:3:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L59) *style:* **Commented code should be removed.**
```r
# rf_tree_err[which(rf_tree_err$Out_Error_Rate == min_out_err), ]
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_cat.R:61:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L61) *style:* **lines should not be more than 80 characters.**
```r
fit_cat <- randomForest(x_train, as.factor(y_train_cat), xtest = x_test, ytest = as.factor(y_test_cat), keep.forest = T, ntree = 1400)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_cat.R:61:12:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L61) *style:* **Variable and function names should be all lowercase.**
```r
fit_cat <- randomForest(x_train, as.factor(y_train_cat), xtest = x_test, ytest = as.factor(y_test_cat), keep.forest = T, ntree = 1400)
           ^~~~~~~~~~~~
```
[random_forest_cat.R:63:25:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L63) *style:* **Variable and function names should be all lowercase.**
```r
saveRDS(fit_cat, file = RandomForestCatModelFile)
                        ^~~~~~~~~~~~~~~~~~~~~~~~
```
[random_forest_cat.R:64:3:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/74b972b3e793e510ab6a7e3bc09ff67192c86036/random_forest_cat.R#L64) *style:* **Commented code should be removed.**
```r
# saveRDS(best_row$Lambda, file = LinearRegrssionModelLambdaFile)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```


[test_train_split.R:44:19:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/fdfea1875618d1b470fc70febdda249012a01016/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)
                  ^
```


[MF850Utilities.R:1:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/MF850Utilities.R#L52) *style:* **Trailing whitespace is superfluous.**
```r

^~~~
```
[MF850Utilities.R:54:16:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/MF850Utilities.R#L69) *style:* **Trailing whitespace is superfluous.**
```r

^~~~
```
[MF850Utilities.R:70:16:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/MF850Utilities.R#L76) *style:* **Trailing blank lines are superfluous.**
```r

^
```


[NeuralNet_tryM.R:17:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/NeuralNet_tryM.R#L65) *style:* **Trailing blank lines are superfluous.**
```r

^
```


@inspiran ->

```
mysql > SET sql_mode=(SELECT REPLACE(@@sql_mode, 'ONLY_FULL_GROUP_BY', ''));
```

This is a solution for your trouble with mysql 5.7 :)


TOP!


[IG-CM-MT-MY_mf850finalproject_ii.R:3:2:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/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/fdfea1875618d1b470fc70febdda249012a01016/IG-CM-MT-MY_mf850finalproject_ii.R#L119) *style:* **Variable and function names should be all lowercase.**
```r
print(stockPredictions)
      ^~~~~~~~~~~~~~~~
```


[test_train_split.R:44:19:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/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)
                  ^
```


Hello


[MF850Utilities.R:1:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/MF850Utilities.R#L52) *style:* **Trailing whitespace is superfluous.**
```r

^~~~
```
[MF850Utilities.R:54:16:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/MF850Utilities.R#L69) *style:* **Trailing whitespace is superfluous.**
```r

^~~~
```
[MF850Utilities.R:70:16:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/MF850Utilities.R#L76) *style:* **Trailing blank lines are superfluous.**
```r

^
```


[NeuralNet_tryM.R:17:1:](https://github.com/myellen/MF850_Computational_Finance_Final/blob/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/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/8c02f002a4787eea8ab825d457be0df92b3c4466/NeuralNet_tryM.R#L65) *style:* **Trailing blank lines are superfluous.**
```r

^
```


Great job - you made good progress in class.  Note that in a print statement like the one you have in print_summary, it helps to have some descriptive works - for example, print_summary("My name is "+self.name+" and I'm from "+self.hometown...