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
| if need to print info in every referred file | |
| ```python | |
| !python "script.py" | |
| ``` | |
| if need to visualize image | |
| ```python | |
| %run -i 'script.py' | |
| ``` |
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 parmap | |
| https://github.com/zeehio/parmap | |
| parmap.map(..., ..., pm_pbar=True) # show a progress bar (requires tqdm) |
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
| Normalize data before activation layer of internal layer to train the network faster. | |
| https://towardsdatascience.com/batch-normalization-in-neural-networks-1ac91516821c |
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
| ssh -L 16006:127.0.0.1:6006 olivier@my_server_ip | |
| command line:tensorboard --logdir args.tensorboard_dir | |
| remote port: 6006 | |
| local machine: | |
| http://127.0.0.1:16006 | |
| https://stackoverflow.com/questions/37987839/how-can-i-run-tensorboard-on-a-remote-server |
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
| \usepackage{pifont} | |
| \usepackage[perpage]{footmisc} %每页脚注重新编号 | |
| \renewcommand{\thefootnote}{\ding{\numexpr191+\value{footnote}}} | |
| ----------------------------------------------------------------------- | |
| bug\footnote{text} |
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
| nohup some_command &> NEW_name.out& |
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
| { | |
| "name": "NAME OF FOLDER", | |
| "host": "ADDRESS", | |
| "protocol": "sftp", | |
| "port": 22, | |
| "username": "USERNAME BEFORE @", | |
| "password": "PASSWORD", | |
| "remotePath": "/home/fanuc/Xinghao/ContraGrasp", | |
| "uploadOnSave": true, | |
| "ignore": [ |
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
| #!/bin/bash | |
| declare -i TRENDS=17 # Trends used to compute | |
| declare -i MAT_SIZE=36757 # Size of distance matrix | |
| declare -i START_INDEX=0 | |
| declare -i STEP=100 # Step between START_INDEX and | |
| declare -i END_INDEX=0 | |
| END_INDEX=`expr $START_INDEX + $STEP` | |
| declare -i INCREMENTAL_STEP=300 | |
| for i in $(seq 1 1 $TRENDS) |
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
| python -u test.py # force the stdout and stderr streams to be unbuffered | |
| nohup python -u test.py > test.out & |
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
| # Byte-compiled / optimized / DLL files | |
| __pycache__/ | |
| *.py[cod] | |
| # C extensions | |
| *.so | |
| # Distribution / packaging | |
| .Python | |
| env/ |
OlderNewer