adobe / experience-platform-dsw-reference Goto Github PK
View Code? Open in Web Editor NEWData Science Workspace containing sample recipes, datasets and notebooks
License: Apache License 2.0
Data Science Workspace containing sample recipes, datasets and notebooks
License: Apache License 2.0
I have been playing with the Recipe Builder using the sample codes and the sample Retail Sale dataset, at the jupyterLab on UI: https://platform.adobe.com/notebooks/jupyterLab
The sample datasaver code is expected to work without issues.
Here is the datasaver code:
`def save(config_properties, prediction):
client_context = get_client_context(config_properties)
dataset = Dataset(client_context).get_by_id(config_properties['scoringResultsDataSetId'])
dataset_writer = DatasetWriter(client_context, dataset)
dataset_writer.write(prediction, file_format='json')
print("Datasaver Finish")`
The line below throws an error
dataset_writer.write(prediction, file_format='json')
The error is around authentication:
Traceback (most recent call last):
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"main", mod_spec)
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/site-packages/ml_runtime_python-0.33.3-py3.5.egg/main.py", line 3, in
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/site-packages/ml_runtime_python-0.33.3-py3.5.egg/ml/runtime/python/main/main.py", line 63, in main
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/site-packages/ml_runtime_python-0.33.3-py3.5.egg/ml/runtime/python/core/scoringInitiator.py", line 76, in initiate
File "dist/recipe-0.0.1-py3.5.egg/recipe/datasaver.py", line 20, in save
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/site-packages/platform_sdk/dataset_writer.py", line 60, in write
file_path = common_adl_access._get_file_path(self.dataset_id(), batch_id, view_id)
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/site-packages/platform_sdk/common_adl_client.py", line 55, in _get_file_path
self._data_set_info(data_set_id)
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/site-packages/platform_sdk/common_adl_client.py", line 52, in _data_set_info
self._adl_client = ADLClient(data_set_id, credential_response)
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/site-packages/platform_sdk/adl.py", line 45, in init
resource = ADL_RESOURCE_URL)
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/site-packages/azure/datalake/store/lib.py", line 118, in auth
raise ValueError("tenant_id and client_id must be supplied for authentication")
ValueError: tenant_id and client_id must be supplied for authentication
Then I generated the tenantId via following curl command
curl -X GET \ https://platform.adobe.io/data/foundation/schemaregistry/stats \ -H 'Authorization: [Bearer token] \ -H 'x-api-key: [api key]' \ -H 'x-gw-ims-org-id: [imsorg id]'
I added it to the scoring configuration file scoring.conf with key "tenantId", but still the error persists and I don't know how to pass client_id for authentication.
Click "Score" button on the Recipe Builder page. The error shows up when saving the prediction to the scoring output.
Click "Score" button on the Recipe Builder page.
Adobe Experience Platform/Data Science Workspace.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.