Pres: link
Front: link
Reviews: link1
Sales = SUM(SalesTable[Sales])
Sales A = CALCULATE([Sales], FILTER(SalesTable, SalesTable[Company]= "A"))
Share A = [Sales A] / [Sales]
Sales All = CALCULATE([Sales], ALL(SalesTable))
Share A = [Sales A] / [Sales All]
Sales All Companies = CALCULATE([Sales], All(SalesTable[Company]))
# Pipeline elements for class instantiaton lovers | |
from sklearn.pipeline import Pipeline, FeatureUnion | |
from sklearn.compose import ColumnTransformer, make_column_selector | |
## Pipeline elements for make_functions lovers | |
from sklearn.pipeline import make_pipeline, make_union | |
from sklearn.compose import make_column_transformer, make_column_selector | |
## Preprocessing | |
# Imputing |
set tabsize 4 | |
set tabstospaces | |
set autoindent | |
set trimblanks | |
set linenumbers | |
set constantshow | |
set titlecolor white,red | |
set keycolor cyan | |
set functioncolor cyan | |
set numbercolor yellow |
require(["codemirror/keymap/sublime", "notebook/js/cell", "base/js/namespace"], | |
function (sublime_keymap, cell, IPython) { | |
// setTimeout(function(){ // uncomment line to fake race-condition | |
cell.Cell.options_default.cm_config.keyMap = 'sublime'; | |
cell.Cell.options_default.cm_config.extraKeys["Ctrl-Enter"] = function (cm) { } | |
cell.Cell.options_default.cm_config.extraKeys["Cmd-Enter"] = function (cm) { } | |
var cells = IPython.notebook.get_cells(); | |
for (var cl = 0; cl < cells.length; cl++) { |
# In case history -i would not work | |
# Scroll as much as you wish | |
# Type 'q' to quit | |
# On Ubuntu first execute the following line (default mawk doesn't support interval in regex) | |
# sudo apt install gawk | |
cat ~/.zsh_history | awk -F\; '{ match($1, /[0-9]{10}/, date); time=strftime("%F %T", date[0]); print(time, " ", substr($0, match($0, /;/)+1)) }' | less +G |
# In the terminal execute code ~/.zprofile | |
# Add the following lines at the beginning of the file: | |
# Required to find brew on Mac with Apple silicon | |
eval "$(/opt/homebrew/bin/brew shellenv 2> /dev/null)" |
PROMPT="%{$fg[white]%}%T %(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
PROMPT+=' %{$fg[cyan]%}%2~%{$reset_color%} $(git_prompt_info)' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |
from tensorflow.data import Dataset | |
AUTOTUNE = tf.data.AUTOTUNE | |
BATCH_SIZE = 64 | |
TEST_SIZE = 0.1 | |
VAL_SIZE = 0.3 | |
RESIZE = 224 | |
WIDTH = RESIZE | |
HEIGHT = RESIZE |