21a96fb80b034caf9a2cba97c88de746711d11e8,lore/models/base.py,Base,download,#Any#Any#,256

Before Change


        warnings.showwarning("Please start using explicit fitting number when downloading the model ex "Keras.download(10)". Default Keras.download() will be deprecated in 0.7.0",
                             DeprecationWarning,
                             filename, line_number)
        model = cls(None, None)
        if not fitting:
            fitting = model.last_fitting()
        model.fitting = int(fitting)
        try:

After Change


        if fitting_id is None:
            model.fitting = model.last_fitting()
        else:
            model.fitting = lore.metadata.Fitting.get(fitting_id)

        if model.fitting is None:
            logger.warning("Attempting to download a model from outside of the metadata store is deprecated and will be removed in 0.8.0")
            model.fitting = lore.metadata.Fitting(id=0)

        try:
            lore.io.download(model.remote_model_path(), model.model_path(), cache=True)
        except botocore.exceptions.ClientError as e:
            if e.response["Error"]["Code"] == "404":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: instacart/lore
Commit Name: 21a96fb80b034caf9a2cba97c88de746711d11e8
Time: 2018-12-07
Author: gkrishnan.gt@gmail.com
File Name: lore/models/base.py
Class Name: Base
Method Name: download


Project Name: snipsco/snips-nlu
Commit Name: c51b7d247f7f5320df0e1ffe9e4a6abb5526e22c
Time: 2018-01-18
Author: adrien.ball@snips.net
File Name: snips_nlu/nlu_engine.py
Class Name: SnipsNLUEngine
Method Name: from_dict


Project Name: aws/sagemaker-python-sdk
Commit Name: 13fc68c1fbc73ba9791863d5976e529133a7786e
Time: 2020-03-10
Author: knakad@amazon.com
File Name: src/sagemaker/processing.py
Class Name: ProcessingJob
Method Name: from_processing_name