MCPcopy Create free account
hub / github.com/HobbitLong/PyContrast / override_options

Method override_options

pycontrast/options/base_options.py:129–138  ·  view source on GitHub ↗
(self, opt)

Source from the content-addressed store, hash-verified

127 raise NotImplementedError
128
129 def override_options(self, opt):
130 # override parameters for predefined method
131 if opt.method in self.override_dict.keys():
132 opt.modal = self.override_dict[opt.method][0]
133 opt.jigsaw = self.override_dict[opt.method][1]
134 opt.mem = self.override_dict[opt.method][2]
135 opt.aug = self.override_dict[opt.method][3]
136 opt.head = self.override_dict[opt.method][4]
137 opt.nce_t = self.override_dict[opt.method][5]
138 return opt
139
140 def parse(self):
141 if not self.initialized:

Callers 2

modify_optionsMethod · 0.80
modify_optionsMethod · 0.80

Calls

no outgoing calls

Tested by 1

modify_optionsMethod · 0.64