MCPcopy Create free account

hub / github.com/M-Nauta/ProtoTree / functions

Functions180 in github.com/M-Nauta/ProtoTree

Method__init__
(self, num_input_features, num_output_features)
features/densenet_features.py:75
Method__init__
(self, growth_rate=32, block_config=(6, 12, 24, 16), num_init_features=64, bn_size=4, drop_ra
features/densenet_features.py:101
Method__init__
(self, inplanes, planes, stride=1, downsample=None)
features/resnet_features.py:79
Method__init__
(self, block, layers, num_classes=1000, zero_init_residual=False)
features/resnet_features.py:130
Method__init__
(self, inp, oup, stride, expand_ratio)
features/mobilenet_features.py:19
Method__init__
(self, num_features=20, num_classes=10, width_mult=1.0)
features/mobilenet_features.py:48
Method__init__
(self, index: int, num_classes: int, args: argparse.Name
prototree/leaf.py:13
Method__init__
(self, index: int)
prototree/node.py:8
Method__init__
(self, index: int, l: Node, r: Node, a
prototree/branch.py:15
Method__init__
(self, num_classes: int, feature_net: torch.nn.Module, a
prototree/prototree.py:23
Method__init__
(self, log_dir: str)
util/log.py:12
Method__init__
Create a new L2Conv2D layer :param num_prototypes: The number of prototypes in the layer :param num_features: The number o
util/l2conv.py:13
Method__repr__
(self)
features/vgg_features.py:97
Method__repr__
(self)
features/densenet_features.py:173
Method__repr__
(self)
features/resnet_features.py:226
Method_assign_depths
(node, d)
prototree/prototree.py:249
Method_init_tree_recursive
(i: int, d: int)
prototree/prototree.py:301
Method_set_parents_recursively
(node: Node)
prototree/prototree.py:321
Methodadd_on_layers_require_grad
(self)
prototree/prototree.py:97
Methodblock_conv_info
(self)
features/densenet_features.py:83
Methodblock_conv_info
(self)
features/resnet_features.py:116
Methodbranches
(self)
prototree/leaf.py:96
Methodbranches
(self)
prototree/node.py:32
Methodbranches
(self)
prototree/branch.py:102
Methodbranches
(self)
prototree/prototree.py:258
Methodcheckpoint_dir
(self)
util/log.py:31
Methodconv_info
(self)
features/vgg_features.py:88
Methodconv_info
(self)
features/densenet_features.py:167
Methodconv_info
(self)
features/resnet_features.py:210
Methoddepth
(self)
prototree/leaf.py:112
Methoddepth
(self)
prototree/node.py:48
Methoddepth
(self)
prototree/branch.py:122
Methoddepth
(self)
prototree/prototree.py:230
Methodfeatures_require_grad
(self)
prototree/prototree.py:88
Methodforward
(self, x)
features/vgg_features.py:40
Methodforward
(self, x)
features/densenet_features.py:34
Methodforward
(self, x)
features/densenet_features.py:164
Methodforward
(self, x)
features/resnet_features.py:47
Methodforward
(self, x)
features/resnet_features.py:94
Methodforward
(self, x)
features/resnet_features.py:197
Methodforward
(self, x)
features/mobilenet_features.py:40
Methodforward
(self, x)
features/mobilenet_features.py:101
Methodforward
(self, *args, **kwargs)
prototree/node.py:12
Methodforward
(self, xs: torch.Tensor, **kwargs)
prototree/branch.py:28
Methodforward
(self, xs: torch.Tensor, sampling_strategy: str = SAMPLING_STRATEGIES[0], #
prototree/prototree.py:105
Methodindex
(self)
prototree/node.py:16
Functioninit_weights_kaiming
(m)
util/init.py:72
Functioninit_weights_xavier
(m)
util/init.py:68
Methodleaves
(self)
prototree/leaf.py:92
Methodleaves
(self)
prototree/node.py:28
Methodleaves
(self)
prototree/branch.py:98
Methodleaves
(self)
prototree/prototree.py:262
Methodleaves_require_grad
(self)
prototree/prototree.py:71
Functionload_args
Load the pickled arguments from the specified directory :param directory_path: The path to the directory from which the arguments should be
util/args.py:180
Functionload_state
(directory_path: str, device)
util/init.py:7
Methodlog_args
(self, args: argparse.Namespace)
util/log.py:76
Methodlog_dir
(self)
util/log.py:27
Methodmetadata_dir
(self)
util/log.py:35
Functionmobilenet_v2
Constructs a MobileNetV2 architecture from `"MobileNetV2: Inverted Residuals and Linear Bottlenecks" <https://arxiv.org/abs/1801.04381>`_.
features/mobilenet_features.py:107
Methodnode_depths
(self)
prototree/prototree.py:247
Methodnodes
(self)
prototree/node.py:24
Methodnodes
(self)
prototree/prototree.py:239
Methodnodes_by_index
(self)
prototree/leaf.py:100
Methodnodes_by_index
(self)
prototree/node.py:36
Methodnodes_by_index
(self)
prototree/branch.py:108
Methodnodes_by_index
(self)
prototree/prototree.py:243
Methodnum_branches
(self)
prototree/leaf.py:104
Methodnum_branches
(self)
prototree/node.py:40
Methodnum_branches
(self)
prototree/branch.py:114
Methodnum_branches
(self)
prototree/prototree.py:266
Methodnum_leaves
(self)
prototree/leaf.py:108
Methodnum_leaves
(self)
prototree/node.py:44
Methodnum_leaves
(self)
prototree/branch.py:118
Methodnum_leaves
(self)
prototree/prototree.py:270
Functionproject
(tree: ProtoTree, project_loader: DataLoader, device, args: argparse.Na
prototree/project.py:10
Methodprototypes_require_grad
(self)
prototree/prototree.py:80
Methodrequires_grad
(self)
prototree/leaf.py:80
Functionresnet50_features_inat
Constructs a ResNet-50 model. Args: pretrained (bool): If True, returns a model pre-trained on Inaturalist2017
features/resnet_features.py:270
Methodroot
(self)
prototree/prototree.py:67
Methodsize
(self)
prototree/node.py:20
← previous101–180 of 180, ranked by callers