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
| function generate_ssh_key () { | |
| read -p "Enter github email : " email | |
| echo "Using email $email" | |
| ssh-keygen -t ed25519 -C "$email" | |
| eval "$(ssh-agent -s)" | |
| ssh-add ~/.ssh/id_ed25519 | |
| pub=`cat ~/.ssh/id_ed25519.pub` | |
| echo "$pub" |
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
| pip install jupyter lab | |
| jupyter notebook --generate-config | |
| cd ~/.jupyter | |
| vi jupyter_notebook_config.py | |
| # # The IP address the notebook server will listen on. | |
| # c.NotebookApp.ip = '0.0.0.0' # default value is 'localhost' | |
| # c.NotebookApp.open_browser = False # default value is True |
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 plotly.io as pio | |
| pio.renderers.default = 'iframe' |
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 argparse | |
| import psutil | |
| import tensorflow as tf | |
| from typing import Dict, Any, Callable, Tuple | |
| ## Data Input Function | |
| def data_input_fn(data_param, | |
| batch_size:int=None, | |
| shuffle=False) -> Callable[[], Tuple]: | |
| """Return the input function to get the test data. |
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(caret) | |
| trans = preProcess(X, c("BoxCox", "center", "scale")) | |
| predictorsTrans = data.frame(trans = predict(trans, X)) |
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
| <snippet> | |
| <content><![CDATA[ | |
| # ============================================================= | |
| # Basic | |
| import os | |
| # Fundamental Libraries for Scientific Computing | |
| import numpy as np | |
| import pandas as pd | |
| import scipy as sp |