SYMBOL INDEX (655 symbols across 95 files) FILE: ptp/application/component_factory.py class ComponentFactory (line 26) | class ComponentFactory(object): method check_inheritance (line 32) | def check_inheritance(class_obj, parent_class_name): method build (line 45) | def build(name, config): FILE: ptp/application/pipeline_manager.py class PipelineManager (line 37) | class PipelineManager(object): method __init__ (line 42) | def __init__(self, name, config): method build (line 73) | def build(self, use_logger=True): method save (line 200) | def save(self, chkpt_dir, training_status, loss): method load (line 270) | def load(self, checkpoint_file): method load_models (line 308) | def load_models(self): method freeze_models (line 381) | def freeze_models(self): method __getitem__ (line 402) | def __getitem__(self, number): method __len__ (line 415) | def __len__(self): method summarize_all_components_header (line 425) | def summarize_all_components_header(self): method summarize_all_components (line 443) | def summarize_all_components(self): method summarize_models_header (line 460) | def summarize_models_header(self): method summarize_models (line 476) | def summarize_models(self): method handshake (line 488) | def handshake(self, data_streams, log=True): method forward (line 520) | def forward(self, data_streams): method eval (line 546) | def eval(self): method train (line 554) | def train(self): method cuda (line 562) | def cuda(self): method zero_grad (line 589) | def zero_grad(self): method backward (line 597) | def backward(self, data_streams): method return_loss_on_batch (line 623) | def return_loss_on_batch(self, stat_col): method return_loss_on_set (line 634) | def return_loss_on_set(self, stat_agg): method parameters (line 646) | def parameters(self, recurse=True): method named_parameters (line 668) | def named_parameters(self, recurse=True): method add_statistics (line 677) | def add_statistics(self, stat_col): method collect_statistics (line 703) | def collect_statistics(self, stat_col, data_streams): method add_aggregators (line 726) | def add_aggregators(self, stat_agg): method aggregate_statistics (line 745) | def aggregate_statistics(self, stat_col, stat_agg): FILE: ptp/application/sampler_factory.py class SamplerFactory (line 30) | class SamplerFactory(object): method build (line 37) | def build(task, config, task_subset_name): FILE: ptp/application/task_manager.py class TaskManager (line 34) | class TaskManager(object): method __init__ (line 39) | def __init__(self, name, config): method worker_init_fn (line 62) | def worker_init_fn(self, worker_id): method build (line 85) | def build(self, log=True): method __len__ (line 149) | def __len__(self): method get_epoch_size (line 164) | def get_epoch_size(self): method initialize_epoch (line 194) | def initialize_epoch(self): method finalize_epoch (line 211) | def finalize_epoch(self): FILE: ptp/components/component.py class Component (line 30) | class Component(abc.ABC): method __init__ (line 31) | def __init__(self, name, class_type, config): method summarize_io (line 88) | def summarize_io(self, priority = -1): method input_data_definitions (line 111) | def input_data_definitions(self): method output_data_definitions (line 121) | def output_data_definitions(self): method handshake_input_definitions (line 130) | def handshake_input_definitions(self, all_definitions, log_errors=True): method export_output_definitions (line 178) | def export_output_definitions(self, all_definitions, log_errors=True): method __call__ (line 203) | def __call__(self, data_streams): method add_statistics (line 213) | def add_statistics(self, stat_col): method collect_statistics (line 227) | def collect_statistics(self, stat_col, data_streams): method add_aggregators (line 246) | def add_aggregators(self, stat_agg): method aggregate_statistics (line 260) | def aggregate_statistics(self, stat_col, stat_agg): FILE: ptp/components/language/bow_encoder.py class BOWEncoder (line 23) | class BOWEncoder(Component): method __init__ (line 30) | def __init__(self, name, config): method input_data_definitions (line 51) | def input_data_definitions(self): method output_data_definitions (line 61) | def output_data_definitions(self): method __call__ (line 71) | def __call__(self, data_streams): method encode_sample (line 95) | def encode_sample(self, list_of_tokens): FILE: ptp/components/language/label_indexer.py class LabelIndexer (line 24) | class LabelIndexer(Component, WordMappings): method __init__ (line 28) | def __init__(self, name, config): method input_data_definitions (line 51) | def input_data_definitions(self): method output_data_definitions (line 61) | def output_data_definitions(self): method __call__ (line 71) | def __call__(self, data_streams): FILE: ptp/components/language/sentence_indexer.py class SentenceIndexer (line 24) | class SentenceIndexer(Component, WordMappings): method __init__ (line 31) | def __init__(self, name, config): method input_data_definitions (line 68) | def input_data_definitions(self): method output_data_definitions (line 88) | def output_data_definitions(self): method __call__ (line 104) | def __call__(self, data_streams): method sentences_to_tensor (line 123) | def sentences_to_tensor(self, data_streams): method tensor_indices_to_sentences (line 166) | def tensor_indices_to_sentences(self, data_streams): method tensor_distributions_to_sentences (line 198) | def tensor_distributions_to_sentences(self, data_streams): FILE: ptp/components/language/sentence_one_hot_encoder.py class SentenceOneHotEncoder (line 24) | class SentenceOneHotEncoder(Component, WordMappings): method __init__ (line 28) | def __init__(self, name, config): method input_data_definitions (line 48) | def input_data_definitions(self): method output_data_definitions (line 58) | def output_data_definitions(self): method __call__ (line 68) | def __call__(self, data_streams): FILE: ptp/components/language/sentence_tokenizer.py class SentenceTokenizer (line 27) | class SentenceTokenizer(Component): method __init__ (line 31) | def __init__(self, name, config): method input_data_definitions (line 81) | def input_data_definitions(self): method output_data_definitions (line 93) | def output_data_definitions(self): method tokenize_sample (line 105) | def tokenize_sample(self, text): method detokenize_sample (line 130) | def detokenize_sample(self, sample): method __call__ (line 140) | def __call__(self, data_streams): FILE: ptp/components/language/word_decoder.py class WordDecoder (line 24) | class WordDecoder(Component, WordMappings): method __init__ (line 28) | def __init__(self, name, config): method input_data_definitions (line 51) | def input_data_definitions(self): method output_data_definitions (line 61) | def output_data_definitions(self): method __call__ (line 71) | def __call__(self, data_streams): FILE: ptp/components/losses/loss.py class Loss (line 24) | class Loss(Component): method __init__ (line 32) | def __init__(self, name, class_type, config): method loss_keys (line 53) | def loss_keys(self): method add_statistics (line 63) | def add_statistics(self, stat_col): method collect_statistics (line 73) | def collect_statistics(self, stat_col, data_streams): method add_aggregators (line 82) | def add_aggregators(self, stat_agg): method aggregate_statistics (line 96) | def aggregate_statistics(self, stat_col, stat_agg): FILE: ptp/components/losses/nll_loss.py class NLLLoss (line 24) | class NLLLoss(Loss): method __init__ (line 29) | def __init__(self, name, config): method input_data_definitions (line 59) | def input_data_definitions(self): method output_data_definitions (line 73) | def output_data_definitions(self): method __call__ (line 84) | def __call__(self, data_streams): FILE: ptp/components/masking/join_masked_predictions.py class JoinMaskedPredictions (line 26) | class JoinMaskedPredictions(Component): method __init__ (line 36) | def __init__(self, name, config): method input_data_definitions (line 85) | def input_data_definitions(self): method output_data_definitions (line 103) | def output_data_definitions(self): method __call__ (line 115) | def __call__(self, data_streams): FILE: ptp/components/masking/string_to_mask.py class StringToMask (line 25) | class StringToMask(Component): method __init__ (line 30) | def __init__(self, name, config): method input_data_definitions (line 51) | def input_data_definitions(self): method output_data_definitions (line 61) | def output_data_definitions(self): method __call__ (line 72) | def __call__(self, data_streams): FILE: ptp/components/mixins/embeddings.py function load_pretrained_embeddings (line 29) | def load_pretrained_embeddings(logger, folder, embeddings_name, word_to_... FILE: ptp/components/mixins/io.py function load_pickle (line 28) | def load_pickle(logger, filename, encoding="ASCII"): function save_nparray_to_csv_file (line 48) | def save_nparray_to_csv_file(folder, filename, nparray, sep=','): function load_nparray_from_csv_file (line 72) | def load_nparray_from_csv_file(folder, filename, dtype=float, sep=','): function save_string_list_to_txt_file (line 97) | def save_string_list_to_txt_file(folder, filename, data): function load_string_list_from_txt_file (line 117) | def load_string_list_from_txt_file(folder, filename): function get_project_root (line 133) | def get_project_root() -> Path: function check_file_existence (line 140) | def check_file_existence(folder, filename): function check_files_existence (line 157) | def check_files_existence(folder, filenames): function download (line 184) | def download(folder, filename, url): function reporthook (line 222) | def reporthook(count, block_size, total_size): function download_extract_zip_file (line 238) | def download_extract_zip_file(logger, folder, url, zipfile_name): function move_files_between_dirs (line 266) | def move_files_between_dirs(logger, source_folder, dest_folder, filenames): FILE: ptp/components/mixins/word_mappings.py class WordMappings (line 20) | class WordMappings(object): method __init__ (line 28) | def __init__(self): #, name, class_type, config): function load_word_mappings_from_csv_file (line 91) | def load_word_mappings_from_csv_file(logger, folder, filename): function save_word_mappings_to_csv_file (line 130) | def save_word_mappings_to_csv_file(logger, folder, filename, word_to_ix,... function pad_trunc_list (line 163) | def pad_trunc_list(l: list, length: int, padding_value = 0, eos_value = ... FILE: ptp/components/models/general_usage/attention_decoder.py class AttentionDecoder (line 24) | class AttentionDecoder(Model): method __init__ (line 33) | def __init__(self, name, config): method activation2output (line 121) | def activation2output(self, activations): method input_data_definitions (line 141) | def input_data_definitions(self): method output_data_definitions (line 156) | def output_data_definitions(self): method forward (line 176) | def forward(self, data_streams): FILE: ptp/components/models/general_usage/feed_forward_network.py class FeedForwardNetwork (line 24) | class FeedForwardNetwork(Model): method __init__ (line 29) | def __init__(self, name, config): method input_data_definitions (line 106) | def input_data_definitions(self): method output_data_definitions (line 117) | def output_data_definitions(self): method forward (line 127) | def forward(self, data_streams): FILE: ptp/components/models/general_usage/recurrent_neural_network.py class RecurrentNeuralNetwork (line 24) | class RecurrentNeuralNetwork(Model): method __init__ (line 28) | def __init__(self, name, config): method initialize_hiddens_state (line 177) | def initialize_hiddens_state(self, batch_size): method activation_to_output_pass (line 190) | def activation_to_output_pass(self, activations): method input_data_definitions (line 214) | def input_data_definitions(self): method output_data_definitions (line 237) | def output_data_definitions(self): method forward (line 262) | def forward(self, data_streams): FILE: ptp/components/models/general_usage/seq2seq.py class Seq2Seq (line 24) | class Seq2Seq(Model): method __init__ (line 28) | def __init__(self, name, config): method initialize_hiddens_state (line 129) | def initialize_hiddens_state(self, batch_size): method input_data_definitions (line 141) | def input_data_definitions(self): method output_data_definitions (line 153) | def output_data_definitions(self): method forward (line 165) | def forward(self, data_streams): FILE: ptp/components/models/language/index_embeddings.py class IndexEmbeddings (line 27) | class IndexEmbeddings(Model): method __init__ (line 33) | def __init__(self, name, config): method input_data_definitions (line 62) | def input_data_definitions(self): method output_data_definitions (line 73) | def output_data_definitions(self): method forward (line 84) | def forward(self, data_streams): FILE: ptp/components/models/language/sentence_embeddings.py class SentenceEmbeddings (line 30) | class SentenceEmbeddings(Model, WordMappings): method __init__ (line 42) | def __init__(self, name, config): method input_data_definitions (line 80) | def input_data_definitions(self): method output_data_definitions (line 91) | def output_data_definitions(self): method forward (line 102) | def forward(self, data_streams): FILE: ptp/components/models/model.py class Model (line 26) | class Model(Module, Component): method __init__ (line 38) | def __init__(self, name, class_type, config): method save_to_checkpoint (line 67) | def save_to_checkpoint(self, chkpt): method load_from_checkpoint (line 76) | def load_from_checkpoint(self, chkpt, section=None): method freeze (line 88) | def freeze(self): method summarize (line 98) | def summarize(self): method recursive_summarize (line 122) | def recursive_summarize(self, module_, indent_, module_name_): FILE: ptp/components/models/multi_modal_reasoning/compact_bilinear_pooling.py class CompactBilinearPooling (line 28) | class CompactBilinearPooling(Model): method __init__ (line 41) | def __init__(self, name, config): method generate_count_sketch_projection_matrix (line 73) | def generate_count_sketch_projection_matrix(self, input_size, output_s... method input_data_definitions (line 105) | def input_data_definitions(self): method output_data_definitions (line 117) | def output_data_definitions(self): method forward (line 127) | def forward(self, data_streams): FILE: ptp/components/models/multi_modal_reasoning/factorized_bilinear_pooling.py class FactorizedBilinearPooling (line 27) | class FactorizedBilinearPooling(Model): method __init__ (line 35) | def __init__(self, name, config): method input_data_definitions (line 79) | def input_data_definitions(self): method output_data_definitions (line 91) | def output_data_definitions(self): method forward (line 101) | def forward(self, data_streams): FILE: ptp/components/models/multi_modal_reasoning/low_rank_bilinear_pooling.py class LowRankBilinearPooling (line 27) | class LowRankBilinearPooling(Model): method __init__ (line 34) | def __init__(self, name, config): method input_data_definitions (line 72) | def input_data_definitions(self): method output_data_definitions (line 84) | def output_data_definitions(self): method forward (line 94) | def forward(self, data_streams): FILE: ptp/components/models/multi_modal_reasoning/question_driven_attention.py class QuestionDrivenAttention (line 27) | class QuestionDrivenAttention(Model): method __init__ (line 36) | def __init__(self, name, config): method input_data_definitions (line 94) | def input_data_definitions(self): method output_data_definitions (line 106) | def output_data_definitions(self): method forward (line 116) | def forward(self, data_streams): function tile_2d_over_nd (line 160) | def tile_2d_over_nd(feature_vector, feature_map): function apply_attention (line 170) | def apply_attention(input, attention): FILE: ptp/components/models/multi_modal_reasoning/relational_network.py class RelationalNetwork (line 28) | class RelationalNetwork(Model): method __init__ (line 37) | def __init__(self, name, config): method input_data_definitions (line 106) | def input_data_definitions(self): method output_data_definitions (line 118) | def output_data_definitions(self): method forward (line 128) | def forward(self, data_streams): FILE: ptp/components/models/multi_modal_reasoning/self_attention.py class SelfAttention (line 27) | class SelfAttention(Model): method __init__ (line 37) | def __init__(self, name, config): method input_data_definitions (line 70) | def input_data_definitions(self): method output_data_definitions (line 81) | def output_data_definitions(self): method forward (line 91) | def forward(self, data_streams): FILE: ptp/components/models/vision/convnet_encoder.py class ConvNetEncoder (line 28) | class ConvNetEncoder(Model): method __init__ (line 34) | def __init__(self, name, config): method input_data_definitions (line 209) | def input_data_definitions(self): method output_data_definitions (line 220) | def output_data_definitions(self): method forward (line 230) | def forward(self, data_streams): FILE: ptp/components/models/vision/generic_image_encoder.py class GenericImageEncoder (line 30) | class GenericImageEncoder(Model): method __init__ (line 34) | def __init__(self, name, config): method input_data_definitions (line 142) | def input_data_definitions(self): method output_data_definitions (line 153) | def output_data_definitions(self): method forward (line 168) | def forward(self, data_streams): FILE: ptp/components/models/vision/lenet5.py class LeNet5 (line 27) | class LeNet5(Model): method __init__ (line 31) | def __init__(self, name, config): method input_data_definitions (line 59) | def input_data_definitions(self): method output_data_definitions (line 70) | def output_data_definitions(self): method forward (line 80) | def forward(self, data_streams): FILE: ptp/components/publishers/global_variable_publisher.py class GlobalVariablePublisher (line 22) | class GlobalVariablePublisher(Component): method __init__ (line 28) | def __init__(self, name, config): method input_data_definitions (line 65) | def input_data_definitions(self): method output_data_definitions (line 73) | def output_data_definitions(self): method __call__ (line 82) | def __call__(self, data_streams): FILE: ptp/components/publishers/stream_file_exporter.py class StreamFileExporter (line 26) | class StreamFileExporter(Component): method __init__ (line 31) | def __init__(self, name, config): method input_data_definitions (line 70) | def input_data_definitions(self): method output_data_definitions (line 80) | def output_data_definitions(self): method __call__ (line 89) | def __call__(self, data_streams): FILE: ptp/components/statistics/accuracy_statistics.py class AccuracyStatistics (line 27) | class AccuracyStatistics(Component): method __init__ (line 33) | def __init__(self, name, config): method input_data_definitions (line 62) | def input_data_definitions(self): method output_data_definitions (line 82) | def output_data_definitions(self): method __call__ (line 91) | def __call__(self, data_streams): method calculate_accuracy (line 98) | def calculate_accuracy(self, data_streams): method add_statistics (line 146) | def add_statistics(self, stat_col): method collect_statistics (line 156) | def collect_statistics(self, stat_col, data_streams): method add_aggregators (line 168) | def add_aggregators(self, stat_agg): method aggregate_statistics (line 181) | def aggregate_statistics(self, stat_col, stat_agg): FILE: ptp/components/statistics/batch_size_statistics.py class BatchSizeStatistics (line 23) | class BatchSizeStatistics(Component): method __init__ (line 29) | def __init__(self, name, config): method input_data_definitions (line 46) | def input_data_definitions(self): method output_data_definitions (line 56) | def output_data_definitions(self): method __call__ (line 65) | def __call__(self, data_streams): method add_statistics (line 71) | def add_statistics(self, stat_col): method collect_statistics (line 80) | def collect_statistics(self, stat_col, data_streams): method add_aggregators (line 89) | def add_aggregators(self, stat_agg): method aggregate_statistics (line 99) | def aggregate_statistics(self, stat_col, stat_agg): FILE: ptp/components/statistics/bleu_statistics.py class BLEUStatistics (line 28) | class BLEUStatistics(Component): method __init__ (line 36) | def __init__(self, name, config): method input_data_definitions (line 77) | def input_data_definitions(self): method output_data_definitions (line 98) | def output_data_definitions(self): method __call__ (line 107) | def __call__(self, data_streams): method calculate_BLEU (line 114) | def calculate_BLEU(self, data_streams): method add_statistics (line 179) | def add_statistics(self, stat_col): method collect_statistics (line 188) | def collect_statistics(self, stat_col, data_streams): method add_aggregators (line 197) | def add_aggregators(self, stat_agg): method aggregate_statistics (line 210) | def aggregate_statistics(self, stat_col, stat_agg): FILE: ptp/components/statistics/precision_recall_statistics.py class PrecisionRecallStatistics (line 27) | class PrecisionRecallStatistics(Component): method __init__ (line 33) | def __init__(self, name, config): method input_data_definitions (line 85) | def input_data_definitions(self): method output_data_definitions (line 104) | def output_data_definitions(self): method __call__ (line 112) | def __call__(self, data_streams): method calculate_statistics (line 153) | def calculate_statistics(self, data_streams): method add_statistics (line 233) | def add_statistics(self, stat_col): method collect_statistics (line 248) | def collect_statistics(self, stat_col, data_streams): method add_aggregators (line 283) | def add_aggregators(self, stat_agg): method aggregate_statistics (line 298) | def aggregate_statistics(self, stat_col, stat_agg): FILE: ptp/components/tasks/image_text_to_class/clevr.py class CLEVR (line 34) | class CLEVR(Task): method __init__ (line 61) | def __init__(self, name, config): method output_data_definitions (line 223) | def output_data_definitions(self): method __len__ (line 250) | def __len__(self): method load_dataset (line 259) | def load_dataset(self, source_data_file): method get_image (line 277) | def get_image(self, img_id): method __getitem__ (line 313) | def __getitem__(self, index): method collate_fn (line 359) | def collate_fn(self, batch): FILE: ptp/components/tasks/image_text_to_class/gqa.py class GQA (line 34) | class GQA(Task): method __init__ (line 51) | def __init__(self, name, config): method output_data_definitions (line 157) | def output_data_definitions(self): method __len__ (line 184) | def __len__(self): method load_dataset (line 193) | def load_dataset(self, source_files): method get_image (line 238) | def get_image(self, img_id): method __getitem__ (line 274) | def __getitem__(self, index): method collate_fn (line 311) | def collate_fn(self, batch): FILE: ptp/components/tasks/image_text_to_class/vqa_med_2019.py class VQAMED2019 (line 39) | class VQAMED2019(Task): method __init__ (line 65) | def __init__(self, name, config): method output_data_definitions (line 304) | def output_data_definitions(self): method __len__ (line 337) | def __len__(self): method filter_sources (line 346) | def filter_sources(self, source_files, source_image_folders, source_ca... method calculate_and_export_sample_weights (line 376) | def calculate_and_export_sample_weights(self, filename): method preprocess_text (line 434) | def preprocess_text(self, text, lowercase = False, remove_punctuation ... method random_remove_stop_words (line 482) | def random_remove_stop_words(self, words): method random_shuffle_words (line 511) | def random_shuffle_words(self, words): method load_dataset (line 538) | def load_dataset(self, source_files, source_image_folders, source_cate... method load_testset_with_answers (line 613) | def load_testset_with_answers(self, data_file, image_folder): method load_testset_without_answers (line 688) | def load_testset_without_answers(self, data_file, image_folder): method get_image (line 756) | def get_image(self, img_id, img_folder): method __getitem__ (line 803) | def __getitem__(self, index): method predict_yes_no (line 867) | def predict_yes_no(self, qtext): method collate_fn (line 879) | def collate_fn(self, batch): FILE: ptp/components/tasks/image_to_class/cifar_100.py class CIFAR100 (line 27) | class CIFAR100(Task): method __init__ (line 36) | def __init__(self, name, config): method __len__ (line 158) | def __len__(self): method output_data_definitions (line 166) | def output_data_definitions(self): method __getitem__ (line 182) | def __getitem__(self, index): FILE: ptp/components/tasks/image_to_class/mnist.py class MNIST (line 27) | class MNIST(Task): method __init__ (line 42) | def __init__(self, name, config): method __len__ (line 114) | def __len__(self): method output_data_definitions (line 122) | def output_data_definitions(self): method __getitem__ (line 136) | def __getitem__(self, index): FILE: ptp/components/tasks/image_to_class/simple_molecules.py class SimpleMolecules (line 34) | class SimpleMolecules(Task): method __init__ (line 40) | def __init__(self, name, config): method load_dataset (line 159) | def load_dataset(self, source_data_file): method __len__ (line 177) | def __len__(self): method output_data_definitions (line 186) | def output_data_definitions(self): method get_image (line 199) | def get_image(self, img_id): method __getitem__ (line 223) | def __getitem__(self, index): FILE: ptp/components/tasks/task.py class Task (line 26) | class Task(Component, Dataset): method __init__ (line 37) | def __init__(self, name, class_type, config): method summarize_io (line 78) | def summarize_io(self, priority = -1): method __call__ (line 94) | def __call__(self, data_streams): method input_data_definitions (line 102) | def input_data_definitions(self): method create_data_streams (line 112) | def create_data_streams(self, index, data_definitions = None): method collate_fn (line 132) | def collate_fn(self, batch): method initialize_epoch (line 159) | def initialize_epoch(self, epoch): method finalize_epoch (line 172) | def finalize_epoch(self, epoch): method curriculum_learning_initialize (line 186) | def curriculum_learning_initialize(self, curriculum_config): method curriculum_learning_update_params (line 204) | def curriculum_learning_update_params(self, episode, epoch): FILE: ptp/components/tasks/text_to_class/dummy_language_identification.py class DummyLanguageIdentification (line 24) | class DummyLanguageIdentification(LanguageIdentification): method __init__ (line 31) | def __init__(self, name, config): method generate_dataset (line 68) | def generate_dataset(self): FILE: ptp/components/tasks/text_to_class/language_identification.py class LanguageIdentification (line 21) | class LanguageIdentification(Task): method __init__ (line 26) | def __init__(self, name, class_type, config): method output_data_definitions (line 48) | def output_data_definitions(self): method __len__ (line 61) | def __len__(self): method __getitem__ (line 70) | def __getitem__(self, index): FILE: ptp/components/tasks/text_to_class/wily_language_identification.py class WiLYLanguageIdentification (line 23) | class WiLYLanguageIdentification(LanguageIdentification): method __init__ (line 33) | def __init__(self, name, config): FILE: ptp/components/tasks/text_to_class/wily_ngram_language_modeling.py class WiLYNGramLanguageModeling (line 24) | class WiLYNGramLanguageModeling(Task): method __init__ (line 32) | def __init__(self, name, config): method output_data_definitions (line 110) | def output_data_definitions(self): method __len__ (line 124) | def __len__(self): method __getitem__ (line 133) | def __getitem__(self, index): FILE: ptp/components/tasks/text_to_text/translation_pairs.py class TranslationPairs (line 31) | class TranslationPairs(Task): method __init__ (line 39) | def __init__(self, name, config): method output_data_definitions (line 161) | def output_data_definitions(self): method unicodeToAscii (line 176) | def unicodeToAscii(s): method normalizeString (line 184) | def normalizeString(self, s): method __len__ (line 190) | def __len__(self): method __getitem__ (line 199) | def __getitem__(self, index): method collate_fn (line 215) | def collate_fn(self, batch): FILE: ptp/components/tasks/text_to_text/wikitext_language_modeling.py class WikiTextLanguageModeling (line 27) | class WikiTextLanguageModeling(Task): method __init__ (line 42) | def __init__(self, name, config): method output_data_definitions (line 131) | def output_data_definitions(self): method __len__ (line 144) | def __len__(self): method __getitem__ (line 153) | def __getitem__(self, index): method collate_fn (line 170) | def collate_fn(self, batch): FILE: ptp/components/transforms/concatenate_tensor.py class ConcatenateTensor (line 25) | class ConcatenateTensor(Component): method __init__ (line 31) | def __init__(self, name, config): method input_data_definitions (line 67) | def input_data_definitions(self): method output_data_definitions (line 78) | def output_data_definitions(self): method __call__ (line 89) | def __call__(self, data_streams): FILE: ptp/components/transforms/list_to_tensor.py class ListToTensor (line 25) | class ListToTensor(Component): method __init__ (line 31) | def __init__(self, name, config): method input_data_definitions (line 57) | def input_data_definitions(self): method output_data_definitions (line 70) | def output_data_definitions(self): method __call__ (line 84) | def __call__(self, data_streams): FILE: ptp/components/transforms/reduce_tensor.py class ReduceTensor (line 26) | class ReduceTensor(Component): method __init__ (line 32) | def __init__(self, name, config): method input_data_definitions (line 75) | def input_data_definitions(self): method output_data_definitions (line 91) | def output_data_definitions(self): method __call__ (line 116) | def __call__(self, data_streams): FILE: ptp/components/transforms/reshape_tensor.py class ReshapeTensor (line 25) | class ReshapeTensor(Component): method __init__ (line 31) | def __init__(self, name, config): method input_data_definitions (line 56) | def input_data_definitions(self): method output_data_definitions (line 66) | def output_data_definitions(self): method __call__ (line 77) | def __call__(self, data_streams): FILE: ptp/components/viewers/image_viewer.py class ImageViewer (line 27) | class ImageViewer(Component): method __init__ (line 32) | def __init__(self, name, config): method input_data_definitions (line 56) | def input_data_definitions(self): method output_data_definitions (line 69) | def output_data_definitions(self): method __call__ (line 78) | def __call__(self, data_streams): FILE: ptp/components/viewers/stream_viewer.py class StreamViewer (line 26) | class StreamViewer(Component): method __init__ (line 32) | def __init__(self, name, config): method input_data_definitions (line 56) | def input_data_definitions(self): method output_data_definitions (line 66) | def output_data_definitions(self): method __call__ (line 75) | def __call__(self, data_streams): FILE: ptp/configuration/config_interface.py class ConfigInterface (line 26) | class ConfigInterface(Mapping): method __init__ (line 43) | def __init__(self, *keys): method _lookup (line 76) | def _lookup(self, *keys): method _nest_dict (line 99) | def _nest_dict(self, d: dict): method to_dict (line 125) | def to_dict(self): method __getitem__ (line 132) | def __getitem__(self, key): method __len__ (line 150) | def __len__(self): method __iter__ (line 158) | def __iter__(self): method __eq__ (line 166) | def __eq__(self, other): method leafs (line 177) | def leafs(self): method set_leaf (line 189) | def set_leaf(self, leaf_key, leaf_value): method add_default_params (line 219) | def add_default_params(self, default_params: dict): method add_config_params (line 239) | def add_config_params(self, config_params: dict): method del_default_params (line 258) | def del_default_params(self, key): method del_config_params (line 274) | def del_config_params(self, key): method add_config_params_from_yaml (line 290) | def add_config_params_from_yaml(self, yaml_path: str): FILE: ptp/configuration/config_parsing.py function display_globals (line 25) | def display_globals(logger, globals_dict): function display_parsing_results (line 43) | def display_parsing_results(logger, parsed_args, unparsed_args): function export_experiment_configuration_to_yml (line 72) | def export_experiment_configuration_to_yml(logger, log_dir, filename, co... function load_class_default_config_file (line 112) | def load_class_default_config_file(class_type): function recurrent_config_parse (line 149) | def recurrent_config_parse(configs_to_parse: list, configs_parsed: list,... function reverse_order_config_load (line 211) | def reverse_order_config_load(config_interface_obj, configs_to_load): function get_value_list_from_dictionary (line 225) | def get_value_list_from_dictionary(key, parameter_dict, accepted_values ... function get_value_from_dictionary (line 258) | def get_value_from_dictionary(key, parameter_dict, accepted_values = []): FILE: ptp/configuration/config_registry.py class MetaSingletonABC (line 27) | class MetaSingletonABC(SingletonMetaClass, ABCMeta): class ConfigRegistry (line 35) | class ConfigRegistry(Mapping, metaclass=MetaSingletonABC): method __init__ (line 55) | def __init__(self): method _clear_registry (line 73) | def _clear_registry(self): method _update_params (line 87) | def _update_params(self): method add_default_params (line 97) | def add_default_params(self, default_params: dict): method add_config_params (line 116) | def add_config_params(self, config_params: dict): method del_default_params (line 134) | def del_default_params(self, keypath: list): method del_config_params (line 148) | def del_config_params(self, keypath: list): method __getitem__ (line 162) | def __getitem__(self, key): method __iter__ (line 176) | def __iter__(self): method __len__ (line 184) | def __len__(self): method __eq__ (line 192) | def __eq__(self, other): method update_dict_recursively (line 203) | def update_dict_recursively(self, current_node, update_node): method delete_subtree (line 230) | def delete_subtree(current_dict, keypath: list): FILE: ptp/configuration/configuration_error.py class ConfigurationError (line 20) | class ConfigurationError(Exception): method __init__ (line 22) | def __init__(self, msg): method __str__ (line 26) | def __str__(self): FILE: ptp/data_types/data_definition.py class DataDefinition (line 24) | class DataDefinition(namedtuple("DataDefinition", 'dimensions types desc... FILE: ptp/data_types/data_streams.py class DataStreams (line 23) | class DataStreams(collections.abc.MutableMapping): method __init__ (line 35) | def __init__(self, *args, **kwargs): method __setitem__ (line 50) | def __setitem__(self, key, value, addkey=False): method publish (line 74) | def publish(self, dict_to_add): method reinitialize (line 94) | def reinitialize(self, streams_to_leave): method __getitem__ (line 108) | def __getitem__(self, key): method __delitem__ (line 119) | def __delitem__(self, key, delkey=False): method __iter__ (line 141) | def __iter__(self): method __len__ (line 144) | def __len__(self): method __str__ (line 147) | def __str__(self): method __repr__ (line 154) | def __repr__(self): method to (line 162) | def to(self, device=None, keys_to_move=None, non_blocking=False): FILE: ptp/utils/app_state.py class AppState (line 27) | class AppState(metaclass=SingletonMetaClass): method __init__ (line 47) | def __init__(self): method set_types (line 80) | def set_types(self): method set_cpu_types (line 101) | def set_cpu_types(self): method set_gpu_types (line 115) | def set_gpu_types(self): method globalkeys (line 129) | def globalkeys(self): method globalitems (line 137) | def globalitems(self): method __setitem__ (line 145) | def __setitem__(self, key, value, override=False): method __getitem__ (line 169) | def __getitem__(self, key): FILE: ptp/utils/data_streams_parallel.py function data_streams_scatter (line 29) | def data_streams_scatter(inputs, target_gpus, dim=0): function data_streams_scatter_kwargs (line 62) | def data_streams_scatter_kwargs(inputs, kwargs, target_gpus, dim=0): function data_streams_gather (line 75) | def data_streams_gather(outputs, target_device, dim=0): class DataStreamsParallel (line 109) | class DataStreamsParallel(torch.nn.DataParallel): method __init__ (line 117) | def __init__(self, module, device_ids=None, output_device=None, dim=0): method forward (line 120) | def forward(self, *inputs, **kwargs): method replicate (line 159) | def replicate(self, module, device_ids): method scatter (line 162) | def scatter(self, inputs, kwargs, device_ids): method parallel_apply (line 165) | def parallel_apply(self, replicas, inputs, kwargs): method gather (line 168) | def gather(self, outputs, output_device): method add_statistics (line 171) | def add_statistics(self, stat_col): method collect_statistics (line 180) | def collect_statistics(self, stat_col, data_streams): method add_aggregators (line 192) | def add_aggregators(self, stat_agg): method aggregate_statistics (line 201) | def aggregate_statistics(self, stat_col, stat_agg): FILE: ptp/utils/globals_facade.py class GlobalsFacade (line 21) | class GlobalsFacade(object): method __init__ (line 25) | def __init__(self, key_mappings): method __setitem__ (line 35) | def __setitem__(self, key, value): method __getitem__ (line 49) | def __getitem__(self, key): FILE: ptp/utils/key_mappings_facade.py class KeyMappingsFacade (line 19) | class KeyMappingsFacade(object): method __init__ (line 23) | def __init__(self, key_mappings): method __getitem__ (line 32) | def __getitem__(self, key): FILE: ptp/utils/logger.py function initialize_logger (line 24) | def initialize_logger(name, add_file_handler = True): function add_file_handler_to_logger (line 69) | def add_file_handler_to_logger(logger): FILE: ptp/utils/samplers.py class kFoldRandomSampler (line 26) | class kFoldRandomSampler(Sampler): method __init__ (line 36) | def __init__(self, num_samples, num_folds, epochs_per_fold = 1, all_bu... method regenerate_indices (line 82) | def regenerate_indices(self): method __iter__ (line 118) | def __iter__(self): method __len__ (line 137) | def __len__(self): class kFoldWeightedRandomSampler (line 144) | class kFoldWeightedRandomSampler(kFoldRandomSampler): method __init__ (line 154) | def __init__(self, weights, num_samples, num_folds, epochs_per_fold = ... method __iter__ (line 187) | def __iter__(self): FILE: ptp/utils/singleton.py class SingletonMetaClass (line 20) | class SingletonMetaClass(type): method __call__ (line 23) | def __call__(cls, *args, **kwargs): FILE: ptp/utils/statistics_aggregator.py class StatisticsAggregator (line 23) | class StatisticsAggregator(StatisticsCollector): method __init__ (line 40) | def __init__(self): method add_aggregator (line 52) | def add_aggregator(self, key, formatting): method __getitem__ (line 73) | def __getitem__(self, key): method __setitem__ (line 85) | def __setitem__(self, key, value): method __delitem__ (line 98) | def __delitem__(self, key): method __len__ (line 108) | def __len__(self): method __eq__ (line 114) | def __eq__(self, other): method __iter__ (line 124) | def __iter__(self): method initialize_csv_file (line 131) | def initialize_csv_file(self, log_dir, filename): method export_to_csv (line 148) | def export_to_csv(self, csv_file=None): method export_to_checkpoint (line 182) | def export_to_checkpoint(self): method export_to_string (line 201) | def export_to_string(self, additional_tag=''): method export_to_tensorboard (line 234) | def export_to_tensorboard(self, tb_writer = None): FILE: ptp/utils/statistics_collector.py class StatisticsCollector (line 23) | class StatisticsCollector(Mapping): method __init__ (line 32) | def __init__(self): method add_statistics (line 45) | def add_statistics(self, key, formatting): method __getitem__ (line 61) | def __getitem__(self, key): method __setitem__ (line 73) | def __setitem__(self, key, value): method __delitem__ (line 83) | def __delitem__(self, key): method __len__ (line 92) | def __len__(self): method __iter__ (line 98) | def __iter__(self): method __eq__ (line 104) | def __eq__(self, other): method empty (line 114) | def empty(self): method base_initialize_csv_file (line 123) | def base_initialize_csv_file(self, log_dir, filename, keys): method initialize_csv_file (line 160) | def initialize_csv_file(self, log_dir, filename): method export_to_csv (line 177) | def export_to_csv(self, csv_file=None): method export_to_checkpoint (line 212) | def export_to_checkpoint(self): method export_to_string (line 232) | def export_to_string(self, additional_tag=''): method initialize_tensorboard (line 266) | def initialize_tensorboard(self, tb_writer): method export_to_tensorboard (line 272) | def export_to_tensorboard(self, tb_writer=None): FILE: ptp/utils/termination_condition.py class TerminationCondition (line 20) | class TerminationCondition(Exception): method __init__ (line 22) | def __init__(self, msg): method __str__ (line 26) | def __str__(self): FILE: ptp/workers/offline_trainer.py class OfflineTrainer (line 27) | class OfflineTrainer(Trainer): method __init__ (line 40) | def __init__(self): method setup_experiment (line 47) | def setup_experiment(self): method run_experiment (line 111) | def run_experiment(self): function main (line 352) | def main(): FILE: ptp/workers/online_trainer.py class OnlineTrainer (line 27) | class OnlineTrainer(Trainer): method __init__ (line 42) | def __init__(self): method setup_experiment (line 49) | def setup_experiment(self): method run_experiment (line 113) | def run_experiment(self): function main (line 355) | def main(): FILE: ptp/workers/processor.py class Processor (line 37) | class Processor(Worker): method __init__ (line 45) | def __init__(self): method setup_global_experiment (line 59) | def setup_global_experiment(self): method setup_individual_experiment (line 136) | def setup_individual_experiment(self): method initialize_statistics_collection (line 327) | def initialize_statistics_collection(self): method finalize_statistics_collection (line 349) | def finalize_statistics_collection(self): method run_experiment (line 357) | def run_experiment(self): function main (line 435) | def main(): FILE: ptp/workers/test_data_dict_parallel.py class RandomDataset (line 16) | class RandomDataset(Task): method __init__ (line 18) | def __init__(self, size, length): method __getitem__ (line 22) | def __getitem__(self, index): method __len__ (line 32) | def __len__(self): method output_data_definitions (line 35) | def output_data_definitions(self): method collate_fn (line 38) | def collate_fn(self, batch): class TestModel1 (line 43) | class TestModel1(Model): method __init__ (line 45) | def __init__(self, input_size, output_size): method forward (line 49) | def forward(self, datadict): method input_data_definitions (line 59) | def input_data_definitions(self): method output_data_definitions (line 62) | def output_data_definitions(self): class TestModel2 (line 66) | class TestModel2(Model): method __init__ (line 68) | def __init__(self, input_size, output_size): method forward (line 72) | def forward(self, datadict): method input_data_definitions (line 81) | def input_data_definitions(self): method output_data_definitions (line 84) | def output_data_definitions(self): FILE: ptp/workers/trainer.py class Trainer (line 38) | class Trainer(Worker): method __init__ (line 48) | def __init__(self, name, class_type): method setup_experiment (line 97) | def setup_experiment(self): method add_statistics (line 385) | def add_statistics(self, stat_col): method add_aggregators (line 399) | def add_aggregators(self, stat_agg): method initialize_statistics_collection (line 413) | def initialize_statistics_collection(self): method finalize_statistics_collection (line 458) | def finalize_statistics_collection(self): method initialize_tensorboard (line 470) | def initialize_tensorboard(self): method finalize_tensorboard (line 495) | def finalize_tensorboard(self): method validate_on_batch (line 509) | def validate_on_batch(self, valid_batch): method validate_on_set (line 536) | def validate_on_set(self): FILE: ptp/workers/worker.py class Worker (line 33) | class Worker(object): method __init__ (line 39) | def __init__(self, name, class_type, add_default_parser_args = True): method setup_experiment (line 158) | def setup_experiment(self): method add_statistics (line 185) | def add_statistics(self, stat_col): method add_aggregators (line 196) | def add_aggregators(self, stat_agg): method run_experiment (line 212) | def run_experiment(self): method collect_all_statistics (line 222) | def collect_all_statistics(self, task_mgr, pipeline_mgr, data_streams,... method aggregate_all_statistics (line 249) | def aggregate_all_statistics(self, task_mgr, pipeline_mgr, stat_col, s... method export_all_statistics (line 273) | def export_all_statistics(self, stat_obj, tag='', export_to_log = True): method set_random_seeds (line 297) | def set_random_seeds(self, section_name, config): FILE: tests/application/pipeline_tests.py class TestPipeline (line 27) | class TestPipeline(unittest.TestCase): method __init__ (line 29) | def __init__(self, *args, **kwargs): method test_create_component_full_type (line 35) | def test_create_component_full_type(self): method test_create_component_type (line 55) | def test_create_component_type(self): method test_disable_component (line 75) | def test_disable_component(self): method test_priorities (line 96) | def test_priorities(self): FILE: tests/application/sampler_factory_tests.py class TestTaskMockup (line 28) | class TestTaskMockup(object): method __len__ (line 29) | def __len__(self): class TestSamplerFactory (line 32) | class TestSamplerFactory(unittest.TestCase): method __init__ (line 34) | def __init__(self, *args, **kwargs): method test_create_subset_random_sampler_range (line 37) | def test_create_subset_random_sampler_range(self): method test_create_subset_random_sampler_range_str (line 50) | def test_create_subset_random_sampler_range_str(self): method test_create_subset_random_sampler_list_of_indices (line 64) | def test_create_subset_random_sampler_list_of_indices(self): method test_create_subset_random_sampler_file (line 78) | def test_create_subset_random_sampler_file(self): FILE: tests/application/samplers_tests.py class TestkFoldRandomSampler (line 27) | class TestkFoldRandomSampler(unittest.TestCase): method __init__ (line 29) | def __init__(self, *args, **kwargs): method test_kfold_random_sampler_current_fold (line 32) | def test_kfold_random_sampler_current_fold(self): method test_kfold_random_sampler_current_fold_10epochs (line 71) | def test_kfold_random_sampler_current_fold_10epochs(self): method test_kfold_random_sampler_all_but_current_fold (line 98) | def test_kfold_random_sampler_all_but_current_fold(self): class TestkFoldWeightedRandomSampler (line 139) | class TestkFoldWeightedRandomSampler(unittest.TestCase): method __init__ (line 141) | def __init__(self, *args, **kwargs): method test_kfold_weighed_random_sampler_current_fold (line 144) | def test_kfold_weighed_random_sampler_current_fold(self): FILE: tests/components/component_tests.py class MockupTask (line 26) | class MockupTask (Task): method __init__ (line 30) | def __init__(self, name, config): method output_data_definitions (line 33) | def output_data_definitions(self): class MockupComponent (line 39) | class MockupComponent (Component): method __init__ (line 43) | def __init__(self, name, config): class TestComponent (line 47) | class TestComponent(unittest.TestCase): method __init__ (line 49) | def __init__(self, *args, **kwargs): method test_create_data_streams_key_present (line 61) | def test_create_data_streams_key_present(self): method test_extend_data_streams_key_present (line 71) | def test_extend_data_streams_key_present(self): method test_global_set_get (line 82) | def test_global_set_get(self): method test_global_overwrite (line 89) | def test_global_overwrite(self): FILE: tests/components/tasks/clevr_tests.py class TestCLEVR (line 28) | class TestCLEVR(unittest.TestCase): method test_training_set (line 30) | def test_training_set(self): method test_validation_set (line 79) | def test_validation_set(self): method test_test_set (line 125) | def test_test_set(self): FILE: tests/components/tasks/gqa_tests.py class TestGQA (line 28) | class TestGQA(unittest.TestCase): method test_training_0_split (line 31) | def test_training_0_split(self): method test_validation_split (line 74) | def test_validation_split(self): method test_test_dev_split (line 117) | def test_test_dev_split(self): method test_test_split (line 160) | def test_test_split(self): FILE: tests/components/tasks/task_tests.py class MockupTask (line 26) | class MockupTask (Task): method __init__ (line 30) | def __init__(self, name, config): method output_data_definitions (line 33) | def output_data_definitions(self): class TestTask (line 40) | class TestTask(unittest.TestCase): method __init__ (line 42) | def __init__(self, *args, **kwargs): method test_crete_data_streams_key_present (line 51) | def test_crete_data_streams_key_present(self): FILE: tests/configuration/config_interface_tests.py class TestConfigInterface (line 23) | class TestConfigInterface(unittest.TestCase): method test_default_params (line 25) | def test_default_params(self): method test_config_params (line 54) | def test_config_params(self): method test_overwrite_params (line 66) | def test_overwrite_params(self): FILE: tests/configuration/config_registry_tests.py class TestConfigRegistry (line 23) | class TestConfigRegistry(unittest.TestCase): method test_default_params (line 25) | def test_default_params(self): method test_config_params (line 38) | def test_config_params(self): method test_overwrite_params (line 51) | def test_overwrite_params(self): FILE: tests/configuration/handshaking_tests.py class MockupComponent (line 26) | class MockupComponent (Component): method __init__ (line 30) | def __init__(self): method input_data_definitions (line 33) | def input_data_definitions(self): method output_data_definitions (line 40) | def output_data_definitions(self): class TestHandshaking (line 46) | class TestHandshaking(unittest.TestCase): method __init__ (line 48) | def __init__(self, *args, **kwargs): method test_handshake_input_definitions_keys (line 57) | def test_handshake_input_definitions_keys(self): method test_handshake_input_definitions_dimensions (line 73) | def test_handshake_input_definitions_dimensions(self): method test_handshake_input_definitions_types (line 92) | def test_handshake_input_definitions_types(self): method test_extension_definitions (line 107) | def test_extension_definitions(self): FILE: tests/data_types/data_definition_tests.py class TestDataDefinition (line 23) | class TestDataDefinition(unittest.TestCase): method test_values (line 25) | def test_values(self): method test_override (line 34) | def test_override(self): FILE: tests/data_types/data_streams_tests.py class TestDataStreams (line 23) | class TestDataStreams(unittest.TestCase): method __init__ (line 25) | def __init__(self, *args, **kwargs): method test_keys_present (line 35) | def test_keys_present(self): method test_keys_absent (line 47) | def test_keys_absent(self): method test_keys_extend (line 55) | def test_keys_extend(self): FILE: tests/utils/app_state_tests.py class TestAppState (line 22) | class TestAppState(unittest.TestCase): method test_01keys_present (line 25) | def test_01keys_present(self): method test_02keys_present_singleton (line 34) | def test_02keys_present_singleton(self): method test_03keys_absent (line 41) | def test_03keys_absent(self): method test_04keys_overwrite (line 46) | def test_04keys_overwrite(self): FILE: tests/utils/statistics_tests.py class TestStatistics (line 26) | class TestStatistics(unittest.TestCase): method __init__ (line 28) | def __init__(self, *args, **kwargs): method test_collector_string (line 31) | def test_collector_string(self): method test_aggregator_string (line 67) | def test_aggregator_string(self):