Skip to content

Difference between ScriptProcessor vs Processor #1569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mdrmuhaimin opened this issue Jun 10, 2020 · 3 comments
Closed

Difference between ScriptProcessor vs Processor #1569

mdrmuhaimin opened this issue Jun 10, 2020 · 3 comments
Labels
status: pending release The fix have been merged but not yet released to PyPI type: documentation

Comments

@mdrmuhaimin
Copy link

From Sagemaker python SDK I have seen two API, ScriptProcessor and Processor. It seems like we can achieve the same goals using either of them, the only difference I noticed ScriptProcessor support docker command parameter on the other hand Processor support docker entrypoint parameter.

Is there any other difference amongst them? Can we improve the documentation to define when to use which?

@chuyang-deng
Copy link
Contributor

Hi @mdrmuhaimi n, from what I understand, the key difference between Processor and ScriptProcessor is that ScriptProcessor takes a code parameter that allows you to process data and evaluate model: https://github.com/aws/sagemaker-python-sdk/blob/master/src/sagemaker/processing.py#L354

Here's some instruction to use ScriptProcessor

@laurenyu
Copy link
Contributor

I've opened a PR to try and help: #1600. As Chuyang said, the ScriptProcessor's code parameter allows you to provide a script to be run as part of the Processing Job.

Docs: https://sagemaker.readthedocs.io/en/stable/amazon_sagemaker_processing.html

@laurenyu laurenyu added In progress status: pending release The fix have been merged but not yet released to PyPI and removed In progress labels Jun 16, 2020
@laurenyu
Copy link
Contributor

doc changes have been released in https://github.com/aws/sagemaker-python-sdk/releases/tag/v1.65.1. feel free to reopen if you have further questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: pending release The fix have been merged but not yet released to PyPI type: documentation
Projects
None yet
Development

No branches or pull requests

3 participants