-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
efc7030
commit 4c10862
Showing
7 changed files
with
49 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
#$ -N TBEEF | ||
#$ -q mathbio5 | ||
#$ -m bea | ||
|
||
module load python/3.2.2 | ||
module load R/3.0.1 | ||
python3 driver.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
### This file can be used to easily test the ensemble models | ||
### It is recommended to be done interactively through the interpreter | ||
### via something like Rstudio. This way you can run your R commands | ||
### on the files to see what exactly happens in real time! | ||
|
||
trainPath = "..Data/HybridSetup/boot_train_t0" | ||
CVPath = "..Data/HybridSetup/boot_CV_t0" | ||
testPath = "..Data/HybridSetup/orig_test_t0" | ||
predCV = "..Data/HybridPredictions/OLSR_CV_t0_tmp" | ||
predTest = "..Data/HybridPredictions/OLSR_test_t0_tmp" | ||
dataTrain = read.csv(trainPath, sep="\t") | ||
dataCV = read.csv(CVPath, sep="\t") | ||
dataTest = read.csv(testPath, sep="\t") | ||
library(ipred) | ||
|
||
|
||
|
||
|
||
|
||
fit = bagging(y~0+.,data=dataTrain) | ||
|
||
fit = lm(y~0 + (.)^2,data=dataTrain) | ||
summary(fit) | ||
|
||
predict(fit,dataTest) | ||
CVPredictions = predict(fit,dataCV) | ||
TestPredictions= predict(fit,dataTest) | ||
|
||
write(CVPredictions, file = predCV, ncolumns=1) | ||
write(TestPredictions, file = predTest, ncolumns=1) | ||
|