Skip to content

Commit

Permalink
[TEST] fix sagemaker e2e test issue with scikit-learn new release (#692)
Browse files Browse the repository at this point in the history
* pin sklearn version and update deployment name

* use SKLearn artifact and auto pip
  • Loading branch information
yubozhao authored May 18, 2020
1 parent 838d31c commit 37505a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e2e_tests/aws_sagemaker/test_sagemaker_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
def test_sagemaker_deployment(iris_clf_service):

random_hash = uuid.uuid4().hex[:6]
deployment_name = f'tests-lambda-e2e-{random_hash}'
deployment_name = f'tests-sagemaker-e2e-{random_hash}'
region = 'us-west-2'
create_deployment_command = [
'bentoml',
Expand Down
6 changes: 3 additions & 3 deletions e2e_tests/iris_classifier_example.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from bentoml import BentoService, api, env, artifacts
from bentoml.artifact import PickleArtifact
from bentoml.artifact import SklearnModelArtifact
from bentoml.handlers import DataframeHandler


@env(pip_dependencies=['scikit-learn'])
@artifacts([PickleArtifact('clf')])
@env(auto_pip_dependencies=True)
@artifacts([SklearnModelArtifact('clf')])
class IrisClassifier(BentoService):
@api(DataframeHandler)
def predict(self, df):
Expand Down

0 comments on commit 37505a2

Please sign in to comment.