capreolus.reranker.DeepTileBar

Module Contents

Classes

DeepTileBar_nn(p, batch_size, number_filter, lstm_hidden_dim, linear_hidden_dim1, linear_hidden_dim2)
DeepTileBar_class(extractor, config)
DeepTileBar(config=None, provide=None, share_dependency_objects=False, build=True) Base class for profane modules.
capreolus.reranker.DeepTileBar.logger[source]
class capreolus.reranker.DeepTileBar.DeepTileBar_nn(p, batch_size, number_filter, lstm_hidden_dim, linear_hidden_dim1, linear_hidden_dim2)[source]

Bases: torch.nn.Module

init_hidden(self)[source]
reset_hidden(self)[source]
forward(self, tile_matrix1)[source]
class capreolus.reranker.DeepTileBar.DeepTileBar_class(extractor, config)[source]

Bases: torch.nn.Module

init_hidden(self)[source]
reset_hidden(self)[source]
forward(self, pos_tile_matrix, neg_tile_matrix)[source]
test_forward(self, pos_tile_matrix)[source]
class capreolus.reranker.DeepTileBar.DeepTileBar(config=None, provide=None, share_dependency_objects=False, build=True)[source]

Bases: capreolus.reranker.Reranker

Base class for profane modules. Module construction proceeds as follows: 1) Any config options not present in config are filled in with their default values. Config options and their defaults are specified in the config_spec class attribute. 2) Any dependencies declared in the dependencies class attribute are recursively instantiated. If the dependency object is present in provide, this object will be used instead of instantiating a new object for the dependency. 3) The module object’s config variable is updated to reflect the configs of its dependencies and then frozen.

After construction is complete, the module’s dependencies are available as instance variables: self.`dependency key`.

Parameters:
  • config – dictionary containing a config to apply to this module and its dependencies
  • provide – dictionary mapping dependency keys to module objects
  • share_dependency_objects – if true, dependencies will be cached in the registry based on their configs and reused. See the share_objects argument of ModuleBase.create.
description = Zhiwen Tang and Grace Hui Yang. 2019. DeepTileBars: Visualizing Term Distribution for Neural Information Retrieval. In AAAI'19.[source]
module_name = DeepTileBar[source]
dependencies[source]
config_spec[source]
build_model(self)[source]
score(self, d)[source]
test(self, d)[source]
zero_grad(self, *args, **kwargs)[source]