Skip to content

Commit

Permalink
full copy of metadata from private data to syn data
Browse files Browse the repository at this point in the history
  • Loading branch information
fjxmlzn committed Dec 27, 2024
1 parent aed239a commit bbd6c54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pe/runner/pe.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import numpy as np
import copy

from pe.dp import Gaussian
from pe.data import Data
Expand Down Expand Up @@ -171,8 +172,8 @@ def run(
syn_data_list.append(syn_data)
syn_data = Data.concat(syn_data_list, metadata=self._priv_data.metadata)
syn_data.data_frame.reset_index(drop=True, inplace=True)
syn_data.metadata = copy.deepcopy(self._priv_data.metadata)
syn_data.metadata.iteration = 0
syn_data.metadata.label_info = self._priv_data.metadata.label_info
self._log_metrics(syn_data)

# Run PE iterations.
Expand Down

0 comments on commit bbd6c54

Please sign in to comment.