Skip to content

Difference between ScriptProcessor vs Processor #1569

Closed

Description

@mdrmuhaimin

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?

Activity

  1. chuyang-deng commented on Jun 12, 2020

    @chuyang-deng
    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

  2. laurenyu commented on Jun 16, 2020

    @laurenyu
    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

  3. added
    status: pending release
    and removed on Jun 16, 2020
  4. laurenyu commented on Jun 18, 2020

    @laurenyu
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: pending releasetype: documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions