watson_developer_cloud.tradeoff_analytics_v1 module

The v1 Tradeoff Analytics service (https://www.ibm.com/watson/developercloud/tradeoff-analytics.html)

class TradeoffAnalyticsV1(url='https://gateway.watsonplatform.net/tradeoff-analytics/api', **kwargs)[source]

Bases: watson_developer_cloud.watson_developer_cloud_service.WatsonDeveloperCloudService

Wrapper for the Tradeoff Analytics service

default_url = 'https://gateway.watsonplatform.net/tradeoff-analytics/api'
dilemmas(params, generate_visualization=True)[source]
Parameters:
  • params – The JSON problem (subject, columns, and options)
  • generate_visualization – If True, returns the map visualization used by the Tradeoff Analytics widget
Returns:

A dilemma that contains the problem and its resolution