Skip to content

Invalid specification of input data in windows local mode #844

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
xnaiman opened this issue Jun 12, 2019 · 2 comments
Closed

Invalid specification of input data in windows local mode #844

xnaiman opened this issue Jun 12, 2019 · 2 comments

Comments

@xnaiman
Copy link

xnaiman commented Jun 12, 2019

System Information

  • Framework (e.g. TensorFlow) / Algorithm (e.g. KMeans): Scikit-Learn
  • Framework Version: 0.20.0 (official sagemaker-scikit-learn-container)
  • Python Version: 3.6
  • CPU or GPU: CPU
  • Python SDK Version: 1.26.0
  • Are you using a custom image: No

Describe the problem

When I execute fit method in local mode on windows, incorrect training-data file path will be transferred to the docker container.

Cause

I already know that the cause is the difference between windows and linux file separators. Therefore, I specify the cause.

The following code is provided for sagemaker-python-sdk/src/sagemaker/local/image.py.

self.container_dir = container_dir if container_dir else os.path.join('/opt/ml/input/data', channel)

When this code is executed on windows, if channel is train, it becomes /opt/ml/input/data\train and can not be recognized by docker.

Minimal repro / logs

  • Exact command to reproduce:
sklearn = SKLearn(
    entry_point='scikit_learn_iris.py',
    train_instance_type="ml.c4.xlarge",
    role=role,
    sagemaker_session=sagemaker_session,
    hyperparameters={'max_leaf_nodes': 30})

sklearn.fit({'train': train_input})
@mvsusp
Copy link
Contributor

mvsusp commented Jun 14, 2019

Hi @xnaiman ,

This issue is related to #847

We currently don't support Local mode for windows instances. This feature is already included in our roadmap.

Sorry for any inconvenience about that.

@akrishna1995
Copy link
Contributor

Closing this issue based on the comment above. Please let me know if you have any more feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants