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_service.WatsonService

Wrapper for the Tradeoff Analytics service

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

used by the Tradeoff Analytics widget :param find_preferable_options: If True, returns a refined subset of best candidate options that will most likely satisfy the greatest number of users :return: A dilemma that contains the problem and its resolution