\frac{\partial l}{\partial \beta} = \sum_{i=1}^{m}(\frac{\partial l}{\partial y_i})
\frac{\partial l}{\partial \gamma} = \sum_{i=1}^{m}(\frac{\partial l}{\partial y_i} * \hat{x_i})
\frac{\partial l}{\partial \hat{x_i}} = \sum_{i=1}^{m}(\frac{\partial l}{\partial y_i} * \gamma)
\frac{\partial l}{\partial X_{\mu1}} = \frac{\partial l}{\partial \hat{X}}\odot (ivar)
\frac{\partial l}{\partial ivar} = \sum_{i=1}^{m}(\frac{\partial l}{\partial \hat{x_i}} * x_{\mu i})
\frac{\partial l}{\partial \sqrt{var}} = \frac{\partial l}{\partial ivar}\odot\frac{-1}{{\sqrt{var}}^2}
\frac{\partial l}{\partial var} = \frac{0.5}{\sqrt{var+\epsilon}}\odot\frac{\partial l}{\partial \sqrt{var}}
\frac{\partial l}{\partial sq} = \frac{1}{N} \odot I_{N*D}\odot\frac{\partial l}{\partial var}
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
This page intentionally left blank |
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 click | |
@click.command(help='Get evaluation result.') | |
@click.argument('exp_dir') | |
@click.option('--force', '-f', is_flag=True, default=False, help='Overwrite previous evaluation result.') | |
@click.option('--iteration', '-i', type=str, required=True, multiple=True, | |
help='specified multiple iterations in one run by E.g, -i 10 -i 400') | |
@click.option('--fa', type=float, default=None, help='Set threshold by fa.') | |
@click.option('--threshold', type=float, default=None, help='Set threshold.') |
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
# https://github.com/tqdm/tqdm/issues/484#issuecomment-352463240 | |
import time | |
import random | |
from multiprocessing import Pool | |
from tqdm import tqdm | |
def myfunc(a): | |
time.sleep(random.random()) | |
return a ** 2 |
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 | |
# Using cURL to access our Keras REST API | |
curl -X POST -F [email protected] 'http://localhost:5000/predict' | |
curl -X POST -F image=@space_shuttle.png 'http://localhost:5000/predict' |
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
This page intentionally left blank |
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 addgopath(){ | |
cwd=$(pwd) | |
newpath="" | |
for tdir in `ls`;do | |
if [ "$tdir" = "src" ];then |
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
This page intentionally left blank |
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
This page intentionally left blank |