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

Method get_source

code/traditional/sot/SOT.py:161–165  ·  view source on GitHub ↗
(self,filepath,sourcename)

Source from the content-addressed store, hash-verified

159 self.diag_g = joblib.load(modelpath)
160
161 def get_source(self,filepath,sourcename):
162 with open(filepath,'r') as f:
163 s=f.read()
164 record1=json.loads(s)
165 self.diag_s=record1[sourcename]
166
167 def partot_DA(self,Sx,Sy,Tx,b,xt1,ttt=1):
168 a1 = np.ones(len(Sx))

Callers 1

fit_predictMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected