MCPcopy
hub / github.com/jindongwang/transferlearning / get_target

Method get_target

code/traditional/sot/SOT.py:154–159  ·  view source on GitHub ↗
(self,filepath,modelpath,targetname)

Source from the content-addressed store, hash-verified

152 self.rule=rule
153
154 def get_target(self,filepath,modelpath,targetname):
155 with open(filepath, 'r') as f:
156 s = f.read()
157 record = json.loads(s)
158 self.diag_t = record[targetname]
159 self.diag_g = joblib.load(modelpath)
160
161 def get_source(self,filepath,sourcename):
162 with open(filepath,'r') as f:

Callers 1

fit_predictMethod · 0.95

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected