997720644500d3cc822c210b92d72c82b442d183,src/sagemaker/sklearn/model.py,SKLearnModel,__init__,#SKLearnModel#Any#Any#Any#Any#Any#Any#Any#Any#,60
Before Change
)
if py_version == "py2":
logger.warning(
python_deprecation_warning(self.__framework_name__, defaults.LATEST_PY2_VERSION)
)
self.py_version = py_version
self.framework_version = framework_version
self.model_server_workers = model_server_workers
After Change
validate_version_or_image_args(framework_version, py_version, image)
if py_version and py_version != "py3":
raise AttributeError(
"Scikit-learn image only supports Python 3. Please use "py3" for py_version."
)
self.framework_version = framework_version
self.py_version = py_version
super(SKLearnModel, self).__init__(
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: aws/sagemaker-python-sdk
Commit Name: 997720644500d3cc822c210b92d72c82b442d183
Time: 2020-06-11
Author: 65414824+metrizable@users.noreply.github.com
File Name: src/sagemaker/sklearn/model.py
Class Name: SKLearnModel
Method Name: __init__
Project Name: aws/sagemaker-python-sdk
Commit Name: 997720644500d3cc822c210b92d72c82b442d183
Time: 2020-06-11
Author: 65414824+metrizable@users.noreply.github.com
File Name: src/sagemaker/sklearn/estimator.py
Class Name: SKLearn
Method Name: __init__
Project Name: aws/sagemaker-python-sdk
Commit Name: 0fd875414db5dab638a16a5396505fe52a036bfe
Time: 2020-01-20
Author: chuyangdeng@gmail.com
File Name: src/sagemaker/xgboost/model.py
Class Name: XGBoostModel
Method Name: __init__
Project Name: aws/sagemaker-python-sdk
Commit Name: 0fd875414db5dab638a16a5396505fe52a036bfe
Time: 2020-01-20
Author: chuyangdeng@gmail.com
File Name: src/sagemaker/xgboost/estimator.py
Class Name: XGBoost
Method Name: __init__