MCPcopy Create free account

hub / github.com/Mattdl/ContinualPrototypeEvolution / functions

Functions112 in github.com/Mattdl/ContinualPrototypeEvolution

↓ 5 callersMethodforward
(self, x, t=0)
model/GSSgreedy.py:102
↓ 4 callersMethod_make_layer
(self, block, planes, num_blocks, stride)
model/common.py:88
↓ 4 callersFunctionget_grad_vector
gather the gradients in one vector
model/GSSgreedy.py:12
↓ 4 callersFunctionunpickle
(file)
data/raw/raw.py:27
↓ 3 callersFunction_plot
(d_x2d, d_y, d_yunique, p_x2d, p_y, data_mode, plot_t, batch_cnt, legend, save_img_path, figsize=(8, 8))
metrics/plot.py:21
↓ 3 callersFunctionconv3x3
(in_planes, out_planes, stride=1)
model/common.py:43
↓ 3 callersFunctioncreatedirs
(dirpath)
metrics/utils.py:4
↓ 3 callersMethodinit_zeros
(self, feat_len=None)
model/prototypical/mem_scheme.py:39
↓ 3 callersMethodprint_mem_stats
Print a memory summary.
model/prototypical/mem_scheme.py:202
↓ 2 callersMethod__init__
(self, sizes, bias=True)
model/common.py:23
↓ 2 callersFunction_plot_featspace
(data_mode, tr_data, eval_data, model, plot_t, batch_cnt, save_img_path, legend, init, fig
metrics/plot.py:92
↓ 2 callersMethodcosine_similarity
(self, x1, x2=None, eps=1e-8)
model/GSSgreedy.py:108
↓ 2 callersFunctioneval_tasks
No grads wrapper.
main.py:277
↓ 2 callersMethodforward
(self, x, t=0)
model/CoPE_CE.py:62
↓ 2 callersMethodforward
(self, x, t)
model/gem.py:129
↓ 2 callersMethodforward_training
Learning forward. L2-embedding normalization.
model/prototypical/CoPE.py:107
↓ 2 callersMethodget_batch_sim
(self, effective_batch_size)
model/GSSgreedy.py:253
↓ 2 callersFunctionget_data
()
metrics/plot.py:99
↓ 2 callersMethodget_each_batch_sample_sim
(self)
model/GSSgreedy.py:281
↓ 2 callersFunctionget_mem_data
()
metrics/plot.py:106
↓ 2 callersMethodinit_new_mem
Init prototoypes of new classes.
model/prototypical/mem_scheme.py:77
↓ 2 callersMethodmomentum_update
(old_value, new_value, momentum, debug=False)
model/prototypical/p_scheme.py:47
↓ 2 callersFunctionstore_grad
This stores parameter gradients of past tasks. pp: parameters grads: gradients grad_dims: list with number of paramet
model/gem.py:26
↓ 2 callersMethodsummarize_p_update
(self, c, new_p, old_p)
model/prototypical/p_scheme.py:41
↓ 2 callersMethodupdate
(self, current_task, tot_res_seq, tot_avg_acc, task_res_seq, task_avg_acc)
main.py:307
↓ 1 callersFunctionResNet18
(nclasses, nf=20, bias=True)
model/common.py:109
↓ 1 callersMethod__next__
(self)
main.py:209
↓ 1 callersFunction_eval_tasks
Evaluates performance of the model on samples from all the tasks and reports 1) average performance on all the samples regardless of their ta
main.py:227
↓ 1 callersMethod_forward_eval
(self, x)
model/prototypical/CoPE.py:104
↓ 1 callersFunctionadd_memory_grad
This stores the gradient of a new memory and compute the dot product with the previously stored memories. pp: parameters mem
model/GSSgreedy.py:28
↓ 1 callersMethodattractor
(self, pc, pk, xc, gpu, include_batch=True)
model/prototypical/loss_scheme.py:152
↓ 1 callersMethodchecks
(self)
model/CoPE_CE.py:123
↓ 1 callersMethodchecks
(self)
model/prototypical/CoPE.py:169
↓ 1 callersFunctionconfusion_matrix
metrics/metrics.py:24
↓ 1 callersFunctioneval_on_memory
Compute accuracy on the buffer.
main.py:283
↓ 1 callersMethodforward
(self, x, t=0)
model/reservoir.py:41
↓ 1 callersMethodforward
(self, x, t)
model/finetune.py:36
↓ 1 callersMethodforward_training
(self, x, t)
model/icarl.py:97
↓ 1 callersMethodget_all
(self)
main.py:322
↓ 1 callersMethodget_all_prototypes
(self)
model/prototypical/CoPE.py:190
↓ 1 callersFunctionget_model
(args, n_inputs, n_outputs)
main.py:383
↓ 1 callersMethodinit_prototype_val
(feat_len)
model/prototypical/mem_scheme.py:35
↓ 1 callersFunctionlife_experience
(model, continuum, x_te, args)
main.py:330
↓ 1 callersFunctionload_datasets
(args)
main.py:124
↓ 1 callersFunctionmain
(overwrite_args=None)
main.py:392
↓ 1 callersMethodobserve
(self, x, t, y)
model/gem.py:133
↓ 1 callersFunctionoverwrite_grad
This is used to overwrite the gradients with a new gradient vector, whenever violations occur. pp: parameters newgrad
model/gem.py:45
↓ 1 callersFunctionproject2cone2
Solves the GEM dual QP described in the paper given a proposed gradient "gradient", and a memory of task gradients "memories".
model/gem.py:64
↓ 1 callersMethodrepellor
(self, pc, pk, xc, xk, gpu, include_batch=True)
model/prototypical/loss_scheme.py:120
↓ 1 callersMethodsoftmax_joint
- \sum_{i in B^c} log(Pc) - \sum_{i in B^c} \sum_{k \ne c} log( (1 - Pk)) Note: log(Exp(y)) makes y always positive, which
model/prototypical/loss_scheme.py:47
↓ 1 callersFunctionstat_summarize
(stat_files)
main.py:502
↓ 1 callersMethodsummarize_batch
(self, y_ext, y, y_s)
model/CoPE_CE.py:127
↓ 1 callersMethodsummarize_batch
(y_ext, y, y_s)
model/prototypical/CoPE.py:174
↓ 1 callersFunctiontask_changes
(result_t)
metrics/metrics.py:12
↓ 1 callersMethodto_tensor
(self)
main.py:317
↓ 1 callersMethodupdate_f_mem
update age of all examplars, and update representations of replayed exemplars.
model/prototypical/mem_scheme.py:87
↓ 1 callersMethodupdate_mem_sizes
Update to maintain
model/prototypical/mem_scheme.py:104
↓ 1 callersMethodupdate_queues
Class-specific memories are updated following defined strategy.
model/prototypical/mem_scheme.py:129
↓ 1 callersMethodupdate_task_memory
(self, x)
model/icarl.py:148
FunctionXavier
(m)
model/common.py:12
Method__call__
Standard reduction is mean, as we use full batch information instead of per-sample. Symmetry in the distance function inhibits summin
model/prototypical/loss_scheme.py:28
Method__call__
(self, x, f, y, yr, class_mem, ns_new, pre_loss=False)
model/prototypical/p_scheme.py:33
Method__call__
(self, labels, n_samples, input_shape)
model/prototypical/sample_scheme.py:30
Method__call__
(self, x, f, labels, replay_idxs, class_mem, ns_new)
model/prototypical/mem_scheme.py:73
Method__init__
(self, data, args)
main.py:136
Method__init__
(self)
main.py:299
Method__init__
(self, n_inputs, n_outputs, n_tasks, args)
model/CoPE_CE.py:11
Method__init__
(self, n_inputs, n_outputs, n_tasks, args)
model/icarl.py:17
Method__init__
(self, n_inputs, n_outputs, n_tasks, args)
model/reservoir.py:11
Method__init__
(self, n_inputs, n_outputs, n_tasks, args)
model/finetune.py:17
Method__init__
(self, in_planes, planes, stride=1)
model/common.py:51
Method__init__
(self, block, num_blocks, num_classes, nf, bias)
model/common.py:75
Method__init__
(self, n_inputs, n_outputs, n_tasks, args)
model/gem.py:89
Method__init__
(self, n_inputs, n_outputs, n_tasks, args)
model/GSSgreedy.py:50
Method__init__
:param margin: margin on distance between pos vs neg samples (see TripletMarginLoss) :param dist: distance function 2 vectors (e.g. L
model/prototypical/loss_scheme.py:10
Method__init__
:param p_mode: prototypes update mode
model/prototypical/p_scheme.py:7
Method__init__
(self, n_inputs, n_outputs, n_tasks, args)
model/prototypical/CoPE.py:13
Method__init__
:param sample_qi_mode: input memory queue update mode
model/prototypical/sample_scheme.py:12
Method__init__
(self, label, init_prototype, metric_shape, qi_len=1, gpu=True)
model/prototypical/mem_scheme.py:8
Method__init__
:param qi_mode: input memory queue update mode
model/prototypical/mem_scheme.py:58
Method__iter__
(self)
main.py:200
Method__len__
(self)
main.py:203
Method__str__
(self)
model/prototypical/mem_scheme.py:44
Functioncompute_offsets
Compute offsets for cifar to determine which outputs to select for a given task.
model/gem.py:16
Methodforward
(self, x, t)
model/icarl.py:61
Methodforward
(self, x)
model/common.py:39
Methodforward
(self, x)
model/common.py:66
Methodforward
(self, x)
model/common.py:96
Methodforward
Deployment forward. Find closest prototype for each sample.
model/prototypical/CoPE.py:65
Methodforward_training
(self, x)
model/CoPE_CE.py:66
Methodget_hyperparam_list
(self, args)
model/CoPE_CE.py:69
Methodget_hyperparam_list
(self, args)
model/icarl.py:211
Methodget_hyperparam_list
(self, args)
model/reservoir.py:91
Methodget_hyperparam_list
(self, args)
model/finetune.py:55
Methodget_hyperparam_list
(self, args)
model/gem.py:197
Methodget_hyperparam_list
(self, args)
model/GSSgreedy.py:297
Methodget_hyperparam_list
(self, args)
model/prototypical/CoPE.py:202
Methodnext
(self)
main.py:206
Methodobserve
Train.
model/CoPE_CE.py:72
Methodobserve
(self, x, t, y)
model/icarl.py:101
next →1–100 of 112, ranked by callers