... | ... | @@ -57,13 +57,15 @@ sign0_full = cc.get_signature('sign0', 'full', 'A1.001') |
|
|
sign0_full.predict()
|
|
|
sign0_ref = cc.get_signature('sign0', 'reference', 'A1.001')
|
|
|
rnd = RNDuplicates()
|
|
|
rnd.remove(sign0_full.data_path)
|
|
|
rnd.save(sign0_ref.data_path)
|
|
|
keys,data,maps = rnd.remove(sign0_full.data_path)
|
|
|
f5 = h5py.File(sign0_full.data_path)
|
|
|
features = f5["features"][:]
|
|
|
f5.close()
|
|
|
with h5py.File(sign0_ref.data_path, 'a') as hf:
|
|
|
with h5py.File(sign0_ref.data_path, 'w') as hf:
|
|
|
hf.create_dataset("features", data=features)
|
|
|
hf.create_dataset("keys", data=keys)
|
|
|
hf.create_dataset("V", data=data, dtype='i8')
|
|
|
hf.create_dataset("shape", data=data.shape)
|
|
|
sign1_ref = cc.get_signature('sign1', 'reference', 'A1.001')
|
|
|
sign1_ref.fit(sign0_ref)
|
|
|
sign1_full = cc.get_signature('sign1', 'full', 'A1.001')
|
... | ... | |