rasa/core/training/interactive.py
async def _plot_trackers(sender_ids: List[Union[Text, List[Event]]],
                         output_file: Optional[Text],
                         endpoint: EndpointConfig,
                         unconfirmed: Optional[List[Event]] = None
                         ):
    """Create a plot of the trackers of the passed sender ids.

    This assumes that the last sender id is the conversation we are currently
    working on. If there are events that are not part of this active tracker
    yet, they can be passed as part of `unconfirmed`. They will be appended
    to the currently active conversation."""

    if not output_file or not sender_ids:
        # if there is no output file provided, we are going to skip plotting
        # same happens if there are no sender ids
        return None

    event_sequences = await _fetch_events(sender_ids, endpoint)

    if unconfirmed:
        event_sequences[-1].extend(unconfirmed)

    graph = await visualize_neighborhood(event_sequences[-1],
                                         event_sequences,
                                         output_file=None,
                                         max_history=2)

    from networkx.drawing.nx_pydot import write_dot
    write_dot(graph, output_file)
Create a plot of the trackers of the passed sender ids.

    This assumes that the last sender id is the conversation we are currently
    working on. If there are events that are not part of this active tracker
    yet, they can be passed as part of `unconfirmed`. They will be appended
    to the currently active conversation.
Create a plot of the trackers of the passed sender ids.
This assumes that the last sender id is the conversation we are currently
working on. If there are events that are not part of this active tracker
yet, they can be passed as part of `unconfirmed`. They will be appended
to the currently active conversation.
Create a plot of the trackers of the passed sender ids . This assumes that the last sender id is the conversation we are currently working on . If there are events that are not part of this active tracker yet they can be passed as part of ` unconfirmed ` . They will be appended to the currently active conversation .
async def _plot_trackers(sender_ids: List[Union[Text, List[Event]]],
                         output_file: Optional[Text],
                         endpoint: EndpointConfig,
                         unconfirmed: Optional[List[Event]] = None
                         ):
    if not output_file or not sender_ids:
        return None
    event_sequences = await _fetch_events(sender_ids, endpoint)
    if unconfirmed:
        event_sequences[-1].extend(unconfirmed)
    graph = await visualize_neighborhood(event_sequences[-1],
                                         event_sequences,
                                         output_file=None,
                                         max_history=2)
    from networkx.drawing.nx_pydot import write_dot
    write_dot(graph, output_file)
async def _plot_trackers ( sender_ids : List [ Union [ Text , List [ Event ] ] ] , output_file : Optional [ Text ] , endpoint : EndpointConfig , unconfirmed : Optional [ List [ Event ] ] = None ) : if not output_file or not sender_ids : return None event_sequences = await _fetch_events ( sender_ids , endpoint ) if unconfirmed : event_sequences [ - 1 ] . extend ( unconfirmed ) graph = await visualize_neighborhood ( event_sequences [ - 1 ] , event_sequences , output_file = None , max_history = 2 ) from networkx . drawing . nx_pydot import write_dot write_dot ( graph , output_file )
Create a plot of the trackers of the passed sender ids.
Create a plot of the trackers of the passed sender ids .
"""Create a plot of the trackers of the passed sender ids.

    This assumes that the last sender id is the conversation we are currently
    working on. If there are events that are not part of this active tracker
    yet, they can be passed as part of `unconfirmed`. They will be appended
    to the currently active conversation.""" # if there is no output file provided, we are going to skip plotting # same happens if there are no sender ids
sender_ids
List[Union[Text, List[Event]]]
output_file
Optional[Text]
endpoint
EndpointConfig
unconfirmed
Optional[List[Event]]