cf8ae336304fab035ef38ba8942eeb474beefaa4,nussl/separation/base/deep_mixin.py,DeepMixin,get_metadata,#DeepMixin#Any#,108

Before Change


            // remove paths
            keys = ["train_dataset", "val_dataset"]
            for k in keys:
                try:
                    metadata[k].pop("folder")
                except:
                    pass

        if isinstance(metadata["config"], str):
            metadata["config"] = json.loads(metadata["config"])
        metadata["separation_class"] = type(self).__name__
        metadata["model_name"] = metadata["config"]["name"]

After Change


        if for_upload or truncate_loss:
            if "trainer.state.epoch_history" in metadata:
                loss_history = metadata.pop("trainer.state.epoch_history")
                metadata["final_loss"] = {k: float(v[-1]) for k, v in loss_history.items()}

        if isinstance(metadata["config"], str):
            metadata["config"] = json.loads(metadata["config"])
        metadata["separation_class"] = type(self).__name__
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: interactiveaudiolab/nussl
Commit Name: cf8ae336304fab035ef38ba8942eeb474beefaa4
Time: 2020-08-26
Author: eth@nmanilow.com
File Name: nussl/separation/base/deep_mixin.py
Class Name: DeepMixin
Method Name: get_metadata


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 225d31587eeb9aca226158e346c8e9730777913c
Time: 2017-02-24
Author: nlavine@google.com
File Name: perfkitbenchmarker/publisher.py
Class Name:
Method Name: RepublishJSONSamples


Project Name: pandas-dev/pandas
Commit Name: 4a6c3c56f54bf1f85f35aaae76dc76e7cf567b8f
Time: 2020-10-10
Author: 45562402+rhshadrach@users.noreply.github.com
File Name: pandas/core/aggregation.py
Class Name:
Method Name: aggregate