| Prev | Next | Start of Chapter | End of Chapter | Contents | Index | (17 out of 18)

Data Set Plot


The Data Set Plot block lets you display charts of the data stored in the Data Set attached to its action link.

Configuring

When you choose configure from the block's menu, and you have attached a Data Set to its action link, the block displays the configuration panel below.


The following headings describe how to interact with the configuration panel.

Choosing What to Display

To specify what data from the Data Set is displayed on the chart, specify one of these options for X Axis and Y Axis:

Option Description
Inputs
The input values
Targets
The target values for neural network training
Predictions
The predictions of a neural network
Time Stamps
The time the sample was received
Rows
The row number for this sample

If the data set has more than one column of data for the option you selected, enter the number for the column you want displayed in the field under the options.

Choosing How to Display the Data

To specify how the data is displayed, use the options on the right of the dialog. Choose the type of chart from the options listed under Chart Style. You can choose a line, scatter, or column chart, as shown below.


To put a marker on each point in a data series, choose one of the options listed under Indicator. If the Chart Style is Line, you can choose any of these options. If the Chart Style is Scatter, the option None is not available. If the Chart Style is Column, only the option Column is available. The chart below shows you what the indicators look like.

Option Icon
Square

Rectangle

Triangle

Cross

X

Bar
See below
Column
See below
None
Points are unmarked

The bar and column indicators are a little different from the rest. They draw a line from the point to an axis. A bar goes to the Y axis, and a column goes to the X axis, as shown below.


To choose a color for the data series, use the Color list. It contains all the available G2 colors. You can scroll through the list by using the scroll bar on the left. The names of the unselected colors are black. When you select a color, its name becomes white.

Choosing Where to Display the Data

To specify the chart to display the data on, enter the chart's name in the attribute Chart Name.

If you enter G2 as the chart name, the Data Set Plot block creates a subworkspace for itself and places a chart on that workspace, as shown below. To hide the subworkspace, click the Hide Plot button.


Creating and Deleting Data Series

Sometimes you might want to display more than one view of your data on a single chart. For example, you might want to plot a view of the inputs versus the targets, and a view of the inputs versus the predictions. Each of these views is called a data series. The second line from the top of the dialog displays which data series you are editing and how many data series there are for this data set. (For example, if the second line reads "Data Series 2 of 3," there are three data series and you are editing the second.) The buttons in the lower left corner of the dialog let you create, delete, and move between data series.

By default, the Data Set Plot block has only one data series. To create a new data series, click the New Data Series button. The dialog changes the settings of the options to their defaults. To delete the currently displayed data series, click the Delete Data Series button.

To move between data series, use the Next>> and <<Prev buttons. When you go to a data series, the dialog changes the settings of the options to the series' settings.

Making Values Permanent

When you choose make permanent from the block's menu, the block saves the data set.

Example

In the diagram below, the Data Set Plot block graphs the progress of the Fit Test block. The Data Set Plot block has two data series: one to show the target values and one to show the neural net's predictions. In the first data series, the X Axis is inputs, the Y Axis is predictions, the Chart Style is Line, and the Indicator is None. In the second data series, the X Axis is inputs, the Y Axis is Targets, the Chart Style is Scatter, and the Indicator is Square.


See Also

For more information on how to use this block, see the pages below.

Click here for more information...
Basic Block Behavior
Saving a Block's Data After Resetting G2
Plotting Data

| Prev | Next | Start of Chapter | End of Chapter | Contents | Index | (17 out of 18)

Copyright © 1996, Gensym Corporation, Inc.