5aa56c35f3cb73d19f053890414c647bee087987,art/classifiers/mxnet.py,MXClassifier,save,#MXClassifier#Any#Any#,369

Before Change


        :type path: `str`
        :return: None
        
        raise NotImplementedError

    def _get_layers(self):
        
        Return the hidden layers in the model, if applicable.

After Change



        if path is None:
            from art import DATA_PATH
            full_path = os.path.join(DATA_PATH, filename)
        else:
            full_path = os.path.join(path, filename)
        folder = os.path.split(full_path)[0]
        if not os.path.exists(folder):
            os.makedirs(folder)

        self._model.save_parameters(full_path + ".params")
        logger.info("Model parameters saved in path: %s.params.", full_path)

    def _get_layers(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 5aa56c35f3cb73d19f053890414c647bee087987
Time: 2019-02-13
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/classifiers/mxnet.py
Class Name: MXClassifier
Method Name: save


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 5aa56c35f3cb73d19f053890414c647bee087987
Time: 2019-02-13
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/classifiers/mxnet.py
Class Name: MXClassifier
Method Name: save


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: b31838b085e6d153df080a2dfed083266d13db25
Time: 2019-02-06
Author: akaberto@gmail.com
File Name: art/classifiers/pytorch.py
Class Name: PyTorchClassifier
Method Name: save


Project Name: AllenCellModeling/pytorch_fnet
Commit Name: a6cc7d2b3c8562b062482422126d377278cb5d23
Time: 2017-06-23
Author: chek.o@outlook.com
File Name: model_modules/u_net_v0.py
Class Name: Model
Method Name: save