SYMBOL INDEX (197 symbols across 43 files) FILE: evaluation/experiment/__init__.py class ComponentBase (line 1) | class ComponentBase(object): method __init__ (line 2) | def __init__(self, config, config_global, logger): class Data (line 14) | class Data(ComponentBase): method setup (line 15) | def setup(self): method reshuffle (line 18) | def reshuffle(self, repetition): class Model (line 23) | class Model(ComponentBase): method __init__ (line 24) | def __init__(self, config, config_global, logger): method build (line 27) | def build(self, data, sess): class Training (line 31) | class Training(ComponentBase): method start (line 32) | def start(self, model, data, sess, evaluation): class Evaluation (line 44) | class Evaluation(ComponentBase): method start (line 45) | def start(self, model, data, sess, valid_only=False): FILE: evaluation/experiment/config.py function load_config (line 8) | def load_config(config_path, default_config_path=None): function read_config (line 25) | def read_config(config_str, default_config_str=None): FILE: evaluation/experiment/no_model.py class NoModel (line 4) | class NoModel(experiment.Model): method build (line 5) | def build(self, data, sess): FILE: evaluation/experiment/no_training.py class NoTraining (line 4) | class NoTraining(experiment.Training): method start (line 5) | def start(self, model, data, sess, evaluation): FILE: evaluation/experiment/sentence_classification/data/EMB_server_random_subsample_validation.py class EMBServerRandomSubsampleValidationSentenceClassificationData (line 13) | class EMBServerRandomSubsampleValidationSentenceClassificationData(exper... method __init__ (line 14) | def __init__(self, config, config_global, logger): method setup (line 35) | def setup(self): method get_shuffles (line 60) | def get_shuffles(self, seed=None): method reshuffle (line 72) | def reshuffle(self, repetition): method load_split (line 91) | def load_split(self, sentences_path, labels_path): FILE: evaluation/experiment/sentence_classification/data/generic.py class GenericSentenceClassificationData (line 8) | class GenericSentenceClassificationData(experiment.Data): method __init__ (line 9) | def __init__(self, config, config_global, logger): method setup (line 13) | def setup(self): method load_split (line 39) | def load_split(self, embeddings_path, labels_path): function binarize (line 62) | def binarize(labels, classes): FILE: evaluation/experiment/sentence_classification/data/generic_random_subsample_validation.py class GenericRandomSubsampleValidationSentenceClassificationData (line 9) | class GenericRandomSubsampleValidationSentenceClassificationData(experim... method __init__ (line 10) | def __init__(self, config, config_global, logger): method setup (line 27) | def setup(self): method get_shuffles (line 51) | def get_shuffles(self, seed=None): method reshuffle (line 63) | def reshuffle(self, repetition): method load_split (line 82) | def load_split(self, embeddings_path, labels_path): FILE: evaluation/experiment/sentence_classification/evaluation.py class SentenceClassificationEvaluation (line 12) | class SentenceClassificationEvaluation(experiment.Evaluation): method __init__ (line 13) | def __init__(self, config, config_global, logger): method start (line 18) | def start(self, model, data, sess, valid_only=False): method evaluate (line 34) | def evaluate(self, model, sess, split_data): FILE: evaluation/experiment/sentence_classification/model/__init__.py class SentenceClassificationModel (line 6) | class SentenceClassificationModel(Model): method __init__ (line 7) | def __init__(self, config, config_global, logger): method build_input (line 11) | def build_input(self, data, sess): method create_outputs (line 16) | def create_outputs(self, prediction): method summary (line 26) | def summary(self): FILE: evaluation/experiment/sentence_classification/model/feedforward.py class FeedForwardModel (line 7) | class FeedForwardModel(SentenceClassificationModel): method build (line 8) | def build(self, data, sess): FILE: evaluation/experiment/sentence_classification/model/linear.py class LinearModel (line 7) | class LinearModel(SentenceClassificationModel): method build (line 8) | def build(self, data, sess): FILE: evaluation/experiment/sentence_classification/training.py class SentenceClassificationBatchedTraining (line 8) | class SentenceClassificationBatchedTraining(BatchedTraining): method __init__ (line 9) | def __init__(self, config, config_global, logger): method get_feed_dict (line 16) | def get_feed_dict(self, model, data, sess): method prepare_next_epoch (line 24) | def prepare_next_epoch(self, model, data, sess, epoch): method get_n_batches (line 36) | def get_n_batches(self): method get_next_batch (line 39) | def get_next_batch(self, model, data, sess): FILE: evaluation/experiment/utils/data.py function merge_dicts (line 6) | def merge_dicts(dict_a, dict_b): function replace_dict_values (line 23) | def replace_dict_values(source, replacements): function read_embeddings (line 44) | def read_embeddings(path, vocab=None, logger=None): function unique_items (line 78) | def unique_items(seq): FILE: evaluation/experiment/utils/logging_utils.py function setup (line 4) | def setup(config): FILE: evaluation/experiment/utils/progress.py function create_progress_bar (line 4) | def create_progress_bar(dynamic_msg=None): FILE: evaluation/experiment/utils/training.py class DefaultTraining (line 13) | class DefaultTraining(experiment.Training): method __init__ (line 14) | def __init__(self, config, config_global, logger): method remove_checkpoints (line 30) | def remove_checkpoints(self): method start (line 33) | def start(self, model, data, sess, evaluation): method record_epoch (line 36) | def record_epoch(self, sess, score): method restore_best_weights (line 50) | def restore_best_weights(self, sess): method is_early_stopping (line 53) | def is_early_stopping(self): class BatchedTraining (line 57) | class BatchedTraining(DefaultTraining): method __init__ (line 60) | def __init__(self, config, config_global, logger): method get_feed_dict (line 69) | def get_feed_dict(self, model, data, sess): method prepare_next_epoch (line 72) | def prepare_next_epoch(self, model, data, sess, epoch): method start (line 76) | def start(self, model, data, sess, evaluation): method get_n_batches (line 156) | def get_n_batches(self): class TrainState (line 160) | class TrainState(object): method __init__ (line 161) | def __init__(self, path, less_is_better, logger): method initialize (line 174) | def initialize(self): method load (line 182) | def load(self, session, weights='last'): method record (line 210) | def record(self, session, score): method clear (line 221) | def clear(self): method saver (line 227) | def saver(self): method scores_file (line 233) | def scores_file(self): method checkpoint_file (line 237) | def checkpoint_file(self): FILE: evaluation/experiment/utils/variables.py function weight_variable (line 5) | def weight_variable(name, shape, regularization=None): function bias_variable (line 12) | def bias_variable(name, shape, value=0.1, regularization=None): FILE: evaluation/run_multiple_optim_lr.py class DataWriter (line 16) | class DataWriter(object): method __init__ (line 17) | def __init__(self, path, logger): method add_task (line 27) | def add_task(self, task_name): method add_data_all (line 41) | def add_data_all(self, data_all): method add_data (line 53) | def add_data(self, run_name, data): method finish (line 81) | def finish(self): function run (line 87) | def run(config_file): FILE: evaluation/run_single.py function run (line 12) | def run(config_file): FILE: evaluation/test/test_config.py class TestConfig (line 6) | class TestConfig(unittest.TestCase): method test_read_config_simple (line 7) | def test_read_config_simple(self): method test_read_config_merge (line 22) | def test_read_config_merge(self): FILE: map-word-embeddings/experiment/__init__.py class ComponentBase (line 1) | class ComponentBase(object): method __init__ (line 2) | def __init__(self, config, config_global, logger): class Data (line 14) | class Data(ComponentBase): method setup (line 15) | def setup(self): method reshuffle (line 18) | def reshuffle(self, repetition): class Model (line 23) | class Model(ComponentBase): method __init__ (line 24) | def __init__(self, config, config_global, logger): method build (line 27) | def build(self, data, sess): class Training (line 31) | class Training(ComponentBase): method start (line 32) | def start(self, model, data, sess, evaluation): class Evaluation (line 44) | class Evaluation(ComponentBase): method start (line 45) | def start(self, model, data, sess, valid_only=False): FILE: map-word-embeddings/experiment/config.py function load_config (line 8) | def load_config(config_path, default_config_path=None): function read_config (line 25) | def read_config(config_str, default_config_str=None): FILE: map-word-embeddings/experiment/mapping/data.py class FixSpaceData (line 10) | class FixSpaceData(experiment.Data): method __init__ (line 11) | def __init__(self, config, config_global, logger): method setup (line 28) | def setup(self): method load_data (line 53) | def load_data(self, data_path): FILE: map-word-embeddings/experiment/mapping/data_EMB_server.py class FixSpaceData (line 11) | class FixSpaceData(experiment.Data): method __init__ (line 12) | def __init__(self, config, config_global, logger): method setup (line 28) | def setup(self): method load_data (line 48) | def load_data(self, data_path): FILE: map-word-embeddings/experiment/mapping/evaluation.py class FixSpaceEvaluation (line 10) | class FixSpaceEvaluation(experiment.Evaluation): method __init__ (line 11) | def __init__(self, config, config_global, logger): method start (line 15) | def start(self, model, data, sess, valid_only=False): method evaluate (line 95) | def evaluate(self, model, sess, split_data, with_orig=False): FILE: map-word-embeddings/experiment/mapping/model/transform_both.py class FixSpaceModel (line 7) | class FixSpaceModel(Model): method __init__ (line 8) | def __init__(self, config, config_global, logger): method build (line 11) | def build(self, data, sess): method build_input (line 23) | def build_input(self, data, sess): method create_outputs (line 29) | def create_outputs(self, source, translation, other): function cosine_similarity (line 64) | def cosine_similarity(a, b): function hinge_loss (line 76) | def hinge_loss(similarity_good_tensor, similarity_bad_tensor, margin): FILE: map-word-embeddings/experiment/mapping/model/transform_both_separate.py class FixSpaceSeparateTransformationModel (line 7) | class FixSpaceSeparateTransformationModel(FixSpaceModel): method __init__ (line 8) | def __init__(self, config, config_global, logger): method build (line 11) | def build(self, data, sess): FILE: map-word-embeddings/experiment/mapping/model/transform_target.py class FixSpaceTranslationOnlyModel (line 7) | class FixSpaceTranslationOnlyModel(FixSpaceModel): method __init__ (line 8) | def __init__(self, config, config_global, logger): method build (line 11) | def build(self, data, sess): FILE: map-word-embeddings/experiment/mapping/train.py class FixSpaceTraining (line 8) | class FixSpaceTraining(BatchedTraining): method __init__ (line 9) | def __init__(self, config, config_global, logger): method get_feed_dict (line 15) | def get_feed_dict(self, model, data, sess): method prepare_next_epoch (line 24) | def prepare_next_epoch(self, model, data, sess, epoch): method get_n_batches (line 36) | def get_n_batches(self): method get_next_batch (line 39) | def get_next_batch(self, model, data, sess): FILE: map-word-embeddings/experiment/no_model.py class NoModel (line 4) | class NoModel(experiment.Model): method build (line 5) | def build(self, data, sess): FILE: map-word-embeddings/experiment/no_training.py class NoTraining (line 4) | class NoTraining(experiment.Training): method start (line 5) | def start(self, model, data, sess, evaluation): FILE: map-word-embeddings/experiment/utils/data.py function merge_dicts (line 7) | def merge_dicts(dict_a, dict_b): function replace_dict_values (line 24) | def replace_dict_values(source, replacements): function read_embeddings (line 45) | def read_embeddings(path, vocab=None, logger=None, is_gzipped=False, ski... function unique_items (line 92) | def unique_items(seq): FILE: map-word-embeddings/experiment/utils/logging_utils.py function setup (line 4) | def setup(config): FILE: map-word-embeddings/experiment/utils/progress.py function create_progress_bar (line 4) | def create_progress_bar(dynamic_msg=None): FILE: map-word-embeddings/experiment/utils/training.py class DefaultTraining (line 13) | class DefaultTraining(experiment.Training): method __init__ (line 14) | def __init__(self, config, config_global, logger): method remove_checkpoints (line 30) | def remove_checkpoints(self): method start (line 33) | def start(self, model, data, sess, evaluation): method record_epoch (line 36) | def record_epoch(self, sess, score): method restore_best_weights (line 50) | def restore_best_weights(self, sess): method is_early_stopping (line 53) | def is_early_stopping(self): class BatchedTraining (line 57) | class BatchedTraining(DefaultTraining): method __init__ (line 60) | def __init__(self, config, config_global, logger): method get_feed_dict (line 69) | def get_feed_dict(self, model, data, sess): method prepare_next_epoch (line 72) | def prepare_next_epoch(self, model, data, sess, epoch): method start (line 76) | def start(self, model, data, sess, evaluation): method get_n_batches (line 156) | def get_n_batches(self): class TrainState (line 160) | class TrainState(object): method __init__ (line 161) | def __init__(self, path, less_is_better, logger): method initialize (line 174) | def initialize(self): method load (line 182) | def load(self, session, weights='last'): method record (line 210) | def record(self, session, score): method clear (line 221) | def clear(self): method saver (line 227) | def saver(self): method scores_file (line 233) | def scores_file(self): method checkpoint_file (line 237) | def checkpoint_file(self): FILE: map-word-embeddings/experiment/utils/variables.py function weight_variable (line 5) | def weight_variable(name, shape, regularization=None): function bias_variable (line 12) | def bias_variable(name, shape, value=0.1, regularization=None): FILE: map-word-embeddings/map.py function map_embeddings (line 17) | def map_embeddings(embeddings, target, map_url): function map_all_embeddings (line 35) | def map_all_embeddings(embeddings_path, out_path, map_url, lang_a, batch... FILE: map-word-embeddings/run_single.py function run (line 12) | def run(config_file): FILE: map-word-embeddings/test/test_config.py class TestConfig (line 6) | class TestConfig(unittest.TestCase): method test_read_config_simple (line 7) | def test_read_config_simple(self): method test_read_config_merge (line 22) | def test_read_config_merge(self): FILE: model/main.py function start_webserver (line 15) | def start_webserver(model_name, embeddings, host, port, logger): function run (line 65) | def run(model, embeddings_folder, webserver_host, webserver_port): FILE: model/sentence_embeddings.py function gen_mean (line 4) | def gen_mean(vals, p): function get_sentence_embedding (line 25) | def get_sentence_embedding(sentence, embeddings, chosen_operations): FILE: model/tfhhub.py function non_zero_tokens (line 15) | def non_zero_tokens(tokens): function p_mean (line 25) | def p_mean(values, p, n_toks): function mean (line 40) | def mean(token_embeddings, non_oov_tokens, non_oov_count): function max (line 44) | def max(token_embeddings, non_oov_tokens, non_oov_count): function min (line 52) | def min(token_embeddings, non_oov_tokens, non_oov_count): function make_module_spec (line 66) | def make_module_spec(model, p_means, names, vocab_files, vocab_sizes): function export (line 104) | def export(export_path, model, p_means, names, vocabs, vecs, logger): function export_hub_module (line 136) | def export_hub_module(export_path, model, p_means, embeddings_folder, lo... function main (line 157) | def main(export_path, model, p_means, embeddings_folder): FILE: model/word_embeddings.py class WordEmbeddings (line 11) | class WordEmbeddings(object): method __init__ (line 12) | def __init__(self, alias, base_url, embeddings_filename, approximate_f... method download_file (line 23) | def download_file(self, embeddings_folder, logger): method load_vectors (line 54) | def load_vectors(self, embeddings_folder, logger):