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