desdeo_vis.widget

This module contains Jupyter widgets for interactively specifying preferences as well as interactively and non-interactively displaying solutions.

class desdeo_vis.widget.VegaWidget(**kwargs)[source]

Bases: ipywidgets.widgets.domwidget.DOMWidget

__module__ = 'desdeo_vis.widget.widgets'
spec

An instance of a Python dict.

class desdeo_vis.widget.NimbusPrefWidget(results, problem, max_as_min=None, **kwargs)[source]

Bases: desdeo_vis.widget.widgets.ParplotWidget

A NIMBUS preference selection widget. This allows for graphical selection of preferences in the form NIMBUS requires.

__init__(results, problem, max_as_min=None, **kwargs)[source]
Parameters:
  • results – The solutions to plot.
  • problem – The DESDEO problem with which the plot is made with respect to.
  • max_as_min – Whether to reformulate maximized functions as minimized functions.
__module__ = 'desdeo_vis.widget.widgets'
nimbus_clf(meth)[source]

Get the NIMBUS preference currently selected with the widget as a NIMBUSClassification. Raises a InvalidNimbusPreferencesException if an invalid preference is chosen.

Return type:NIMBUSClassification
prefs

An instance of a Python list.

prob

A trait for unicode strings.

class desdeo_vis.widget.ParplotWidget(results, problem, max_as_min=None, **kwargs)[source]

Bases: desdeo_vis.widget.widgets.VegaWidget

A parallel plot widget to display solutions to a multi-objective optimization problem.

__init__(results, problem, max_as_min=None, **kwargs)[source]
Parameters:
  • results – The solutions to plot.
  • problem – The DESDEO problem with which the plot is made with respect to.
  • max_as_min – Whether to reformulate maximized functions as minimized functions.
__module__ = 'desdeo_vis.widget.widgets'
cur_max_as_min

A boolean (True, False) trait.

maximized

An instance of a Python list.

orig_max_as_min

A boolean (True, False) trait.

update_max_as_min
update_spec()[source]