- act2vec, trace2vec, log2vec, model2vec https://link.springer.com/chapter/10.1007/978-3-319-98648-7_18
- apk2vec https://arxiv.org/abs/1809.05693
- app2vec http://paul.rutgers.edu/~qma/research/ma_app2vec.pdf
- author2vec http://dl.acm.org/citation.cfm?id=2889382
- bb2vec https://arxiv.org/pdf/1809.09621.pdf
- behavior2vec https://dl.acm.org/citation.cfm?id=3184454
- care2vec https://arxiv.org/abs/1812.00715
- cat2vec http://104.155.136.4:3000/forum?id=HyNxRZ9xg
This file contains 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 codecs | |
import queue # or queue in Python 3 | |
import threading | |
import os | |
class PrintThread(threading.Thread): | |
def __init__(self, queue): | |
threading.Thread.__init__(self) | |
self.queue = queue |
This file contains 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 shutil | |
import os | |
import random | |
from random import shuffle | |
from shutil import copyfile | |
from concurrent.futures import ThreadPoolExecutor | |
# ROOT = "/home/nghibui/codes/bi-tbcnn/" | |
src_dir = "train" | |
tgt_dir = "train_val" |
This file contains 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
1) Input MNIST: [28 x 28 x 1] ( 1 color channel) | |
2) Kernel = [9x9] | |
3) Apply kernel to input 256 times: | |
(28 - 9 ) + 1 = 20 | |
Output is 256 x 20 x 20 | |
4) Relu: 256 x 20 x 20 | |
5) Apply kernel again with stride = 2: | |
((20 - 9) + 1) = 6 | |
Output is 256 x 6 x 6 | |
6) We’re going to cut the stack up into 32 decks with 8 cards each deck. |
This file contains 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
#!/usr/bin/env python | |
# -*- coding:UTF-8 -*- | |
import torch | |
import torch.nn as nn | |
import torch.nn.init as init | |
def weight_init(m): | |
''' |
This file contains 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
"""Information Retrieval metrics | |
Useful Resources: | |
http://www.cs.utexas.edu/~mooney/ir-course/slides/Evaluation.ppt | |
http://www.nii.ac.jp/TechReports/05-014E.pdf | |
http://www.stanford.edu/class/cs276/handouts/EvaluationNew-handout-6-per.pdf | |
http://hal.archives-ouvertes.fr/docs/00/72/67/60/PDF/07-busa-fekete.pdf | |
Learning to Rank for Information Retrieval (Tie-Yan Liu) | |
""" | |
import numpy as np |
This file contains 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
0x25b93ff09948D6E1B40aA0190f5B3bA0B3d65139 |
This file contains 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
0x25b93ff09948D6E1B40aA0190f5B3bA0B3d65139 |
This file contains 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
0x698e692B557310fE216127FF9Dd65E06782f6425 |
This file contains 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
NLP and source code papers, very scattered and partial listing | |
(collected by Nathan Schneider and Brendan O'Connor) | |
ICML 2014 | |
Maddison and Tarlow | |
Structured Generative Models of Natural Source Code | |
http://jmlr.org/proceedings/papers/v32/maddison14.pdf | |
ACL 2013 |
NewerOlder