Skip to content

Instantly share code, notes, and snippets.

View hrayrhar's full-sized avatar

Hrayr Harutyunyan hrayrhar

View GitHub Profile
@hrayrhar
hrayrhar / second_report.md
Last active January 15, 2018 22:06
Second algorithm for approximating Pareto set.

Պարետոյի բազմությունը մոտարկելու երկրորդ ալգորիթմ։

import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from scipy.optimize import linprog
@hrayrhar
hrayrhar / first_report.md
Last active January 15, 2018 22:18
Simple algorithm for finding Pareto set.

Պարետոյի բազմությունը մոտարկելու առաջին ալգորիթմ։

import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import shapely.geometry as geom
from scipy.optimize import linprog
@hrayrhar
hrayrhar / adam-numpy.py
Last active August 20, 2019 05:55
Adam and vanilla SGD in numpy.
class Adam:
"""Adam optimizer.
Default parameters follow those provided in the original paper.
# Arguments
lr: float >= 0. Learning rate.
beta_1: float, 0 < beta < 1. Generally close to 1.
beta_2: float, 0 < beta < 1. Generally close to 1.
epsilon: float >= 0. Fuzz factor.
decay: float >= 0. Learning rate decay over each update.
@hrayrhar
hrayrhar / los_decomp_d0.3.sh
Created May 31, 2017 21:35
Length of stay and decompensation tasks grid search (dropout = 0.3).
# lambda=0.1
echo lambda=0.1, dim=256
python -u main.py --network lstm --prefix los_decomp_ --dropout 0.3 --dim 256 --batch_size 8 --log_every 30 --batch_norm --ihm_C 0.0 --decomp_C 0.1 --ph_C 0.0 --los_C 1.0 --epochs 100 &> los_decomp_lstm.n256.bn.d0.3.bs16.0.00.1.00.0.00.0.10.ts1.0.previous;
echo lambda=0.1, dim=512
python -u main.py --network lstm --prefix los_decomp_ --dropout 0.3 --dim 512 --batch_size 8 --log_every 30 --batch_norm --ihm_C 0.0 --decomp_C 0.1 --ph_C 0.0 --los_C 1.0 --epochs 100 &> los_decomp_lstm.n512.bn.d0.3.bs16.0.00.1.00.0.00.0.10.ts1.0.previous;
echo lambda=0.1, dim=1024
python -u main.py --network lstm --prefix los_decomp_ --dropout 0.3 --dim 1024 --batch_size 8 --log_every 30 --batch_norm --ihm_C 0.0 --decomp_C 0.1 --ph_C 0.0 --los_C 1.0 --epochs 100 &> los_decomp_lstm.n1024.bn.d0.3.bs16.0.00.1.00.0.00.0.10.ts1.0.previous;
# lambda=0.3
@hrayrhar
hrayrhar / traininigData
Created August 26, 2016 08:16
a part from trainingData.csv
0cwr2rsylmd,0
0cxzmce10wr,89
0d0rfpzewzc,70
0d0t0iea1sy,147
0d0zyuor1ih,99
0d11h44yzbq,70
0d1brgfi0xd,104
0d1dcbrf451,123
0d1ly3fjwnw,64
0d1nqvenpln,3