This file contains hidden or 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
| select | |
| activities.*, | |
| assays.assay_id, | |
| assays.doc_id, | |
| assays.description, | |
| assays.assay_type, | |
| assays.assay_test_type, | |
| assays.assay_organism, | |
| assays.assay_tax_id, | |
| assays.assay_strain, |
This file contains hidden or 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
| def ncv_runs_table(number_of_folds): | |
| ''' | |
| ez function to generate nested-cross-validation runs | |
| mostly for explanation purposes | |
| ''' | |
| from itertools import combinations | |
| folds = range(number_of_folds) | |
| lst = [] |
This file contains hidden or 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
| # Docker file that installs docker container with rdkit, ipython notebook and matplotlib | |
| # | |
| # rename this file to "Dockerfile" | |
| # build with: sudo docker build -t rdkit . | |
| # run with: sudo docker run rdkit | |
| # port 8888 gets mapped to another port. Find it with: sudo docker ps | |
| # point your browser to mapped port | |
| FROM ubuntu | |
| # Add universe repository |
This file contains hidden or 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
| #Setup | |
| rm(list = ls(all = TRUE)) #CLEAR WORKSPACE | |
| #Directory | |
| setwd("~/Overfitting") | |
| #Load Required Packages | |
| library('caTools') | |
| library('caret') | |
| library('glmnet') |