Skip to content

Instantly share code, notes, and snippets.

View gamble27's full-sized avatar
❄️
Knowledge is power

Olha Moskanova gamble27

❄️
Knowledge is power
View GitHub Profile
@gamble27
gamble27 / cpi_final.ipynb
Created April 14, 2020 14:30
CPI_final.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gamble27
gamble27 / general.ipynb
Created April 14, 2020 14:30
General.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gamble27
gamble27 / df-detection.ipynb
Created February 4, 2020 13:43
df-detection.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gamble27
gamble27 / yin_yang.py
Created September 27, 2019 20:18 — forked from akiross/yin_yang.py
Drawing the yin-yang with Python3 turtle.
from turtle import *
RAD = 100
RAD2 = RAD / 2
RAD6 = RAD / 6
degrees() # Switch to degrees
# Draw the circle, radius 100, half black
fillcolor('black')
begin_fill()
<?php
define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here
function checkTelegramAuthorization($auth_data) {
$check_hash = $auth_data['hash'];
unset($auth_data['hash']);
$data_check_arr = [];
foreach ($auth_data as $key => $value) {
$data_check_arr[] = $key . '=' . $value;
Avg reward: 0.192797 | Ewma reward: 0.205238: 100%|█| 600/600 [3:03:16<00:00, 1.08it/s]
0.19804593175888063
Avg reward: 0.192509 | Ewma reward: 0.189823: 100%|▉| 599/600 [09:39<00:00, 1.00it/s]0.18801758630752563
Avg reward: 0.192550 | Ewma reward: 0.192552: 100%|█| 600/600 [09:40<00:00, 1.01it/s]
Avg reward: 0.191210 | Ewma reward: 0.197921: 100%|█| 600/600 [09:59<00:00, 1.13it/s]
0.19959082567214967
Avg reward: 0.197617 | Ewma reward: 0.218066: 100%|█| 600/600 [09:04<00:00, 1.10it/s]
0.21803303726196285
Avg reward: 0.189690 | Ewma reward: 0.202109: 100%|█| 600/600 [09:29<00:00, 1.09it/s]
0.20246493583679198
@gamble27
gamble27 / linear_rl_1
Created September 2, 2019 16:42
20,50,100, all last values mean
/home/olga/Projects/ML_MIT/venv/bin/python /home/olga/Projects/ML_MIT/project4_text_game/agent_linear.py
Avg reward: 0.186619 | Ewma reward: 0.199344: 100%|▉| 599/600 [06:06<00:00, 1.59it/s]0.2021116453361511
Avg reward: 0.186540 | Ewma reward: 0.193293: 100%|█| 600/600 [06:07<00:00, 1.57it/s]
Avg reward: 0.195266 | Ewma reward: 0.211062: 100%|█| 600/600 [06:09<00:00, 1.60it/s]
0.2062282225036621
Avg reward: 0.196173 | Ewma reward: 0.223502: 100%|▉| 599/600 [06:07<00:00, 1.64it/s]0.21772503076553348
Avg reward: 0.196094 | Ewma reward: 0.216002: 100%|█| 600/600 [06:08<00:00, 1.61it/s]
Avg reward: 0.192572 | Ewma reward: 0.174467: 100%|▉| 599/600 [06:07<00:00, 1.57it/s]0.17957807771682738
Avg reward: 0.192513 | Ewma reward: 0.172725: 100%|█| 600/600 [06:08<00:00, 1.58it/s]
Avg reward: 0.191967 | Ewma reward: 0.173291: 100%|▉| 599/600 [06:04<00:00, 1.63it/s]0.1724045751571655
@gamble27
gamble27 / linear_rr_output
Created September 2, 2019 15:57
avg reward, epoch_rewards on plot mean
/home/olga/Projects/ML_MIT/venv/bin/python /home/olga/Projects/ML_MIT/project4_text_game/agent_linear.py
Avg reward: 0.196584 | Ewma reward: 0.218994: 100%|▉| 599/600 [06:12<00:00, 1.66it/s]0.20648972572326665
Avg reward: 0.196348 | Ewma reward: 0.202564: 100%|█| 600/600 [06:13<00:00, 1.62it/s]
Avg reward: 0.196102 | Ewma reward: 0.194346: 100%|▉| 599/600 [06:18<00:00, 1.51it/s]0.19197262735366818
Avg reward: 0.196017 | Ewma reward: 0.189422: 100%|█| 600/600 [06:19<00:00, 1.51it/s]
Avg reward: 0.188711 | Ewma reward: 0.197382: 100%|▉| 599/600 [06:40<00:00, 1.60it/s]0.18751307004928586
Avg reward: 0.188770 | Ewma reward: 0.200054: 100%|█| 600/600 [06:40<00:00, 1.62it/s]
Avg reward: 0.190637 | Ewma reward: 0.205744: 100%|█| 600/600 [06:27<00:00, 1.56it/s]
0%| | 0/600 [00:00<?, ?it/s]0.19932107969284057
Avg reward: 0.191461 | Ewma reward: 0.182994: 100%|█| 600/600 [06:08<00:00, 1.71it/s]
/home/olga/Projects/ML_MIT/venv/bin/python /home/olga/Projects/ML_MIT/project2_mnist/part2_twodigit/conv.py
-------------
Epoch 1:
100%|██████████| 562/562 [02:15<00:00, 4.10it/s]
Train | loss1: 0.618685 accuracy1: 0.806800 | loss2: 0.685640 accuracy2: 0.775300
100%|██████████| 62/62 [00:06<00:00, 9.44it/s]
Valid | loss1: 0.235562 accuracy1: 0.930192 | loss2: 0.251254 accuracy2: 0.924899
0%| | 0/562 [00:00<?, ?it/s]-------------
Epoch 2:
@gamble27
gamble27 / MIT_MNIST_NN
Created July 28, 2019 16:47
Flattened 2 digit MNIST NN output
/home/olga/Projects/ML_MIT/venv/bin/python /home/olga/pycharm-2018.3.5/helpers/pydev/pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 35909 --file /home/olga/Projects/ML_MIT/project2_mnist/part2_twodigit/mlp.py
pydev debugger: process 2921 is connecting
Connected to pydev debugger (build 183.6156.13)
-------------
Epoch 1:
100%|██████████| 562/562 [00:49<00:00, 11.27it/s]
Train | loss1: 0.776068 accuracy1: 0.792538 | loss2: 0.798555 accuracy2: 0.777441
100%|██████████| 62/62 [00:00<00:00, 666.11it/s]