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
| @echo OFF | |
| rem How to run a Python script in a given conda environment from a batch file. | |
| rem It doesn't require: | |
| rem - conda to be in the PATH | |
| rem - cmd.exe to be initialized with conda init | |
| rem Define here the path to your conda installation | |
| set CONDAPATH=C:\ProgramData\Miniconda3 | |
| rem Define here the name of the environment |
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
| require(keras) | |
| require(tensorflow) | |
| K <- keras::backend() | |
| # Custom Focal Loss | |
| focalLoss <- function(gamma=2., alpha=.25){ | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| KNIME - Cellular phenotyping | |
| Galaxy Image Analysis | |
| COMPSs | |
| YEASTRACT | |
| WormBase | |
| Reactome knowledgebase of biological pathways | |
| PRIDE | |
| PANTHER | |
| AnalysisServiceService | |
| Kyoto encyclopedia of genes and genomes KEGG |
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
| plot_rf_tree <- function(final_model, tree_num, shorten_label = TRUE) { | |
| # source: https://shiring.github.io/machine_learning/2017/03/16/rf_plot_ggraph | |
| # get tree by index | |
| tree <- randomForest::getTree(final_model, | |
| k = tree_num, | |
| labelVar = TRUE) %>% | |
| tibble::rownames_to_column() %>% | |
| # make leaf split points to NA, so the 0s won't get plotted |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| """ | |
| GBDT + LogisticRegression | |
| """ | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from matplotlib.colors import ListedColormap | |
| import seaborn as sns | |
| from sklearn.datasets import make_moons |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| import math | |
| import pybel | |
| def squared_distance(coordsA, coordsB): | |
| """Find the squared distance between two 3-tuples""" | |
| sqrdist = sum( (a-b)**2 for a, b in zip(coordsA, coordsB) ) | |
| return sqrdist | |
| def rmsd(allcoordsA, allcoordsB): | |
| """Find the RMSD between two lists of 3-tuples""" |
NewerOlder