Skip to content

Conversation

andreidenissov-cog
Copy link
Contributor

Fixes #386
Simple implementation for experiment storage and/or database in the local (experiment host)
filesystem.
Added basic document describing studioml configuration for this use case.

elif config['type'].lower() == 's3':
return S3ArtifactStore(config, verbose=verbose)
elif config['type'].lower() == 'local':
return LocalArtifactStore(config, verbose=verbose)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding "local" option to our selector.

@@ -0,0 +1,64 @@
import calendar
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This implementation is as straightforward as it gets:
basically, we just copy files around with no intent to optimize things.

@@ -0,0 +1,51 @@
import os
import json
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Database low-level logic implemented simply as directory with file names being the keys
and json values serialized into files themselves.

blocking_auth=blocking_auth)
artifact_store = db_provider.get_artifact_store()

elif db_config['type'].lower() == 'local':
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding "local" option to our selector.

Copy link
Member

@karlmutch karlmutch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good for a narrow tire kicker case.

@andreidenissov-cog andreidenissov-cog merged commit 863af5b into studioml:master Feb 1, 2020
@andreidenissov-cog andreidenissov-cog deleted the feature/386 branch February 1, 2020 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement local storage/database mode for studioml users.

2 participants