def inverse_vocab(vocab):
    inv_vocab = {}
    for k,v in vocab.iteritems():
        inv_vocab[v] = k
    return inv_vocab
Convert a string representing a float of seconds to an int representing milliseconds.
dataset/ETHPy150Open yuhaozhang/nnjm-global/code/io_vocab.py/inverse_vocab--crossover with--dataset/ETHPy150Open pantsbuild/pants/src/python/pants/stats/statsdb.py/StatsDB._to_ms