nodet / dowml

A library and command line client to use Decision Optimization on IBM Watson Machine Learning (WML). NOT SUPPORTED BY IBM.
Apache License 2.0
3 stars 0 forks source link

Implement a 'cos' option for 'outputs' to store assets on COS? #23

Open nodet opened 3 years ago

nodet commented 3 years ago

The way to store outputs on Cloud Object Storage is:

'output_data_references': [{
    'id': '.*\\.*',
    'type': 'connection_asset',
    'connection': {'href': f'/v2/connections/{CONNECTION_ID}?space_id={SPACE_ID}'},
    'location': {
        'bucket': f'{BUCKET_NAME}',
        'file_name': '${job_id}/${attachment_name}'
    }
}]
nodet commented 3 years ago

Testing outputs cos will be a pain... It will require adding in the credentials a bucket name and a connection id, and that connection id will be different each time the space is deleted (that is, every night)... :(