Skip to content

Instantly share code, notes, and snippets.

View dorajam's full-sized avatar

Dora dorajam

View GitHub Profile
import json
import os
import re
from collections import Counter
import numpy as np
import pandas as pd
import torch
import torchtext
from torch.nn.utils.rnn import pad_sequence as pad
@dorajam
dorajam / MetaR results
Created October 22, 2019 15:10
MetaR reproduced results - config = (Pretrain/Intrain, # of runs, batch size, # of shots])
{"("Pre-Train", 10, 64, 1)": {
"MRR_ci": [0.189, 0.212, 0.225],
"Hit@10_ci": [0.283, 0.331, 0.351],
"Hit@5_ci": [0.227, 0.268, 0.283],
"Hit@1_ci": [0.137, 0.149, 0.163],
"MRR": [0.208, 0.217, 0.204, 0.212, 0.186, 0.199, 0.227, 0.211, 0.217, 0.212],
"Hit@10": [0.343, 0.329, 0.312, 0.339, 0.276, 0.308, 0.344, 0.329, 0.333, 0.353],
"Hit@5": [0.264, 0.273, 0.253, 0.271, 0.22, 0.262, 0.286, 0.265, 0.273, 0.271],
"Hit@1": [0.149, 0.158, 0.147, 0.149, 0.141, 0.136, 0.165, 0.15, 0.155, 0.148]
},
" Exc mapped to jk
:imap jk <Esc>
syntax on
let $FZF_DEFAULT_OPTS .= ' --inline-info'
set rtp+=~/.fzf
set bg=dark
set nowrap
set so=5
" Exc mapped to jk
:imap jk <Esc>
syntax on
let $FZF_DEFAULT_OPTS .= ' --inline-info'
set rtp+=~/.fzf
set bg=dark
set nowrap
set so=5
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
% Awesome CV LaTeX Template
%
% This template has been downloaded from:
% https://github.com/posquit0/Awesome-CV
%
% Author:
% Claud D. Park <posquit0.bj@gmail.com>
% http://www.posquit0.com
@dorajam
dorajam / fifteen_v1.py
Created January 7, 2016 21:33
Game of Fifteen with GUI
# Dora Jambor, dorajambor@gmail.com
# January, 2016
# Game of Fifteen, fifteen.py
'''
This is my implementation of game of fifteen using the Tkinter module for GUI,
while allowing you to play on an actual game board.
Numbers in the tiles will be set up in a descending order.
Your task is to move tiles one by one to reorder them to ascent,
with the blank space placed in the bottom right corner.