IBM DB2 Intelligent Miner Visualization

Using the Intelligent Miner Visualizers

Version 8.2
SH12-6737-01
Note!:
Before using this information and the product it supports, be sure to read the general information under Appendix C. Notices.
Second Edition, August 2004

This edition applies to Version 8.2 of IBM DB2 Intelligent Miner Visualization, product number 5765-F33, and to all subsequent releases and modifications until otherwise indicated in new editions.

This edition replaces SH-6737-00.

Copyright International Business Machines Corporation 2001, 2004. All rights reserved.
US Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

Contents

Figures
Tables
About this book
Who should read this book
Conventions and terminology used in this book
Conventions
Terminology
Prerequisite and related information
How to send your comments
What is new in version 8.2 of IM Visualization
Introducing the Intelligent Miner products
IBM DB2 Intelligent Miner Scoring
IBM DB2 Intelligent Miner Modeling
IBM DB2 Intelligent Miner Visualization
IBM DB2 Intelligent Miner for Data
Introducing the Intelligent Miner Visualizers
The Intelligent Miner Visualizer framework
The Graphical user interface
Menu bar choices
Property concepts
Starting the Intelligent Miner Visualizers
Starting the Intelligent Miner Visualizers on Windows operating systems
Starting the Intelligent Miner Visualizers on UNIX operating systems
Introducing the IM Associations Visualizer
The characteristics of an associations rule
The Rules View
Fanning in and fanning out
Filtering records
Deleting records
Finding text
Hiding rules from the view
Showing rules or item sets
The Item Sets View
The Graph View
Coloring rules and item sets
Rule labels
Anti-aliased display
Exporting graphs
Highlighting objects step by step
Modifying the graph
Zooming
The Statistics View
Global statistics
Visible statistics
Associations properties
Introducing the Clustering Visualizer
The Graphics View
Selecting clusters
Renaming clusters
Hiding and showing clusters
Specifying chart types
Fitting fields or clusters in window
Zooming
Navigating through modified views
Printing report
The Text View
Editing cluster characteristics
Details View
Overall Model Quality
Cluster Statistics
Details for Clusters
Details for Fields
Frequencies for Fields
Clustering properties
Introducing the Classification Visualizer
The Predicted Classes View
Selecting charts
Selecting table rows
Fitting selected chart to window size
Zooming
The Details View
Partition Statistics
Details for Partitions
Details for Fields
Frequencies for Fields
The Quality View
Overall Model Quality
Quality Details
The Confusion Matrix View
The Gains/Lift View
The Chart section
The Chart Data section
Modifying the Gains/Lift View
Example
The Tree View
Changing the sequence of columns
Collapsing or expanding nodes
Pruning
Selecting nodes
The Tree Navigator View
Selected node details
Decision path
Tree Node Distribution View
The Field Importance View
The Field Importance Chart
The Field Importance Table and the Field Correlation Table
Classification properties
Introducing the Regression Visualizer
The Quality View
Overall Model Quality
Quality Details
Gains/Lift View
The Chart section
The Chart Data section
Modifying the Gains/Lift View
Example
The Field Importance View
The Field Importance Chart
The Field Importance Table and the Field Correlation Table
Regression properties
Properties
Properties common to all visualizers
General
Print Options
Associations properties
Rules
Rules Columns
Rules Sort
Item Sets
Item Sets Columns
Item Sets Sort
Show Rules
Properties specific to clustering, classification, and regression
Charts
Charts Properties
Color Coding
Properties specific to classification and regression
Gains/Lift
Properties specific to the Clustering Visualizer
General
Sorting
Working with databases
Creating database profiles
Opening models
Saving models
Performing common tasks
Cloning windows
Closing windows
Collapsing and expanding sections
Copying
Displaying help information
Displaying product information
Editing
Exporting views
Hiding GUI components
Opening models
Saving models
Modifying table columns
Printing
Sorting table rows
Splitting windows
Using the Intelligent Miner Visualization Applet
Introducing the Intelligent Miner Visualization Applet
Hardware and software requirements
Preparing the Web server
Copying the visualizer libraries to the Web server
Including the Intelligent Miner Visualization Applet in HTML documents
Using Netscape or Internet Explorer
Performance considerations
Appendix A. Accessibility
Colors and patterns
Classification Visualizer and Clustering Visualizer
Associations Visualizer
Keyboard shortcuts
Opening menus
Navigating in views
Keyboard shortcuts in tables
Keyboard shortcuts for specific controls
Navigating in the Graph View of the Associations Visualizer
Large fonts on black or white background
Appendix B. Menu bar choices
File menu
Edit menu
Selected menu
View menu
Help menu
Appendix C. Notices
Trademarks
Glossary
Bibliography
IBM DB2 Intelligent Miner publications
Related information
IBM Web sites
Other Web sites
Index

Figures

  1. Main features of the Intelligent Miner Visualizer framework
  2. Direct and indirect relationships of rules
  3. The Rules View of the Associations Visualizer
  4. The Filter Records dialog
  5. The Rules View displaying visible and hidden rules
  6. The Item Sets View of the Associations Visualizer
  7. The Graph View of the Associations Visualizer
  8. The Statistics View of the Associations Visualizer
  9. The Graphics View of the Clustering Visualizer
  10. The field Marital Status fitted to window size
  11. The Text View of the Clustering Visualizer
  12. The Details View of the Clustering Visualizer
  13. The Predicted Classes View of the Classification Visualizer
  14. The Details View of the Classification Visualizer
  15. The Quality View
  16. The Confusion Matrix View of the Classification Visualizer
  17. The Gains Chart in the Chart section of the Gains/Lift View
  18. The Lift Chart in the Chart section of the Gains/Lift View
  19. The Cumulative Lift Chart with cumulative lift factors
  20. The Chart Data section of the Gains/Lift View
  21. Another model added to the Gains Chart
  22. The Tree View of the Classification Visualizer
  23. The Tree Navigator View of the Classification Visualizer
  24. The Tree Node Distribution View of the Classification Visualizer
  25. The Field Importance Chart in the Field Importance View
  26. The Field Importance Table and the Field Correlation Table of the Classification Visualizer
  27. The Quality View
  28. The Gains Chart in the Chart section of the Gains/Lift View
  29. The Lift Chart in the Chart section of the Lift / Gains View
  30. The Cumulative Lift Chart with cumulative lift factors
  31. The Chart Data section of the Gains/Lift View
  32. Adding another model to the current model
  33. Looking up the value in the new model that corresponds to 29,22% in the % Records column
  34. The Field Importance Chart in the Field Importance View
  35. The Field Importance Table and the Field Correlation Table of the Regression Visualizer
  36. The Rules Sort page of the Properties notebook
  37. Outliers in a histogram
  38. Overriding the generic selection of the chart type on the Charts page of the Model Properties notebook
  39. The categorical field Marital Status displayed as table
  40. The scientific interval label type in the chart preview
  41. The Color Coding page of the Properties notebook
  42. The Gains/Lift page in the Properties notebook
  43. The Add New Database Profile dialog
  44. The Database page of the Open a New Model window
  45. The Database page of the Save Model window
  46. The complete Intelligent Miner Visualizers embedded in an HTML document
  47. A push button embedded in an HTML document

Tables

  1. Formatting conventions used in this book
  2. Terms and acronyms used in this book
  3. PMML model types
  4. Example of the information in a status bar
  5. Parameters for using the default settings from IM Modeling
  6. Required parameters for using a profile
  7. Optional parameters
  8. Overview of the properties of the different visualizers
  9. Optional parameters to open the entire visualizer as applet
  10. Optional parameters to open a particular view as applet
  11. Required parameters to open a model in a database
  12. Opening menus
  13. Navigating in views
  14. Keyboard shortcuts in tables
  15. Keyboard shortcuts for specific controls
  16. Navigating in the Graph View of the Associations Visualizer
  17. File menu
  18. Edit menu
  19. Selected menu
  20. View menu
  21. Help menu

About this book

The IBM(R) DB2(R) Intelligent Miner(TM) Visualizers, referred to as the Intelligent Miner Visualizers in this book, present data modeling results for analysis. The input to the visualizers are PMML-conforming mining models. You can call the Intelligent Miner Visualizers independently from different applications to present model results, or you can deploy the visualizers as applets in a Web browser for ready dissemination.

The Intelligent Miner Visualizers include the following visualizers:

This book describes the different views provided by the Intelligent Miner Visualizers, how to interpret the results, and how to work with the results. It also explains how to install the Intelligent Miner Visualizers on your system.

This book does not contain information about the mining functions that produce the results that you can view with the Intelligent Miner Visualizers. See Intelligent Miner for Data: Using the Intelligent Miner for Data or Intelligent Miner Modeling: Administration and Programming for more information about the mining functions.

Who should read this book

This book is intended for business, financial, and database analysts who want to analyze the data modeling results produced by the IBM DB2 Intelligent Miner for Data, IBM DB2 Intelligent Miner Modeling, or other data mining applications.

You should be familiar with the client and server operating systems that you are using. You should also know about database concepts and terminology. In addition, you should be familiar with data analysis and statistics.

If you want to use the Intelligent Miner Visualizers as Java(TM) applet in a browser, you should know the Hyper Text Markup Language (HTML) and how to use applets.

Conventions and terminology used in this book

To make reading easy, conventions such as bold font type or acronyms for common terms are used in this book. These conventions and acronyms are summarized in this chapter.

Conventions

The following table shows the formatting conventions used in this book.

Table 1. Formatting conventions used in this book
Element type Convention Example of how it is used
Interface elements, for example, menu names and choices, buttons, and labels Bold Select File => Save to save the model. Click OK.
New terms in text Italic Item sets in the rule body.
Examples and code examples Monospace Type jdbc://db2://test/MODELS in the entry field.
Emphasis on a particular word Italic This applies to all models.
References to different chapters Quotation marks opened and closed See Performing common tasks for more information.

Terminology

The following table shows terms and acronyms used in this book.

Table 2. Terms and acronyms used in this book
Term or acronym Meaning
API Application Programming Interface
CSV Comma separated values
GIF Graphic interchange format (file extension)
GUI Graphical user interface
HTML Hyper Text Markup Language
JDBC Java database connectivity
JRE Java runtime environment
IM Modeling Intelligent Miner Modeling
IM Scoring Intelligent Miner Scoring
PMML Predictive Modeling Markup Language
Properties notebook Properties notebook is used generically for both, the Model Properties notebook and the Visualizer Properties notebook.
RAM Random access memory
RBF Radial basis function
SQL Structured query language
UDF User-defined function
UDM User-defined method
URL Uniform resource locator
XML Extensible Markup Language

Prerequisite and related information

For information on the hardware and software prerequisites, see Installing the Intelligent Miner products.

For a list of related publications, see Bibliography.

How to send your comments

Your feedback is important in helping to provide the most accurate and high-quality information. If you have any comments about this book or any other Intelligent Miner Visualizers documentation:

What is new in version 8.2 of IM Visualization

With version 8.2 of the IM Visualization, the Regression Visualizer is introduced. See Introducing the Regression Visualizer.

The following views are new in the Classification Visualizer:

There are also new properties for the Gains/Lift View. See Gains/Lift.

Introducing the Intelligent Miner products

The IBM DB2 Intelligent Miner Version 8.2 is a set of the following products:

These products support rapid enablement of Intelligent Miner analytics embedded in Business Intelligence (BI), e-commerce, or traditional OLTP application programs.

PMML is a standard format for data mining models. Based on the Extensible Markup Language (XML), PMML provides a standard that enables data mining models to be shared between the applications of different vendors. The intention is to provide a vendor-independent method of defining models. In this way, proprietary issues and incompatibilities are no longer a barrier to the exchange of models between applications.

You can find more information about PMML Version 2.1 on the Web site of the Data Mining Group (DMG). This site also provides a link to information about previous PMML Versions. References to PMML in this book refer to PMML Version 2.1.

IBM DB2 Intelligent Miner Scoring

IM Scoring provides scoring technology as database extenders, DB2 extenders, and Oracle cartridges. It enables application programs to apply PMML models to large databases, subsets of databases, or single rows or cases. Application programs use the SQL API that consists of user-defined functions (UDFs) and user-defined methods (UDMs) to perform the scoring operation. The PMML models might have been created by one of the Intelligent Miner products or by other applications and tools that support interoperability via PMML models.

The following table shows the different PMML models that can be applied by different mining functions.

Table 3. PMML model types
PMML model type Mining algorithm
Center-based clustering Neural Clustering algorithm
Distribution-based clustering Demographic Clustering algorithm
Neural networks Neural Classification algorithm, Neural Prediction algorithm
Decision tree Tree Classification algorithm
Regression Logistic Regression algorithm, Polynomial Regression algorithm, ProbeE algorithm

Additionally, IM Scoring supports models that are built by the RBF Prediction algorithm of the Intelligent Miner for Data. These models are not yet part of PMML. You can export these models in XML format from the Intelligent Miner for Data and use them with IM Scoring.

Mining models that are applied by the SQL API of IM Scoring must be contained in database tables.

If the mining models are created by using IM Modeling, they can be directly applied because IM Modeling writes the models into database tables.

If the mining models are created by using the Intelligent Miner for Data, they must be exported from the Intelligent Miner for Data and imported into database tables. IM Scoring provides UDFs to import the models.

You can also apply PMML Version 2.1 models or models of any previous PMML version that are created with tools from different vendors.

IM Scoring provides a feature called Single Record Scorer. The Single Record Scorer consists of a Java API. You can use this feature to score single or multiple data records against a mining model that is contained in a flat file. The Single Record Scorer is designed for applications where online-scoring of data records is the main task.

IBM DB2 Intelligent Miner Modeling

IM Modeling provides modeling technology as DB2 extenders. It enables SQL application programs to call associations discovery, clustering, and classification operations to develop analytic models based on data accessed by DB2 Universal Database(TM) Version 7 or Version 8 SQL. The resulting models are in PMML Version 2.1 format. They can be processed by IM Scoring or IM Visualization.

IM Modeling consists of an SQL API. By using this SQL API, you can build Associations, Demographic Clustering, and Tree Classification PMML Version 2.1 models that are stored in DB2 tables.

The data mining functions are based on the mining functions included in the Intelligent Miner for Data.

IBM DB2 Intelligent Miner Visualization

IM Visualization provides the following Java visualizers to present data modeling results for analysis:

You can use the Intelligent Miner Visualizers to visualize PMML-conforming mining models. Applications can call these visualizers to present model results, or you can deploy the visualizers as applets in a Web browser for ready dissemination. The models might have been developed by using IM Modeling or other applications and tools that support interoperability via PMML models, or models of the Intelligent Miner for Data might have been exported as PMML models.

IBM DB2 Intelligent Miner for Data

The Intelligent Miner for Data Version 8.1 is an independent product that provides the following mining functions to build and apply mining models based on database or flat file data:

Version 8 of the Intelligent Miner for Data includes the Intelligent Miner Visualizers. It also includes the PMML conversion component of IM Scoring that allows you to export mining models in PMML format.

Introducing the Intelligent Miner Visualizers

This chapter introduces the Intelligent Miner Visualizers. It describes the Intelligent Miner Visualizer framework and summarizes the tasks that are common to each of the visualizers.

The Intelligent Miner Visualizers can show the following models:

The Intelligent Miner Visualizer framework

The Intelligent Miner Visualizers include the following visualizers:

Each visualizer can show the same model in different views. Each of these views contains information that is not available or difficult to represent in another view. The views are synchronized. That means that when you hide items in one view, they are also hidden in the other views.

The Intelligent Miner Visualizer framework provides features and tasks that are common to all visualizers. For example, the different views of the individual visualizers are implemented as tabs. You can easily switch to a different view by clicking on a different tab.

In Figure 1 you can see some of the main features of the Intelligent Miner Visualizer framework.

Figure 1. Main features of the Intelligent Miner Visualizer framework
In this graphic, you can see some of the main features of the Intelligent Miner Visualizer framework. These are, for example, the menu bar, the tool bar, the split bar, the legend, or the status bar.

You can split the view vertically to browse two different views simultaneously. You can hide items in a table and browse the visible items and the hidden items simultaneously.

Figure 1 shows a vertically split window. You can see the Graph View and the Rules View of the Associations Visualizer simultaneously. Figure 1 also shows the horizontally split view of the Graph View with the visible and the hidden rules.

For more information, see Performing common tasks.

The Graphical user interface

Most of the different views of the Intelligent Miner Visualizers have the following graphical user interface (GUI) components:

Legend
Some of the views use colors, icons, or labels to visualize the results. In these views, a legend at the bottom of the visualizer page explains how to interpret the results.
Status bar
Some of the views provide textual information in a status bar. For example, in the Tree View of the Classification Visualizer, the following information might be displayed in the status bar:

Table 4. Example of the information in a status bar
11 nodes in the tree, 3 nodes are pruned Current selected node's level is 3

In the first part, information about the model is displayed. In the second part, information about any changes you did to the current view is displayed.

Tool bar
Every view provides a specific tool bar that offers short cuts to the most important features of the view.

If you do not want to use the GUI components, you can hide them by deselecting the appropriate component, for example, tool bar, on the View menu.

Most of the views of the Intelligent Miner Visualizers offer the following commonly used menu bar choices:

See Appendix B. Menu bar choices for detailed information about the commonly used menu bar choices.

Some of the views might contain visualizer-specific menu bar choices. These menu bar choices are not covered in Appendix B. Menu bar choices. They are described in the help information of the appropriate views.

Property concepts

Properties include additional information that is used by the Intelligent Miner Visualizers to visualize a model. The Intelligent Miner Visualizers use two different kinds of properties. Model properties control how to visualize a specific model, while Visualizer properties apply to all models of the same type. If a property is set as Model property and as Visualizer property, the setting specified as Model property is used.

The Intelligent Miner Visualizers use default settings. For example, colors are used to highlight particular properties of associations rules, clusters, and partitions, or clusters are ordered by their size. You can change the default settings by modifying the appropriate parameters in the following properties notebooks:

Model properties
Model properties override visualizer properties.

If you change the model properties, the changes apply to the current model only.

For example, you might want to sort the clusters of the current model by their homogeneity values instead of their size values.

Visualizer properties
If you change the visualizer properties, the changes apply to all models of the same type.

For example, you might want to specify that all models that you are viewing in the Associations Visualizer use the same color for rules.

Data mining models can have the following formats:

IM Modeling format

IM Modeling produces the IM Modeling format. This format is only available if you save a model that was built by IM Modeling. You can save this format only in a database.

You can use the IM Modeling format to modify models that are stored in Intelligent Miner tables. You need not export or import the model before you can modify it.

In the IM Modeling format, the model properties are saved with the model.

PMML format (.pmml or .xml)

The PMML format is a standardized format. You can use it with different mining tools from other vendors.

Although the data can be compressed, it can be up to 10 times larger than the compressed visualizer format.

The properties are not stored within the models because this does not correspond to the PMML standard.

Visualizer format (.vis)

You can save models that are originally in IM Modeling format or in PMML format in Visualizer format. However, you can use the Visualizer format only with the Intelligent Miner Visualizers.

In the visualizer format, the data is compressed.

The model properties are saved in the same file.

If you use the IM Modeling format or the Visualizer format, you can save the model properties together with the associated model. If you display a different model, the default properties are used for this model, unless you have previously specified specific model or visualizer properties.

The term Properties notebook is used in this book generically for both, the Model Properties notebook and the Visualizer Properties notebook.

For information about the properties of the individual visualizers, see Properties.

Starting the Intelligent Miner Visualizers

When you start the Intelligent Miner Visualizers, the Open a New Model window is displayed. You can open a model in your local file system or in a database.

Starting the Intelligent Miner Visualizers on Windows operating systems

To start the Intelligent Miner Visualizers on a Windows(R) operating system, you can do one of the following actions:

If you want to start the Intelligent Miner Visualizers by specifying required or optional parameters, you can also use the command line interface as described in Starting the Intelligent Miner Visualizers on UNIX operating systems. See Required parameters for required parameters and Optional parameters to start the Intelligent Miner Visualizers for optional parameters.

Starting the Intelligent Miner Visualizers on UNIX operating systems

To start the Intelligent Miner Visualizers on AIX(R) operating systems, type the following command on the command line interface:

/usr/opt/IMVisualization/V8.2/bin/imvisualizer

To start the Intelligent Miner Visualizers on the Linux operating system or in the Sun Solaris operating environment, type the following command on the command line interface:

/opt/IMVisualization/bin/imvisualizer

The Open a New Model window is displayed.

You can also start the Intelligent Miner Visualizers by typing the following command if you add the appropriate directory to your PATH environment variable:

 imvisualizer

Required parameters

If you do not want to specify the required parameters on the Local File System page or on the Database page of the Open a New Model window, you can call the Intelligent Miner Visualizers directly by adding the required parameters to the start command on a command line interface. You can use one of the following options:

Using defaults from IM Modeling
If you want to use the default settings from IM Modeling, the complete command might look like this:

imvisualizer 
   -dbname <database name> 
   -dbhostname <host name>
   -dbportnumber <port number>
   -dbuserid <user ID>
   -dbpassword <password> <primary_key> 
Using a profile

If you want to use a profile, the complete command might look like this:

imvisualizer 
	-dburl jdbc:db2://test:50000/MODELING 
	-dbdriver com.ibm.db2.jcc.DB2Driver 
	-dbuserid db2inst1 
	-dbpassword accessDB2_1 
	-dbtablename TABLE1 
	-dbprimarykeycol PRIMARY_KEY 
	-dbdatacol MODELCOL 
	-dbpropcol PROPERTIESCOL PRIMARY_KEY

Note that the values for the following parameters are case sensitive:

You can type these parameters in any sequence, however, the primary key must always be the last parameter that you specify.

After you have issued the start command on the command line interface, the model that you specified is displayed in the appropriate visualizer.

The following tables give an overview of the parameters to start the Intelligent Miner Visualizers.

Table 5. Parameters for using the default settings from IM Modeling
Command Action Comments
-dbname database name The name of the database that you want to connect to. -
-dbhostname host name The name of the host that you want to use. The default host name is localhost.
-dbportnumber port number The name of the port that you want to use. The default port number is 50 000.
-dbuserid user ID Required user ID to access the database. If you do not specify a user ID, a log on dialog is displayed.
-dbpassword password Required password to access the database. If you do not specify a user ID, a log on dialog is displayed.

Table 6. Required parameters for using a profile
Command Action
-dbprofile profile name The name of a database profile that you have previously created.
-dbpassword password Required password to access the database.
-dburl URL The URL where the model resides.
-dbdriver driver The database driver that you want to use.
-dbuserid user ID Required user ID to access the database.
-dbtablename table name The name of the table that contains models.
-dbprimarykeycol key column The column that contains the key of the table.
-dbdatacol model column The column that contains the model that you want to use.
-dbpropcol properties column The column that contains the properties.

Optional parameters to start the Intelligent Miner Visualizers

You can also add optional parameters to the start command. For example, you might want to start the Intelligent Miner Visualizers without splash screen, or you might want to reset the visualizer properties to their original settings. The following table gives an overview of optional parameters and their actions.

Table 7. Optional parameters
Command Action
-locale locale_code Forces the visualizer to use a specific locale by ignoring the locale stored in the Visualizer properties.

The locale code has the form la_CO, where:

  • la is the lowercase two-letter code of the language to use as defined by ISO-639
  • CO is the optional uppercase two-letter code of the country as defined by ISO-3166

See Installing the Intelligent Miner products for a list of locale codes.

-nosplash Starts the Intelligent Miner Visualizers without splash screen.
-version Returns the version number of the Intelligent Miner Visualizers.
-fullversion Returns extensive information about the visualizer. Version number, more information about the product, and the operating system that is running is displayed in the text console.
-reset Resets the visualizer properties to its original settings.
-cp:a classpath Appends the string to the current visualizer classpath.
-cp:p classpath Prepends the string to the current visualizer classpath.
-h -help -? Displays help information.
-javahome path Specifies the JRE root directory.
UNIX(R) operating systems: -J option Windows operating systems: -Joption Passes options to the Java Virtual Machine (JVM).

Calling database profiles

If you have previously created a database profile, you can also start the Intelligent Miner Visualizers by calling a database profile. See Creating database profiles for more information.

To call the database profile, you must specify the profile name, the password, and the primary key. The primary key must be specified to identify the model that you want to use in the database table. The primary key can be a number or the model name.

To start the Intelligent Miner Visualizers by calling a database profile, type, for example, the following command on the command line interface:

imvisualizer -dbprofile PROFILENAME -dbpassword PASSWORD PRIMARY_KEY

Introducing the IM Associations Visualizer

This chapter describes the different views of the Associations Visualizer. It explains the concepts and the tasks that you can do in the various views.

The Associations Visualizer provides the following views to represent associations rules:

The tasks that are specific to these views are described in the following sections.

In all views of the Associations Visualizer, you can perform the common tasks of the Intelligent Miner Visualizer framework. For more information, see Performing common tasks.

With the Associations Visualizer, you can show models that are created by the following sources:

The characteristics of an associations rule

An associations rule consists of a set of items, the rule body, leading to another item, the rule head. The associations rule relates the rule body with the rule head. An associations rule can contain the following characteristics:

In the following example, swimsuits and beach towels represent the rule body. Sun glasses represent the rule head. The confidence and the support are measures of the reliability and the frequency of occurrence.

Example
[Swimsuits] + [Beach towels] ==> [Sun glasses] Support=24% Confidence=60% Lift=2.0 

The rule in the above example means that if customers buy swimsuits and beach towels, in 60% of the cases they also buy sun glasses. The combination swimsuits, beach towels, and sun glasses occurs in 24% of all transactions.

These are the characteristics of an associations rule:

Support
A transaction supports an associations rule if the transaction contains the rule body and the rule head. The rule support is the ratio of transactions supporting the associations rule and the total number of transactions within your database of transactions.

In the example above, there might be 24 transactions out of 100 transactions that support the associations rule. This means that 24 transactions out of 100 transactions contain at least the item swimsuits, beach towels, or sun glasses.

Absolute support
The absolute rule support is the number of transactions supporting the associations rule in your database of transactions.
Confidence
The confidence of an associations rule is its strength or reliability. The confidence is defined as the percentage of transactions supporting the rule out of all transactions supporting the rule body. A transaction supports the rule body if it contains all the items of the rule body.

In the above example, the confidence is 60%. This means that 60% of all transactions that contain swimsuits and beach towels also contain sun glasses.

Lift
The lift value of an associations rule is the factor by which the confidence exceeds the expected confidence. It is determined by dividing the confidence of the rule by the support of the rule head.

For example, if the associations rule [swimsuits] + [beach towels] => [sun glasses] has a lift factor of 2.0 swimsuits and beach towels have a very positive effect on buying sun glasses because a high lift factor indicates a strong association between items.

Subtractive lift
The subtractive lift is defined like this:
confidence * (lift - 1) / lift

The subtractive lift measure helps you to identify rules that might be important for you. It takes the confidence and the lift into account. If confidence and lift are high, the subtractive lift is also high.

In the Rules View, you can order the rules by the subtractive lift values.

Support multiplied by Confidence
The rule support multiplied by rule confidence measure helps you to identify rules that might be important for you. It takes the confidence value and the support value into account. If the confidence value and the support value are high, the measure rule support multiplied by rule confidence is also high.

In the Rules View, you can order the rules by the values for the rule support multiplied by rule confidence measure.

Rule group

Rule groups help you to distinguish sets of rules that do not have a direct or indirect relationship.

If two rules, for example, R1 and R2, share at least one item (regardless whether the item appears in the rule head or in the rule body), these rules are directly related (R1 ~ R2) and therefore belong to the same rule group.

The rule group of a given rule R1 consists of all rules in the model that are directly or indirectly related to R1. This means that a rule group contains all rules that are connected via a chain of directly related rules in the model.

Figure 2 illustrates the direct and the indirect relationship of rules. Each of the rules has a direct relationship to another rule because they contain the same item. For example, rule number 1 and rule number 2 contain the item L.

Rule number 2 and rule number 4 are not directly related because they do not contain the same item. However, they are indirectly related based on the direct relation ship of rule number 2 and rule number 3 (both contain the item D) and the direct relationship of rule number 3 and rule number 4 (both contain the item S).

For example, there might be a model that contains the following rules that include the items A, B, C, D, E, F, G, and H:

  1. [A] + [B] ==> [C]
  2. [D] ==> [E]
  3. [D] ==> [A]
  4. [F] ==> [G]
  5. [F] ==> [H]

The rules 1 and 2 belong to the same rule group because rule number 3 contains items that are included in rule number 1 and rule number 2.

The rules 4 and 5 belong to a different rule group because they are not linked to any item of rule number 1, rule number 2, or rule number 3.

Items that belong to rules in different rule groups are not typically contained in the same transaction. In a retail example this can be interpreted as not being sold together. Sorting the rules by rule group makes it easier to detect sets of items that are more commonly sold together.

The Rules View

The Rules View and the Graph View display the same data in different ways.

Figure 3. The Rules View of the Associations Visualizer
This graphic shows the Rules View. The Rules View shows associations rules and the item sets with various field values, for example, Support or Confidence.

The Rules View can display the rules in tabular or in textual form.

To display the rules in textual format, click View => Show Rules As => Text.

To display the rules in tabular format, click View => Show Rules As => Table.

Fanning in and fanning out

Fanning in means to display only those associations rules that include the selected rules or the selected item sets in the rule head.

Fanning out means to display only those associations rules that include the selected item sets or the selected rules in the rule body.

The item sets or rules that are not selected for fanning in or fanning out are added to the hidden table at the bottom of the Rules View and the Item Sets View. You cannot view the hidden item sets or rules in the Graph View.

Example

Assuming you have the following rule:

If customers buy swimsuits and beach towels, 
in 90% of the cases they also buy sun glasses.

To fan in or to fan out, you can do one of the following actions:

Filtering records

On the Filter Records dialog, you can specify filter rules to hide the records that correspond to the specified filter rule from the model.

You can specify filter rules to reduce the records of a model, so you can browse less associations rules in the viewers and get a quick overview. The rules that match the filter are added to a hidden table.

Applying filters to models does not change the models. It only hides the records that correspond to the specified filter rules from the current view.

You can use the following logical operators to specify the filter rules:

The logical operator that you selected applies to all filter rules.

Hints and tips

If you are satisfied with the result of the filtering and you are sure that you do not need the records that meet your filter condition, you can delete the records from the model by using the Delete Records dialog.

The Delete Records dialog and the Filter Records dialog preserve the latest filter condition that you used, so you can easily reuse your latest filter condition.

A filter rule consists of a field name, an operator, and a value as shown in Figure 4.

Figure 4. The Filter Records dialog
This graphic shows the Filter Records dialog. On this window, you can define filter rules. Filter rules consist of field name, an operator, and a value as shown in this graphic.

To specify one or more filter rules, follow these steps:

  1. On the menu bar of the visualizer, click View => Filter Records....
  2. On the Filter Records dialog, click in the Field Name read-only field and select a field name from the list, for example, Rule Head.
  3. Click in the Operator read-only field to select an operator from the list, for example, Equals.
  4. Click in the Value field and type the value that you want to use, for example, string.
  5. Click Add on the Filter Records dialog. You can add more filter rules by repeating step 2 to step 5.
  6. Select the operator that you want to use from the Logical Operator list, for example, Or.

Deleting records

On the Delete Records window, you can specify filtering rules to delete the records that correspond to the specified filtering rule in the current model.

You can delete records in the current model to reduce the size of the model and to improve the performance.

Hints and tips

When you save the model, the records that you specified to delete are lost. To keep the original model and the model with the reduced size, save the model by using a different name.

A filter rule consists of a field name, an operator, and a value.

You can use the following logical operators to complete the specification of the filter rules:

The logical operator that you selected applies to all filter rules.

To specify one or more filter rules, follow these steps:

  1. Click File => Delete Records... on the menu bar.
  2. On the Delete Records window, click in the Field Name read-only field and select a field name from the list, for example, Item Set - Support.
  3. Click in the Operator read-only field to select an operator from the list, for example, =.
  4. Click in the Value field and type the value that you want to use, for example, 80.
  5. Click Add on the Delete Records window. You can add more filter rules by repeating step 2 to step 5.
  6. If you have specified more than one filter rule, click the list button of the Logical operator read-only field and select the operator that you want to use, for example, And.
  7. Click OK to delete the records that correspond to the specified filter rules.

Finding text

On this window, you can search the entire model or specified columns for a particular text string.

You can type the string that you want to find in the Text to find entry field. The strings that you specified are added to the Text to find drop-down list, so you can select from this list the next time you want to search for a string.

The Search in column drop-down list contains the columns that are included in the views. You can specify the column that you want to search by selecting a column from this list. You can also search all columns of the current view by selecting All from this list.

You can specify whether you want to search case sensitive. You can search the visible table, the hidden table, or both. You can also specify whether you want to search for the specified strings only or for larger parts containing the specified string.

Depending on the current view, you can search rule by rule or item set by item set for the specified string, or you can specify to highlight all rules or item sets that include the specified string.

To search, for example, item set by item set for a support value of 60% in the Item Sets View, follow these steps:

  1. Click Edit => Find... on the menu bar of the visualizer.

    You can also use the keyboard shortcut Ctrl+F.

  2. Type 60% in the Text to find entry field.

    If you have searched for this support value before, you can also select it from the Text to find drop-down list.

  3. Select Support from the Search in column drop-down list.
  4. Select the appropriate check boxes to search in the visible and in the hidden list.
  5. Click Find.

    If the specified string is found, the item set that includes this string is highlighted in the visible and in the hidden table.

    If you want to highlight all item sets that include a support value of 60% in the visible and the hidden table simultaneously, you must click Find All.

  6. Select Edit => Find Next repeatedly to highlight the next item set that includes the specified string.

    You can also press F3 repeatedly to find the next item set with the specified text string.

    When all occurrences of 60% are highlighted, a message is displayed that the specified string cannot be found. If the visible table contains, for example, 3 item sets that include 60%, and the hidden table contains 6 item sets that include 60%, the message is only issued after the last item set in the hidden table is highlighted.

Hiding rules from the view

You can hide one or more rules from the current view. If you hide rules, the window is split horizontally. The hidden items are added to a hidden table at the bottom of the window. By dragging the split bar upward, you can browse the visible rules and the hidden rules simultaneously. Figure 5 shows the Rules View displaying visible rules and hidden rules.

Figure 5. The Rules View displaying visible and hidden rules
This graphic shows the Rules View displaying visible and hidden rules.

The table containing the hidden items does not use the coloring of the table containing the visible items.

To hide or show rules, you can do one of the following actions:

Showing rules or item sets

You can select item sets in the Item Sets View and in the Graph View, and browse the rules that contain the selected item sets in the Rules View. You can also select rules in the Rules View and in the Graph View, and browse the item sets that are contained in the selected rules in the Item Sets View.

In the Rules View and in the Item Sets View, the rules and the item sets that are not associated with the selected objects are hidden in a table at the bottom of the window.

In the Graph View, you can view only the item sets and the rules that are associated with the selected objects. The rules and the item sets that are not associated with the selected objects are not visible in the Graph View.

The Item Sets View

The Item Sets View shows associations rules including, for example, the following information:

You can specify the fields that you want to include in the Item Sets View in the Properties notebook. For example, you might want to include the columns Number of Rules, In Rules as Body, or In Rules as Head in the Item Sets View as shown in Figure 6.

Figure 6. The Item Sets View of the Associations Visualizer
This graphic shows the Item Sets View of the Associations Visualizer. It shows associations rules that include information such as Item Set, Support, or In Rules as Body.

The Item Sets View shows all item sets that are defined in a model. If you have included the following columns in the Item Sets View, you can see which of the item sets are not included at all in the associations rules:

You can also see which of the item sets are included how many times in an association rule as rule body or as rule head.

The item sets are sorted, for example, by the percentage of their support value. You can change the sorting criteria on the Item Sets Sort page of the Properties notebook.

Additionally, you can change the sort order of the item sets in the current view. You can sort the item sets in ascending or descending order by clicking one of the column headers. For example, the column Number of Rules might be sorted in ascending order. Clicking on the column header Number of Rules changes the ascending sort order to descending sort order. These changes apply only to the current view, they are not stored in the Properties notebook.

At the bottom of the window, the legend shows, for example, the support of the item sets on a scale from the highest to the lowest value in the appropriate color coding. Double-clicking the legend displays the appropriate page of the Model properties to change the color coding for the current model.

In the Item Sets View, you can do the same tasks that you can do in the Rules View. See The Rules View for more information.

The Graph View

The Graph View and the Rules View display the same data in different ways.

Figure 7. The Graph View of the Associations Visualizer
This graphic shows the Graph View of the Associations Visualizer. It displays a graph of the associations rules and the item sets. The item sets are displayed as nodes. The associations rules are displayed as arrows.

In the Graph View, the item sets are displayed as nodes and the associations rules as arrows. The arrows lead from item sets in the rule body to the item set in the rule head.

An associations rule is represented by two nodes that are connected with an arrow. The nodes represent the item sets. The arrows represent the association between these item sets. The arrow leads from the node that represents the item set of one transaction, the rule body, to the node that represents the items that are derived by the Associations mining function, the rule head.

Selecting an arrow means selecting a rule. Selecting a node means selecting an item set.

To select a subgraph, select an item set or a rule and click Edit => Select Subgraph.

Coloring rules and item sets

The color of the nodes and the color of the arrows represent the value of a particular parameter, for example, Support, or In Rules as Body.

At the bottom of the window, a legend for the rule color and for the item set color shows the correlation of the rules and the item sets from the highest to the lowest value in the appropriate color coding for the selected field value. For example, if you associated the rule color with support values, the color of the rules tells you the appropriate support value of this rule.

You can also assign a rule parameter to the width of the arrows, for example, Confidence.

A legend for the rule width shows the value of a selected field value. For example, if you associated the rule width with confidence values, the width of the rules tells you the rules' confidence value.

On the Rules page of the Properties notebook, you can specify the color for the rules, and assign a parameter to the rule width. On the Item Sets page of the Properties notebook, you can specify the color for the nodes.

Rule labels

You can specify to display labels next to each arrow and next to each node. For example, if a rule has a support value of 90%, and the rule width is used to represent the support value in the Graph View, the value of 90% is displayed next to the rule.

Rule labels are especially useful, if you do not use colors in your graph, or if you use printouts.

You can specify labels for rules on the Rules page of the Properties notebook, and labels for item sets on the Item Sets page of the Properties notebook. If you have specified rule labels, they are displayed by default.

To hide the rule labels from the Graph View, click View => Labels for Rules.

Anti-aliased display

By default, the associations rules in the Graph View are displayed anti-aliased. This means that the representation of the associations rules and the rule labels is sharper due to a higher resolution.

You can specify whether you want to display the rules anti-aliased. If you deselect the Anti-aliased Display option, you can improve the performance of the visualizer.

To deselect the Anti-aliased Display option, click View => Anti-aliased Display.

Exporting graphs

To export a graph or several parts of a graph, click File => Export.

On the Export Preview window, follow these steps:

Highlighting objects step by step

You can highlight objects in the graph step by step. This shows you easily the associations between the nodes and the arrows.

For example, if you select a node and click Edit => Select Step(s), all arrows associated with the selected node are highlighted. If you click Edit => Select Step(s) again, all nodes associated with the selected arrows are highlighted.

To highlight objects in the graph sequentially step by step, select a node or an arrow and click Edit => Select Step(s).

To remove the highlighting, click anywhere in the graph.

Modifying the graph

You can move the item sets within the graph to different positions to improve the view of the graph. After you have moved several item sets to different positions, you can let the visualizer arrange the entire graph or selected parts of the graph automatically.

If you have previously hidden rules or item sets, the graph arranges only the visible rules and item sets. If you want to arrange the entire graph including the hidden items, you must click View => Show All Objects before you click View => Arrange Entire Graph.

You can do one of the following actions to modify the graph:

Zooming

You can zoom in or zoom out the Graph View. When zooming in or zooming out, the width of the arrows and the size of the nodes do not change. However, the distance between the arrows and the nodes is increased when you zoom in and decreased when you zoom out.

To zoom in or out the current view, you can do one of the following actions:

You can also use the zoom tool for zooming. To use the zoom tool, follow these steps:

  1. Click View => Zoom Tool. After you selected the zoom tool, a reticle appears in the Graph View.
  2. Place the cursor in the upper left corner of the graph, hold the left mouse button, drag the cursor diagonally to the lower right corner of the graph, and release the left mouse button.
  3. To deselect the zoom tool, click View => Zoom Tool.

In the Graph View, you can also do tasks such as fanning in or fanning out, or filtering records. See The Rules View for more information.

The Statistics View

The Statistics View includes the Global Statistics section and the Statistics for Visible Objects section as shown in Figure 8.

Figure 8. The Statistics View of the Associations Visualizer
This graphic displays the Statistics View of the Associations Visualizer. It includes the Global Statistics section and the Statistics for Visible Objects section.

Global statistics

The Global Statistics section differentiates between item sets and single item sets. A single item set means that there is only one item in the item set.

Some of the item sets might not be used in the associations rules. These item sets do not have any association to different item sets.

Visible statistics

The Visible Statistics section shows you how many rules and item sets of the model are visible in the Associations Views.

If you have hidden rules or item sets, the amount of the visible rules or item sets is displayed. If you did not hide any rules or item sets, the total amount of rules and item sets contained in the model is shown.

Associations properties

Some of the properties are the same for all visualizers, for example, general properties or print options. Some properties are specific to a particular visualizer, for example, the rule properties are specific to the Associations Visualizer. Therefore all properties are described in a separate chapter. For more information, see Properties.

For more information about the general concepts of properties, see Property concepts.

For more information about the associations properties, see the appropriate chapter.

Introducing the Clustering Visualizer

This chapter describes the different views of the Clustering Visualizer and the tasks that you can do in the various views.

The Clustering Visualizer provides the following views to represent clusters:

With the Clustering Visualizer, you can show models that are created by the following sources:

The tasks that are specific to these views are described in the following sections.

In all views of the Clustering Visualizer, you can perform the common tasks of the Intelligent Miner Visualizer framework. For more information, see Performing common tasks.

The Graphics View

The Graphics View shows an overview of the relevant clusters, their size, and their fields as shown in Figure 9.

Figure 9. The Graphics View of the Clustering Visualizer
This graphic shows the Graphics View of the Clustering Visualizer. It shows an overview of the relevant clusters, their size, and their fields.

Each row in the table describes one cluster by showing how the field values are distributed for the records in this cluster.

The background color of a row represents a particular information of the corresponding cluster, for example, the size of a cluster. You can also specify the background color to represent the average values of a specific field, or aggregations of all record values in the class of a specific field. You can specify the background color and the sorting criteria on the Color Coding page of the Properties notebook.

In Figure 9, the clusters are sorted by size. The largest cluster is displayed on top of the window. The legend shows that the cluster colors are determined by their average salaries.

The field columns contain graphical representations of the fields of each cluster.

You can specify the sort order of the fields on the Sort page of the Visualizer Properties notebook. For example, you might want to display the fields alphabetically, or you might want to view the most representative fields first.

Selecting clusters

You can do one of the following actions to select clusters:

Renaming clusters

To rename a cluster, select the cluster and click Selected => Rename on the menu bar.

You can also right-click a cluster and select Rename from the pop-up menu.

Hiding and showing clusters

You can hide one or more clusters from the current view. If you hide clusters, the window is split horizontally. The hidden items are added to another table in the lower part of the window. The table containing the hidden items does not use the coloring of the table containing the visible items. See Figure 5 for a horizontally split window with visible and hidden items.

To hide or show one or more clusters, follow these steps:

Specifying chart types

You can specify the chart types of the fields. Categorical fields can be displayed as histograms, as pie-charts, or as tables. Continuous fields can be displayed as histograms or as tables.

For example, if you specify the chart type of the continuous field SALARY as table, all occurrences of the field SALARY in all clusters are displayed as tables.

To specify the chart type of a field, you can do one of the following actions:

Fitting fields or clusters in window

You can fit one or more fields of one or more clusters to window size to have a better view of this field.

If you fit one field to the window size, buttons labeled with the names of the fields next to this field are displayed at the upper left side and the upper right side of the window as shown in Figure 10. You can look at the next or the previous field in this cluster by clicking one of these buttons.

Figure 10. The field Marital Status fitted to window size
This graphic shows the field Marital Status fitted to window size.

For example, if you fit the field Marital Status to the window size, a button labeled Salary might be displayed at the upper left side of the window, and a button labeled Age might be displayed at the upper right side of the window. If you click on the button labeled Age, this field is displayed, and the button labels are modified accordingly. This way you can scroll through all fields of the cluster sequentially when they are fitted to the window size.

If you fit several fields of different clusters to window size, you can scroll the window to view all of the selected fields.

You can also fit one or more clusters to window size to have a better view of the fields contained in the selected clusters.

If you fit one cluster to window size, you can view the fields contained in this cluster by scrolling the window. You can also view the fields of the adjacent clusters by clicking the appropriate buttons at the top of the view.

If you fit more clusters to window size, you can view the fields of the selected clusters by scrolling the window.

To go back to the overview in the Graphics View, click the Back icon on the tool bar. You can also click View => Overview on the menu bar.

Zooming

You can increase or decrease the entire Graphics View or selected fields of the Graphics View.

To increase the Graphics View, you can do one of the following actions:

If you increase the view of the clusters, you might have to scroll the window to view all clusters or all fields.

To decrease the Graphics View, you can do one of the following actions:

You can navigate through the zoom factors to go back to the original view that is stored in the model.

You can do one of the following actions to navigate through previous zoom factors and individual fields previously fitted to the window size:

Printing report

You can print a report of the result. You can specify whether this report contains one or more of the following options:

You can specify the clusters and the fields that you want to include in the report. By default, all clusters and all fields are included in the report.

You can print the overview, the details for clusters, or the details for fields in textual format, in graphical format, or in both formats. The textual format includes common characteristics of the selected clusters and fields.

Before you print the report, you can preview your specification by clicking Print Preview. You can modify the orientation to landscape or portrait, or you can change the margin values by clicking Page Setup. You can also export the result to HTML format by clicking HTML Export....

To print a report of selected clusters and selected fields in graphical format, follow these steps:

  1. Select File => Print Report... to open the Print Report dialog.
  2. On the General page of the Print Report window, deselect the Print overview check box and select the Graphical check box in the Details for clusters group box and the Details for fields group box.
  3. On the Clusters page of the Print Report window, deselect the clusters that you do not want to include in your report.
  4. On the Fields page of the Print Report window, deselect the fields that you do not want to include in your report.
  5. Click Print to print the report.

The Text View

The Text View shows an overview of the relevant clusters, their size, and characteristics of their fields as shown in Figure 11. The fields in each cluster are highlighted by bold face font.

Figure 11. The Text View of the Clustering Visualizer
This graphic shows the Text View of the Clustering Visualizer.

Each row in the table describes one cluster by showing how the field values are distributed for the records in this cluster.

The background color of a row represents a particular information of the corresponding cluster, for example, the size of a cluster. You can also specify the background color to represent the average values of a specific field, or aggregations of all record values in the class of a specific field. You can specify the background color and the sorting criteria on the Color Coding page of the Properties notebook.

In Figure 11, the clusters are sorted by size. The largest cluster is displayed on top of the window. The legend shows that the cluster colors are determined by their average salaries.

For every relevant field, the name and the state is shown. The state depends on the following field types:

Categorical
A categorical string is displayed. For example, Marital_Status is predominantly m.

The state is determined by the most frequent field value in the cluster. For example, looking at cluster 5 in Figure 11, the contribution of the field MARITAL_STATUS to the cluster description is MARITAL_STATUS is predominantly s.

Continuous numerical
A value is mapped to low, medium, or high, or to the border numbers of the field specification. For example, Salary is medium.

The state is determined by the interval with the highest frequency, or by an interpretation (small, average, large) if the statistical information necessary for this interpretation is available. For example, looking at cluster 1 in Figure 11, the contribution of the field SALARY to the cluster description is SALARY is high.

Discrete numerical
The numeric value is displayed as a string. For example, Year_1st_Policy is predominantly 1991.

For categorical and discrete numerical values, the fields are described by their values having the highest frequency (modal value).

For continuous numerical fields, the fields are described by the intervals having the highest frequency, or by an interpretation (small, average, large) if the statistical information necessary for this interpretation is available.

Editing cluster characteristics

The text in the Characteristics column is generated by the system. It indicates the value of the most relevant fields for the corresponding cluster in the sequence of the most relevant clusters. Fields that are not relevant do not appear in the Characteristics column.

You can modify the text in the Characteristics column. You can also reset modified text in the Characteristics column to the text that was originally generated by the system.

To modify the description of a cluster, follow these steps:

  1. Select the cluster that you want to modify.
  2. Click Selected => Edit Cluster Characteristics.
  3. Modify the text in the Edit window and click OK.

    You can cut, copy, and paste text strings to modify the text in the Edit window. You can also use formatting features like, for example, left alignment or bold font type. Figure 11 shows the field names of the model in bold font.

    You can use these features by highlighting the text string that you want to change and clicking the appropriate icon on the tool bar of the Edit window.

You can also do one of the following actions to display the Edit window:

To reset modified text in the Characteristics column to the system-generated text, follow these steps:

  1. Double-click the Characteristics text that you want to reset to its original version.
  2. In the Edit window, click Reset and OK.

In the Text View, you can do the same tasks that you can do in the Graphics View. For more information, see The Graphics View.

Details View

The Details View provides tables in the following sections:

The scale in the Overall Model Quality section and the tables in the other sections summarize information about the clustering results to give you a quick overview.

Figure 12 shows the Details View with the following sections expanded:

Figure 12. The Details View of the Clustering Visualizer
This graphic shows the Details View. The sections Overall Model Quality and Frequencies for Fields are expanded.

Overall Model Quality

The Overall Model Quality section shows the overall model quality based on a scale ranging from 0 to 1.

The overall model quality is a measure for the homogeneity across all clusters.

Cluster Statistics

The Statistics table in the Cluster Statistics section gives a quick overview of the following information:

The Similarity Between Clusters table shows the similarity between the clusters. Each cluster is compared to all other clusters. The similarity value must be between 0.0 and 1.0.

If the field is not numeric, or if the information is not available in the statistics of the model, the following fields do not contain any values. This is denoted by the string n/a (not available).

Details for Clusters

In this section, you can view the following information per cluster:

If the field is not numeric, or if the information is not available in the statistics of the model, the following fields do not contain any values. This is denoted by the string n/a (not available).

You can specify to display absolute values or the percentage of the modal frequency.

To display the details for one of the clusters or for the total population in the Details for Clusters table, select the option that you want to use from the Cluster drop-down list.

To display absolute values or the percentage of the modal frequency in the Modal Frequency column, select or deselect the Show Frequencies in % check box.

Details for Fields

In this section, you can compare the following values of the fields between the clusters:

To show a different value category in the Details For Fields table, select a different value category from the Show drop-down list.

If you select Modal Frequency from the Show drop-down list, the Show Frequencies in % check box is displayed in the Details for Fields section.

To display absolute values or the percentage of the modal frequency in the Details for Fields table, select or deselect the Show Frequencies in % check box.

Frequencies for Fields

In this section, you can compare the frequencies of the individual fields that are contained in a cluster.

To display the frequencies of a field in the Frequencies for Fields table, click the field that you want to use in the Field list.

Clustering properties

Some of the properties are the same for all visualizers, for example, general properties or print options. Some properties are specific to a particular visualizer, for example, the rule properties are specific to the Associations Visualizer. Therefore all properties are described in a separate chapter. For more information, see Properties.

For more information about the general concepts of properties, see Property concepts.

For more information about the clustering properties, see the appropriate chapter.

Introducing the Classification Visualizer

This chapter describes the different views of the Classification Visualizer and the tasks that you can do in the various views.

You can create algorithm-independent models and tree classification models by specifying input data for the Classification mining function. You can view these models with the Classification Visualizer.

The Classification Visualizer provides the following views to represent generic classification models and models that are created by a decision tree algorithm.

When generic models are displayed, the following views indicate that information that is specific to decision tree algorithms is not available.

The Classification Visualizer provides the following views to represent test results. You can create test results by applying a model to test data.

With the Classification Visualizer, you can show models that are created by the following sources:

The tasks that are specific to the views of the Classification Visualizer are described in the following sections.

In all views of the Classification Visualizer, you can perform the common tasks of the visualizer framework. For more information, see Performing common tasks.

The Predicted Classes View

The Predicted Classes View shows the names of the predicted classes, the size of each class, and the distributions of field values for each class. Figure 13 shows an example of the Predicted Classes View.

Figure 13. The Predicted Classes View of the Classification Visualizer
This graphic shows the Predicted Classes View of the Classification Visualizer. It shows the names of the predicted classes, the size of each class, and the distributions of field values for each class.

In the graphs, the distribution of field values for a specific class is compared to the overall distribution. In pie-charts, the inner circle shows the distribution of field values in the classes. The outer circle shows the overall distribution of the field values.

The background color of a row represents a particular information of the corresponding class, for example, the size of a class. You can also specify the background color to represent the average values of a specific field, or aggregations of all record values in the class of a specific field.

The first part of the status bar displays information about the model, for example, 2 predicted classes in the model. The second part of the status bar displays information about the fields that is specific to the current view, for example, No fields selected.

Selecting charts

To select one or more charts, you can do one of the following actions:

Selecting table rows

To select one or more rows, you can do one of the following actions:

Fitting selected chart to window size

To fit one of the charts to window size, you can do one of the following actions:

To go back to the previous view, you can do one of the following actions:

Zooming

To increase the Predicted Classes View, you can do one of the following actions:

To decrease the Predicted Classes View, you can do one of the following actions:

To go back to the original view, you can choose between the following options:

The Details View

The Details View contains the following sections:

The tables in the sections of the Details View summarize information about the classification results to give you a quick overview. Figure 14 shows the Details View with the Partition Statistics section expanded.

Figure 14. The Details View of the Classification Visualizer
This graphic shows the Details View of the Classification Visualizer. The tables in the sections of the Details View summarize information about the classification results to give you a quick overview.

Partition Statistics

In the Partition Statistics section, the Statistics table gives a quick overview of each partition, its absolute size, and the percentage of the size.

Details for Partitions

In this section, you can view the following information of a partition:

You can also specify to display absolute values or the percentage of the modal frequencies by selecting or deselecting the appropriate check box.

To display the details for a particular partition in the Details for Partitions table, select a partition from the Partition.

Details for Fields

In this section, you can compare the modal values and the modal frequencies of the partitions by selecting one of these options from the Show list. By default, modal frequencies are displayed. If you select modal values, the Show Frequencies in % check box disappears.

To display modal values or modal frequencies in the Details For Fields section, select the values that you want to view from the Show list.

Frequencies for Fields

In this section, you can compare the frequencies of a specific field in all partitions.

To display the frequencies for a particular field in the Frequencies for Fields table, select a field from the Field list.

To display the percentage of the frequencies instead of absolute values, select the Show Frequencies in % check box.

The Quality View

The Quality View shows the overall model quality and detailed quality information in terms of accuracy, reliability, and the ability to sort the data.

The Quality View contains the following sections:

The required quality of a prediction model depends on the application for which you want to use it. Being significantly better than predicting the overall mean value might be a good result. This applies, for example, if you want to predict cross-selling opportunities.

You might think that the prediction quality should always be as good as possible. In general, this is true. However, sometimes the result might be too good. The reason for a result that is too good can be that there are causal dependencies between the target field and some input fields.

For example, you might want to predict the amount of claims for a new insurance customer. A high-quality model that is based on existing customer data might reveal that customers with a large number of accidents also have a large amount of claims. However, this model is not useful because the number of claims is not known at the time when the prediction must be made.

Overall Model Quality

The Overall Model Quality section shows the name of the data set that was used to build the model. It also shows whether the data set was used to train the model, or whether it was used for the validation or the testing of the model quality.

The scale in the Overall Model Quality section shows the overall quality of the model. The overall model quality is based on quality details in terms of accuracy, reliability, and the ability to sort the data.

The overall model quality compares the predictive performance of a model to a trivial model that randomly assigns one of the possible values to the target field according to their occurrences in the data set.

The overall model quality value depends not only on the model itself, but also on the validation data or the test data that was used. Even if the overall model quality value is high, it can only be assumed that model application produces high quality results if the application data is similar to the validation data or the test data that was used.

Quality Details

The Quality Details section shows the name of the target field. The target value for which the accuracy and the ranking quality are shown is also displayed.

You can select a different target value by clicking the list arrow and selecting a different value from the drop-down list.

The Quality Details section contains scales to measure the following quality details:

Accuracy
The accuracy quality measure indicates the probability that the prediction of the predicted class is correct. For example, an accuracy value of 0.8 means that 80% of the records for which the specified value is predicted are correctly classified. 20% of the records actually have a value that is different from the predicted value.
Ranking
The ranking quality measure indicates the capability of the model to order the records based on the probability that the prediction of the predicted class is correct.

The ranking quality is the relation between the area between the model curve and the random curve and the area between the optimum curve and the random curve in the Gains Chart. For more information about the Gains Chart, see The Gains/Lift View.

The ranking quality measure indicates how well a model is able to separate the data records with high target field values from data records with low target field values.

A negative ranking quality indicates that a model is worse than random. A frequent cause is a different encoding of target values for training data and test data. For example, for the target field RESPONSE, the target values YES and NO were mixed.

Reliability
The reliability quality measure indicates the capability of the model to predict unknown data. It also shows whether the model is overtrained.

The reliability quality measure indicates the consistency between a model's assessment of its own predictive accuracy and the actual prediction errors that are observed on a validation data set or a test data set.

Figure 15 shows the Quality View with the Overall Model Quality section and the Quality Details section expanded.

Figure 15. The Quality View. idmu0s30
This graphic shows the Quality View of the Classification Visualizer. The sections Overall Model Quality and Quality Details are expanded.

The Confusion Matrix View

The Confusion Matrix View includes the following sections:

In each section, the number of predicted classes, the number of correct classifications, and a confusion matrix is displayed. You can display the percentage of the absolute values in the confusion matrix tables by selecting the check box Show in percent.

Figure 16 shows an example of a confusion matrix.

Figure 16. The Confusion Matrix View of the Classification Visualizer
This graphic shows the Confusion Matrix View of the Classification Visualizer. The section Confusion matrix for training data is expanded.

In the model shown in Figure 16, the classes No and Yes are predicted. The correct classifications are indicated in bold font type.

You can read the confusion matrix horizontally and vertically.

Reading the table horizontally
There are 124 items classified into class NO:

There are 116 items in class YES:

Reading the table vertically
There are 103 items classified into class NO:

There are 137 items classified into class YES:

The Confusion Matrix is computed by the Classification mining function. It displays the distribution of the records in terms of their actual classes and their predicted classes. This indicates the quality of the current model. A model can contain two or more predicted classes.

Generated models can already contain pruned subtrees. The mining function calculates the confusion matrix and stores this information in the classification model. This confusion matrix is shown in the section Confusion matrix as found in the model.

The tree that is contained in tree classification models might contain nodes that are pruned by the mining function. You can unprune one or more of these nodes, or prune additional nodes in the Tree View or in the Tree Node Distribution View. This changes the tree classification model and the confusion matrix of this model. The confusion matrix in the section Confusion matrix as computed for the current prune level is updated according to the pruning actions that you perform in these views.

If you do not prune the tree in the Tree View or in the Tree Node Distribution View, the values in the tables of the sections Confusion matrix as found in the model and Confusion matrix as computed for the current prune level are the same.

You can copy and paste one or more rows of the confusion matrix table into a different application of your choice. You can also copy the text strings above the confusion matrix tables.

To copy one or more table rows of the confusion matrix, follow these steps:

  1. Click a row in the table, hold down the left mouse button, and drag the cursor to the next table rows.
  2. Select Edit => Copy.

    You can also use the keyboard shortcut Ctrl+C.

  3. Paste the copied information into the application of your choice.

The Gains/Lift View

The Gains/Lift View shows the ranking quality of classification models or regression models. With the Gains/Lift View, you can compare the quality of different classification models or regression models. The ranking quality indicates the capability of a model to correctly order records based on a predicted property. It helps you to measure the performance and the effectiveness of the models.

With the information that is provided by the Gains/Lift View, you can answer the following questions:

Checking the ranking quality of one model
What does the ranking quality of the model look like? Is the model curve closer to the random curve, or is it closer to the optimum curve?

The closer the model is to the optimum curve, the better is the ranking quality of the model. If the model curve is closer to the random curve, you might want to use a different model with a better ranking quality.

Comparing different models by using the same data set
Which model can best sort the data? How is the ranking quality of the models developing over time? Is the model still good enough for the purpose you want to use it, or do you need to replace it with a recent model?

If you collect data over time, and if you compare the same model, once based on the original data and once based on later test data, you can see how the ranking quality of the model develops over time. This is useful, in particular, to determine the point in time when the model has deteriorated too much and needs replacement by a more recent model.

All models that you want to compare must predict the same target field.

The models need not be created with the same active fields, however, typically they are created with the same active fields.

Comparing the same model by using different data sets
Does the model apply to all my geographies? Does the model apply to different location groups?

If the test data is based on different geographic data, you can see when the model is of good quality in one region, or of bad quality in another region.

You can also compare the applicability of the model to different subsets of the data, for example, data from different locations. You can then decide to build a new model based on more specific data.

The Gains Charts and the Lift Charts are not updated if the classification model contains a tree that is manually pruned.

The Gains/Lift View contains the following sections:

The Chart section

Depending on the chart that you want to display, the Chart section contains the following views:

It also contains the Curve Characteristics table.

Charts
In the Chart section of the Gains/Lift View, you can see the quality of a model compared to using no model at all and to the quality of the optimal model.

If you do not use a model, the data records are selected at random. At random selected data records are indicated by the random curve.

The optimum quality of a model is indicated by the optimum curve.

Random curve
The random curve is a linear curve. It assumes that the ordering is done at random. Therefore the percentage of records that actually have the selected target field value is expected to be the same for all subsets of the data.
Optimum curve
The optimum curve is a stepwise linear curve. It assumes that the data records are sorted perfectly, so that all the records that actually contain the selected target field value occur before the records that do not contain the selected target field value.

The optimum curve might not be available in a model.

Model curve
In the model curve, the data records are sorted by the confidence values that are provided by the model.

Comparing different graphs in the same diagram is a powerful way to see the quality of different models at first glance. This applies especially when graphs are computed based on different data sets, one data set to build the model, and the other data set to test the model.

You can switch to a different chart by clicking, for example, View => Lift on the menu bar of the visualizer.

Curve characteristics
The Curve Characteristics table below the chart includes the following information:

Curve Layout
This column shows the different appearance of the curves in the chart.
Model Name
This column shows the name of the current model.

When you added curves of other models to the chart, the names of these models and their appropriate attributes are added to the table.

Target Field
This column shows the name of the target field.
Ranking Quality
This column shows the overall ranking quality of the model. It is the relation between the area between the model curve and the random curve and the area between the optimum curve and the random curve.

The value for the ranking quality is a real number. You can compare the ranking behaviour of different models by this number.

Data Name
The name of the data that is used to appraise the model.
Data Set
The purpose that the data is used for. You can use data for the following purposes:
Training
The data is used as example to minimize the error of a predictive function. The model is tailored to best fit these sample cases.
Validation
The data is used during the training phase to avoid overtraining. This data is not used for fitting. However, this data influences the model in other ways, for example, to prune a decision tree or to limit the number of iterations.

Quality values of validation data are a quite fair guide, because they influence the model creation only marginally.

Test
Test data is independent data. It is unseen during the training phase. It is used to determine the quality of a model.

From test data, you can best determine the model quality, because this data is completely hidden from the algorithm at training time.

Visible
This column contains a check box. By selecting and deselecting this check box, you can display or hide the random curve or the optimum curve of the current model. You can also hide or display the curves of models that you might have added previously by clicking Add....

The different charts are described in the following sections. You can do various tasks on each of these charts. These tasks are described in Modifying the Gains/Lift View.

The Gains Chart

Figure 17 shows the Gains Chart in the Chart section of the Gains/Lift View.

Figure 17. The Gains Chart in the Chart section of the Gains/Lift View
This graphic shows the Gains Chart of a classification model with the vertical and horizontal lines displayed.

By default, the x-coordinate of the chart shows the percentage of the cumulated number of sorted data records of the current model. The data records are sorted in descending order by the confidence that the model assigns to a prediction of the selected value of the target field.

By default, the y-coordinate shows the percentage of the number of records that actually contain the selected target field value for the appropriate amount of records on the x-coordinate.

For both coordinates, you can specify to display absolute values or the percentages of the total amount.

You can display absolute values by doing one of the following actions:

If you select the % of maximum radio button, the 100% value is the maximum of the y-coordinates. Depending on the curve, the 100% values can be different.

The model that is loaded in the Gains Chart might not have used validation data so that the ranking quality is based on training data only. A Gains Chart based on training data is not as significant as a Gains Chart that is based on validation data because the model might be overtrained.

The Lift Chart

The Lift Chart measures the effectiveness of models by calculating the ratio between the result obtained with a model and the result obtained without a model. The result obtained without a model is based on randomly selected records. In the chart, it is represented by the random curve.

The Lift Chart also shows the lift factor between different points on the x coordinate. It shows a factor f if you take into account about n% of the data.

In the Lift Chart, the random curve is always represented as a horizontal line. At that point in the chart where the model curve declines below the random curve, the lift factor is smaller than 1. This means that the records of the model contain fewer target values than a random sample with equally distributed target values.

Figure 18 shows the Lift Chart in the Chart section of the Gains/Lift View.

Figure 18. The Lift Chart in the Chart section of the Gains/Lift View
This graphic shows the Lift Chart in the Chart section of the Gains/Lift View.

The x-coordinate of the Lift Chart shows the percentage of the cumulated number of sorted data records of the current model. The data records are sorted in descending order by the confidence that the model assigns to a prediction of the selected value of the target field.

You can specify to display absolute values or percentages of the total amount of records.

The y-coordinate of the Lift Chart shows the ratio between the results that are obtained with a model and without a model.

You can specify to display average values for the target field in percent or the lift factor.

If you specified to display the lift factor by selecting the Lift Factor radio button in the Properties notebook, the y values from the absolute scaling are divided by the random value.

The Cumulative Lift Chart

The Cumulative Lift Chart shows you the lift factor of how many times it is better to use a model in contrast to not using a model. Applied to the example of the mailing campaign that is described in Example, the Cumulative Lift Chart shows you how much more likely you are receiving responses from a mailing campaign when you are using a model in contrast to using a random sample of customers.

Figure 19 shows the Cumulative Lift Chart with cumulative lift factors.

Figure 19. The Cumulative Lift Chart with cumulative lift factors
This graphic shows the Cumulative Lift Chart with cumulative lift factors.

The x-coordinate of the chart shows the percentage of the cumulated number of sorted data records of the current model. The data records are sorted in descending order by the confidence that the model assigns to a prediction of the selected value of the target field.

The y-coordinate of the Cumulative Lift Chart shows the cumulated lift factor or the cumulative average percentage of the selected target field value.

The Chart Data section

The Chart Data section of the Gains/Lift View contains the following tables:

Gains table, Lift table, or Cumulative Lift table

Depending on the chart that you selected, this table shows the coordinate values for the different curves in the Gains Chart, the Lift Chart, or the Cumulative Lift Chart.

Boundary Values table

The Boundary Values table shows the confidence values for the model curves, the optimum curve, and the random curve. The boundary value for x records or x% records is the least confidence value of these records.

With the boundary value, you can identify, for example, a given number or a percentage of customers who are considered by the model to most likely sign a new contract. For more information, see Example.

Figure 20 shows the Chart Data section of the Gains/Lift View.

Figure 20. The Chart Data section of the Gains/Lift View
This graphic shows the Chart Data section of the Gains/Lift View.

The tables in the Chart Data section show the values that are visualized in the chart in the Chart section. You can compare the values of the current model to the values of models that you have added to the chart by clicking Add.... You can also compare the values of these models to the optimum curve and the random curve.

You can copy the values in the tables to the clipboard, or you can export them to different applications for further processing.

Modifying the Gains/Lift View

You can do the following modifications in the Gains/Lift View:

Customizing the charts

You can specify how the chart looks like on the Gains/Lift page of the Properties notebook.

To display the Gains/Lift page of the Properties notebook, you can do one of the following actions:

For more information, see Properties specific to classification and regression.

Adding and removing curves

The Classification Visualizer shows a particular model, however, in the Gains/Lift View, you can load the curves of one or more different models.

You might want to use a particular naming convention for your models in order to recognize which model is appropriate to be compared with the current model. For example, you can only add the curves of models that have the following characteristics:

If you have added a model to the chart and you want to add more models, the following characteristics are required:

If you add a model that does not meet these requirements, an error message is issued before the Add Curve window is displayed again.

Hiding curves
You can specify to hide the random curve and the optimum curve of a model.

If you have hidden a curve, it is not displayed in the chart, however, it is still included in the Curve Characteristics table below the chart.

You can also hide the random curve and the optimum curve of models that you have previously added to the chart.

To hide the random curve or the optimum curve of a model, deselect the appropriate check box in the Visible column of the Curve Characteristics table. You can also select a curve in the Curve Characteristics table and click Selected => Hide.

Selecting a different chart
To select a different chart in the Chart section of the Gains/Lift View, for example, to select the Cumulative Lift Chart, click View => Cumulative Lift on the menu bar of the visualizer.

You can also right-click anywhere in the Chart section and select a different chart from the pop-up menu.

Switching between the values of the target field

The chart shows the curves for the selected value of the target field. To show the curves of another value of the target field, click the arrow of the drop-down list above the chart and select a different value of the target field from the drop-down list.

Adding vertical and horizontal lines

You can add vertical and horizontal lines to the chart. These lines help you to identify where the corresponding point is located on the curve in the chart when you are looking at a particular data row in one of the chart data tables.

The horizontal and vertical lines are correlated to the values of a selected row in a chart data table. If you select a row in a chart data table, a vertical line related to the selected record value and horizontal lines related to all curves are displayed in the chart.

If you select several rows in the table, the lines in the chart are correlated to the values of the first row that you selected.

If you added curves of other models to the chart and selected a row in the table, a horizontal line for each model is displayed from the selected value on the x-coordinate.

If you select a row in one of the tables of the Chart Data section, the correlated row in the other table is also selected.

To add vertical and horizontal lines to the chart, follow these steps:

  1. On the menu bar of the visualizer, click File => Model Properties or Visualizer Properties to display the Properties notebook. You can also right-click the mouse button and select Customize Gains/Lift from the pop-up window.
  2. On the Gains/Lift page of the Properties notebook, select the Vertical/horizontal line for selected check box.
  3. In one of the data chart tables, select at least one row.
Zooming
You can zoom in and zoom out the charts in the Chart section. You can also reset the zoomed chart to its default size.

Example

Assuming that you want to start a mailing campaign to prevent customers from leaving. Because you have a limited budget, you want to address only 30% of your customers. You want as many customers as possible to stay, however, you want the cost for the mailing campaign to be as low as possible.

To identify the customers who are most likely to leave, you can start a Classification mining run on your customer data. Every record represents one customer. You might want to specify LEAVING as the target field. The values for this target field are YES and NO.

The Gains Chart in Figure 17 shows the leaving rate of your customers. The target field is called LEAVING. The values for the target field are Yes and No. The Yes value is selected.

Looking at the Gains Chart shown in Figure 17, you can see that the curve of the model is above the random curve. The steeper the model curve starts, this means the higher the curve is at the 30% mark, the better is the model for the mailing campaign because you want to address only 30% of your customers.

You can change the classification settings to create another model from the same data. For example, you might want to use different input fields, or you might want to specify different field weights. Again, you specify LEAVING as target field with the values YES and NO. You can add this new model to the previous model in the Gains Chart as shown in Figure 21.

Figure 21. Another model added to the Gains Chart
This graphic shows the Gains Chart. In this chart, another model is added to the current model that is shown in the Gains Chart.

The Gains Chart in Figure 21 shows that the curve of the new model is higher than the curve from the previous model in the lower percentages of the population. Because you want to address only 30% of your customers, the new model is better suited for the mailing campaign.

To determine the percentage y of all YES cases, you must look up the percentage of the total amount of YES values on the y-coordinate that corresponds to 30% population on the x-coordinate. In Figure 21, this value is 50%.

To determine the percentage of customers who are expected to leave, you must multiply y with the overall percentage p of YES cases and take x into account. For example, if x=30%, y=60%, and p=5%, you are entitled to expect 10% customers to leave.

You can easily determine the percentage of new customers who are most likely to leave soon by displaying vertical and horizontal lines in the Gains/Lift chart. Follow these steps:

  1. On the Gains/Lift page of the Properties notebook, select the Vertical/horizontal line for selected check box.
  2. In one of the tables in the Chart Data section, select the appropriate value, for example, 30%, in the % Records column.

A vertical line is now displayed in the Gains Chart leading from a particular point on the x-coordinate, for example, from 30%, to the curves, and horizontal lines are displayed leading from the intersections of the vertical line and the curves to the y-coordinate.

To determine the customers in your database who are likely to leave, you must do the following tasks:

  1. In the Boundary Values table, look up the boundary value for the new model that corresponds to 30% of the records. In Figure 20, this is 0,25.
  2. Use a Select statement that displays the records that include the predicted value LEAVING=YES and a boundary value greater than 0,25. The Select statement looks like this:
    SELECT Id,
           IDMMX.DM_getConfidence( Result, 'YES' )
    FROM Resultview where IDMMX.DM_getConfidence( Result, 'YES' ) >= 0.23 ;

    If YES is the display value of the predicted field value with name 1, you must replace YES with 1 in the Select statement. The Select statement looks like this:

    SELECT Id,
            IDMMX.DM_getConfidence( Result, '1' ) 
    FROM Resultview where IDMMX.DM_getConfidence( Result, '1' ) >= 0.23 ;

The Tree View

The Tree View displays results of tree classification mining runs. It shows the decision tree that is constructed by the Classification mining function embedded in a table as shown in Figure 22. The tree consists of different nodes. Each node of the tree corresponds to a row in the table. The columns in the table display the attributes of the nodes.

Figure 22. The Tree View of the Classification Visualizer
This graphic shows the Tree View of the Classification Visualizer.

The table in the Tree View contains the following columns:

Tree
Each node in the Tree column includes a diagram visualizing the distribution of records in this node over the predictable classes. Each of the classes that can be predicted is represented by a different color. The share of a color in a node represents the percentage of records that belong to the appropriate class. Two or more classes can be predicted. You can change the color of a particular class on the Color Coding page of the Properties notebook.

Next to the diagram, the appropriate decision that leads to the assignment of the records into this node is displayed.

The appropriate decision might include typical field predicates, for example, REVENUE_OF_CONTRACT < 912, or DISTRIBUTOR <> CAR_DEALERS. Exceptional field predicates are, for example, LOCATION_SIZE IS NOT MISSING or LOCATION_SIZE IS MISSING.

If there are many different classes of nearly the same size, for example, in case of numerical predictions, the diagrams in the nodes do not visualize the distribution of records, but the class label of this node. This means that the nodes are represented in the color that is associated with the predicted value as shown in the legend.

Node ID
The node IDs show the computed levels of the tree.

Each node in the tree is identified by a node ID. The node ID is constructed by extending a node's parent ID with ".x", where x is the position of this node with regard to the other sibling nodes. The root node has the ID 1.

For example, node B might be the second child of node A. Node A has the node ID 1.2. The node ID of node B is 1.2.2. With this kind of node ID construction we can easily figure out the path from the root node to any other node, and the level of a node in the tree.

Score
The score of a node is an attribute of the PMML model. It shows the class to which all records in this node are predicted. For example, you might have the scores Healthy and Ill, or Secure and Risky.
Record Count
The record count is an attribute of the PMML model. It shows the amount of records and the appropriate percentage in comparison to the total population. Additionally, the percentage of the record count is visualized by a histogram.
Purity
The purity is computed by the Classification mining function. It indicates the percentage of correctly predicted records in this node.
Pruned
IM Modeling can generate results that include pruned nodes. The check box in the Pruned column is selected if a node is pruned.

The legend shows the color that you assigned to each class label and the appropriate values, for example, Yes and No, or Healthy or Ill. If you use continuous numerical values, the legend is represented as color scale.

Trees need not be binary. To be conform with the PMML 1.1 definition trees, they can have any number of branches in each node.

Changing the sequence of columns

You can change the sequence of the columns that display the attributes of the nodes in the table. For example, you might want to move the Pruned column between the Score column and the Purity column.

The Tree column and the Node ID column contain related basic information. Therefore these two columns are always displayed as first or as second column in the table. You can only change the sequence of these two columns. For example, you might want to display the node IDs in the first column, and the tree in the second column, or vice versa.

To change the sequence of the columns in the table, drag the column header to the left or to the right side and drop it at a different position.

Collapsing or expanding nodes

Collapsing nodes means to hide the children of branch nodes from the current view.

You can do one of the following actions to collapse nodes:

Expanding nodes means to display the children of branch nodes that were previously hidden in the current view.

You can do one of the following actions to display subnodes in the current view:

Pruning

A decision tree consists of a root node, several branch nodes, and several leaf nodes.

Pruning means to change the model by deleting all child nodes of a branch node. The pruned node is regarded as a leaf node. Leaf nodes cannot be pruned.

The color of the pruned nodes is a shade brighter than the color of unpruned nodes, and the decision next to the pruned nodes is represented in italics. In contrast to collapsing nodes to hide them from the view, pruning actually changes the model.

You can manually prune the nodes of the tree by selecting the check box in the Pruned column. When the node is pruned, the lower levels of the node are collapsed. If you expand a collapsed node by clicking on the node icon, the collapsed nodes are displayed.

You can specify the prune level. The prune level determines that all nodes with a level smaller than the specified prune level are unpruned, and all nodes with a level equal or greater than the specified prune level are pruned. For example, if you specify a prune level of 3, all nodes with level 1 and 2 are unpruned, and all nodes with level 3 or greater are pruned.

The computed prune level is the original prune state of the tree classification model. This means that some of the branch nodes might be pruned by the Tree Classification mining function, or none of the branch nodes might be pruned at all. Resetting to the computed prune level removes the manual pruning that you might ever have done to the tree classification model.

Pruning selected nodes

To prune nodes, you can do one of the following actions:

Unpruning selected nodes

To unprune nodes, you can choose between the following options:

Setting prune level

To set the prune level, select View => Set Prune Level. Click the list button in the Set Prune Level pop-up window and select one of the available prune levels.

You can also set the prune level by selecting a prune level from the list of available prune levels on the tool bar.

Resetting to computed prune level
To reset the model to the computed prune level, click View => Reset To Computed Prune Level.

Selecting nodes

You can do one of the following actions to select one or more nodes:

You can also select nodes to be included or excluded from a view by the following criteria:

If you want to select nodes by purity or size, you must specify the field that is supposed to be equal, larger, or smaller in purity or size.

If you want to select nodes by level, you must specify the amount of levels that you want to see, or the amount of levels above or below.

For example, you might want to view nodes that have more than 3 ancestor nodes and to replace the current view. Follow these steps:

  1. Click Edit => Custom Selection... to display the Select Nodes dialog where you can specify different criteria.
  2. Select the Level radio button.
  3. Select the Greater Than operator.
  4. Select 3 from the Level drop-down list.
  5. Select the Replace existing selection radio button.
  6. Click OK or Apply.

The Tree Navigator View

The Tree Navigator View shows a mutable tree as shown in Figure 23. This tree contains the node and the appendant subnodes that you selected in the Tree View or in the Tree Node Distribution View.

Figure 23. The Tree Navigator View of the Classification Visualizer
This graphic shows the Tree Navigator View of the Classification Visualizer.

In the Tree Navigator View, you can browse the detailed information of the branch nodes that you selected in the Tree View or in the Tree Node Distribution View. Whenever you select a different node in the Tree View or in the Tree Node Distribution View, the Tree Navigator View shows the selected node and its neighborhood.

The following nodes belong to the neighborhood of the selected node:

Selecting a node in the Tree View, the Tree Node Distribution View, and the Tree Navigator View are synchronized. This means that a selected node in the Tree Navigation View is also selected in the other views.

Selecting a node in the Tree View or in the Tree Node Distribution View has the following impact on the tree in the Tree Navigator View:

The legend shows the colors that you assigned to the class labels, for example, blue color for the classification Yes, and yellow color for the classification No. If the class labels are continuous numerical values, the legend is represented as color scale.

Selected node details

You can use the Tree View and the Tree Node Distribution View to navigate or to explore trees. If you select a node in one of these views, the following information is displayed in the Selected node details section in the Tree Navigator View:

Decision path

The decision path is displayed in textual form in the Decision path section. The score of the selected node is also displayed. It indicates the decision, this means, the prediction for the records that belong to the selected node.

The decision path lists properties for records in the selected node. Starting at the root node, a condition is shown for each node on the tree branch that connects the root and the selected node. Each record in the node must fulfill all the conditions on the decision path.

Typically, each condition restricts the value range in a data field.

For each field type, the decision might also test whether a field value is known or missing.

Independant of any field value, a decision can always be true (always fulfilled) or false (never fulfilled). The corresponding conditions are True or False.

In complex situations, simple conditions can be joined to compound formulas with the logical connectors AND, OR, or XOR. For example, compound formulas might look like this:

(relationship = husband) AND (AGE >= 40)

Conditions can also consist of a cascade. Cascades include an ordered list of conditions. The first condition that can be evaluated is used. An evaluation is possible if all the fields that occur in the condition have known values. For example, a cascading decision might look like this:

(NUM_VESSELS = 0) CASCADE ((AGE > 40) AND (ANGINA <> 1)) CASCADE TRUE

Instead of CASCADE, the term SURROGATE can also be used because the alternatives in the list are fall-back conditions. If the term SURROGATE is used, the above example looks like this:

(NUM_VESSELS = 0) SURROGATE ((AGE > 40) AND (ANGINA <> 1)) SURROGATE TRUE

Tree Node Distribution View

The Tree Node Distribution View shows the tree, the appendant node IDs, and the distribution of field values in the nodes as shown in Figure 24.

Figure 24. The Tree Node Distribution View of the Classification Visualizer
This graphic shows the Tree Node Distribution View of the Classification Visualizer.

The Tree Node Distribution View shows the following information on branch nodes:

You can specify the following chart types for categorical and discrete numeric fields:

You can browse the branch node distributions in the following modes:

Tree mode
In the Tree mode, the Tree Node Distribution View shows a table containing information about the distribution of the field values in all nodes. Each row of the table represents a node.

If branches are collapsed, the appropriate nodes are removed from the view. If branches are expanded, nodes are added to the view.

You can select several nodes to display them in Table mode.

Table mode
In the Table mode, the Tree Node Distribution View shows a table containing information on nodes that you selected in tree mode.

You can sort the nodes by the following criteria:

By default, the nodes are sorted by size.

You can select several charts to fit them to window size in chart mode.

Chart mode
In the Chart mode, the Tree Node Distribution View shows the charts that you selected in Table mode.

The legend at the bottom of the page explains the background colors of the rows in the table. The background color of a row represents a particular information of the corresponding class, for example, the size of a class. You can specify the background color to represent also the average values of a specific field, or aggregations of a specific field value of the records in the class.

In the Tree Node Distribution View, you can do the same tasks as in the Tree View. See The Tree View for a list of these tasks and information about how to perform these tasks.

The Field Importance View

The Field Importance View shows you to what extent each field contributes to build the model. This helps you to better understand the relation between the target field and the active fields in the model.

For example, if you know the extent that each field contributed to build the model, you can, for example, simplify data acquisition. You can drop the fields that did not contribute in a high rate to build the model. This is useful if their acquisition is expensive, or if they consume a lot of storage space.

The Field Importance View includes the following sections:

The Field Importance Chart

The Field Importance Chart illustrates the importance of each field in the model.

This helps you to get a quick overview of the importance of each field in the model.

If there are too many fields to display in the Field Importance Chart, a horizontal scroll bar is provided to view the fields outside of the current window.

Figure 25 shows the Field Importance Chart in the Field Importance View.

Figure 25. The Field Importance Chart in the Field Importance View
This graphic shows the Field Importance Chart in the Field Importance View.

The chart in Figure 25 shows that the fields NETWORK and GENDER have very little significance to build the model. Therefore you might want to exclude these fields when you apply the model to your data, especially if performance is critical. The field REVENUE_OF_3MONTHS, however, is crucial to the model. You must ensure that the values in this field are accurate and that it does not contain missing values. The model quality depends highly on the data quality of the field REVENUE_OF_3MONTHS.

The Field Importance Table and the Field Correlation Table

The Field Importance and Correlation section includes the following tables:

Field Importance Table
The Field Importance Table contains the fields that are displayed in the Field Importance bar chart. It shows the importance values for each field.

For example, the Field Importance Chart in Figure 26 shows that the fields age and age of car have a high importance to build the model. The field age has a contribution of 23.10% to build the model. The field age of cars has a contribution of 17,30% to build the model. Furthermore, the Field Correlation Table in Figure 26 shows that these fields are highly correlated.

Field Correlation Table

The Field Correlation Table shows the most important correlations between the fields of the model. It lists correlated pairs of input fields and their correlation coefficient.

A correlation coefficient close to 1.0 indicates that the two fields are strongly correlated. This means that if the value of one field is high, the value of the other field also is likely to be high.

A correlation coefficient close to 0 indicates that the two fields are not correlated. This means that the information about one field value cannot be derived from the information of the other field value.

A correlation coefficient close to -1 indicates that the two fields are negatively correlated. This means that if the value of one field is high, the value of the other field is likely to be low, or vice versa.

If fields are correlated, their contribution to build a model is overlapping. This means that you can exclude one of these fields without reducing the model quality because the information of the excluded field is redundant. It can be derived from the correlated field. For example, you might want to exclude the field age of car, if the acquisition of the values in this field is difficult.

If the total number of fields is small, the Field Correlation Table contains all pairs of input fields. If the number of pairs exceeds approximately 50 to 100, only the most important correlated pairs of input fields and their correlation coefficient are shown in the table.

You can copy the values of these tables to the clipboard, or you can export them to different applications for further processing.

By default, the values in the Field Importance Table are sorted by the field importance values in decreasing order. The values in the Field Correlation Table are sorted by the correlation coefficient in decreasing order. You can toggle between decreasing order and ascending order of any column in these tables by clicking the header of any column.

Figure 26 shows an example of the Field Importance Table and the Field Correlation Table.

Figure 26. The Field Importance Table and the Field Correlation Table of the Classification Visualizer
This graphic shows the Field Importance Table and the Field Correlation Table of the Classification Visualizer.

Classification properties

Some of the properties are the same for all visualizers, for example, general properties or print options. Some properties are specific to a particular visualizer, for example, the rule properties are specific to the Associations Visualizer. Therefore all properties are described in a separate chapter. For more information, see Properties.

For more information about the general concepts of properties, see Property concepts.

For more information about the classification properties, see the appropriate chapter.

The following properties are specific to the Classification Visualizer and the Regression Visualizer:

Introducing the Regression Visualizer

This chapter describes the different views of the Regression Visualizer and the tasks that you can do in the various views.

The Regression Visualizer shows models that are generated by the Regression mining function. It provides the following views to represent such models:

The Regression Visualizer provides the following views to represent test results. You can create test results by applying a model to test data.

With the Regression Visualizer, you can show models that are created by the following sources:

The tasks that are specific to the views of the Regression Visualizer are described in the following sections.

In all views of the Regression Visualizer, you can perform the common tasks of the visualizer framework. For more information, see Performing common tasks.

The Quality View

The Quality View shows the overall model quality including detailed information in terms of accuracy, reliability, and the ability to rank the data.

The Quality View contains the following sections:

The required quality of a prediction model depends on the application for which you want to use it. Being significantly better than predicting the overall mean value might be a good result. This applies, for example, if you want to predict the revenue for the next years.

You might think that the prediction quality always should be as good as possible. In general, this is true. However, sometimes the result might be too good. The reason for a result that is too good can be that there are causal dependencies between the target field and some input fields.

For example, you might want to predict the amount of claims for a new insurance customer. A high-quality model that is based on existing customer data might reveal that customers with a large number of accidents also have a large amount of claims. However, this model is not useful because the number of claims is not known at the time when the prediction must be made.

Overall Model Quality

The Overall Model Quality section shows the name of the data set that is used to build the model. It also shows whether the data set is used for the training or for the testing of the data.

The scale in the Overall Model Quality section shows the overall quality of the model. The overall model quality is based on quality details in terms of accuracy, reliability, and the ability to sort the data.

The overall model quality compares the predictive performance of a model to a trivial model that always returns the mean of the target field as prediction.

Quality Details

The Quality Details section shows the name of the target field.

The Quality Details section contains scales to measure the following quality details:

Accuracy
The accuracy quality measure indicates whether the model produces systematic deviations between predicted values and actual target values. A value of 1 means that the model does not produce a systematic error. A value of 0 means that the model produces a systematic error as large as the error that is produced by always predicting the mean target field value.

The accuracy quality measure addresses the following questions:

Ranking
The ranking quality measure indicates the capability of the model to order the records based on the target field values. It compares the order of the validation data records, when sorted by the predicted values, with the order of the same data records when sorted by the actual values of the target field.

The ranking quality is the relation between the area between the model curve and the random curve and the area between the optimum curve and the random curve in the Gains Chart. You can use this information, for example, to select the top N customers in a campaign if the exact values are not important.

The ranking quality is the relation between the area between the model curve and the random curve and the area between the optimum curve and the random curve.

Reliability
The reliability quality measure indicates the capability of the model to predict unknown data. It also shows whether the model is overtrained.

The reliability quality measure indicates the consistency between a model's assessment of its own predictive accuracy and the actual prediction errors that are observed on a validation data set or a test data set. The predicted standard deviations that are produced by a model define that model's assessment of the magnitude of the prediction errors that are expected. If the observed prediction errors are significantly larger than the predicted standard deviations, the reliability of the model should be questioned.

Figure 27 shows the Quality View with the Overall Model Quality section and the Quality Details section expanded.

Figure 27. The Quality View. idmu0s43
This graphic shows the Quality View with the Overall Model Quality section and the Quality Details section expanded.

Gains/Lift View

The Gains/Lift View shows the ranking quality of classification models or regression models. With the Gains/Lift View, you can compare the quality of different classification models or regression models. The ranking quality indicates the capability of a model to correctly order records based on a predicted property. It helps you to measure the performance and the effectiveness of the models.

With the information that is provided with the Gains/Lift View, you can answer the following questions:

Checking the ranking quality of one model
What does the ranking quality of the model look like? Is the model curve closer to the random curve, or is it closer to the optimum curve?

The closer the model is to the optimum curve, the better is the ranking quality of the model. If the model curve is closer to the random curve, you might want to use a different model with a better ranking quality.

Comparing different models by using the same data set
Which model can best sort the data? How is the ranking quality of the models developing over time? Is the model still good enough for the purpose you want to use it, or do you need to replace it with a recent model?

If you collect data over time, and if you compare the same model, once based on the original data and once based on later test data, you can see how the ranking quality of the model develops over time. This is useful, in particular, to determine the point in time when the model has deteriorated too much and needs replacement by a more recent model.

All models that you want to compare must predict the same target field.

The models must not be created with the same active fields.

Comparing the same model by using different data sets
Does the model apply to all my geographies? Does the model apply to different location groups?

If the test data is based on different geographic data, you can see when the model is of good quality in one region, or of bad quality in another region.

You can also compare the applicability of the model to different subsets of the data, for example, data from different locations. You can then decide to build a new model based on the latest data.

The Gains/Lift View contains the following sections:

The Chart section

Depending on the chart that you want to display, the Chart section contains the following charts:

It also contains the Curve Characteristics table.

Charts
In the Chart section of the Gains/Lift View, you can see the quality of a model compared to using no model at all and to the quality of the optimal model.

If you do not use a model, the data records are selected at random. At random selected data records are indicated by the random curve.

The optimum quality of a model is indicated by the optimum curve.

Random curve
The random curve is a linear curve. It assumes that the ordering is done at random. Therefore the average target field value is expected to be the same for all subsets of the data.
Optimum curve
For the optimum curve it is assumed that the data records are sorted perfectly in descending order of their actual target field values.

The optimum curve might not be available in a model.

Model curve
In the model curve, the data records are sorted by the values that the model predicts for the target field.

The closer the model curve is to the optimum curve, the better is the ranking quality of the model.

Comparing different graphs in the same diagram is a powerful way to see the quality of different models at first glance. This applies especially when graphs are computed based on different data sets, one data set to build the model, and the other data set to test the model.

You can switch to a different chart by clicking, for example, View => Gains on the menu bar of the visualizer.

Curve Characteristics
The Curve Characteristics table below the chart includes the following information:

Curve Layout
This column shows the different appearance of the curves in the chart.
Model Name
This column shows the name of the current model. If you added curves of other models to the chart, the names of these models and their appropriate attributes are added to the table.
Target Field
This column shows the name of the target field.
Ranking Quality
This column shows the overall ranking quality of the model. It is the ratio of the area between the model curve and the random curve, and the model curve to the area between the random curve and the optimum curve.

The value for the ranking quality is a real number. You can compare the ranking behaviour of different models by this number.

If a model does not contain the optimum curve, ranking quality data is not available.

Data Name
The name of the data that is used to appraise the model.
Data Set
The purpose that the data is used for. You can use data for the following purposes:
Training
The data is used as example to minimize the error of a predicitve function. The model is tailored to best fit these sample cases.
Validation
The data is used during the training phase to avoid overtraining. This data is not used for fitting. However, this data influences the model in other ways, for example, to limit the number of iterations.

Quality values of validation data are a quite fair guide, because they influence the model creation only marginally.

Test
Test data is independent data. It is unseen during the training phase. It is used to determine the quality of a model.

From test data, you can best determine the model quality, because this data is completely hidden from the algorithm at training time.

Quality is a statistical property. Depending on the individual cases, it can greatly vary. Furthermore it is important that you ensure that test data is disjoint from training data or verification data, and that the distribution of verification data or test data is similar to the distribution of the intended application data. Quality values are only reliable on average and if the model is applied to input values with a similar distribution.

Visible
This column contains a check box. By selecting and deselecting this check box, you can display or hide the random curve or the optimum curve of the current model. You can also hide or display the curves of models that you might have added previously by clicking Add....

The different charts are described in the following sections. You can do various tasks on each of these charts. These tasks are described in Modifying the Gains/Lift View.

The Gains Chart

Figure 28 shows the Gains Chart and the Curve Characteristics table in the Chart section of the Gains/Lift View.

Figure 28. The Gains Chart in the Chart section of the Gains/Lift View
The graphic above shows the Gains Chart and the Curve Characteristics table in the Chart section of the Gains/Lift View.

By default, the x-coordinate of the chart shows the cumulated number of sorted data records of the current model. The data records are sorted by their predicted values of the target field.

By default, the y-coordinate shows the sum of target field values of records for the appropriate amount of records on the x-coordinate.

For both coordinates, you can specify to display absolute values or the percentages of the total amount.

You can display absolute values by doing one of the following actions:

The model that is loaded in the Gains Chart might not have used validation data so that the ranking quality is based on training data only. A Gains Chart based on training data is not as significant as a Gains Chart that is based on validation data because the model might be overtrained.

The Lift Chart

The Lift Chart measures the effectiveness of models by calculating the ratio between the result obtained with a model and the result obtained without a model. The result obtained without a model is based on randomly selected records. In the chart, it is represented by the random curve.

The Lift Chart shows you the lift factor of how many times it is better to use a model in contrast to not using a model. Applied to the example of the mailing campaign, the Lift Chart shows you how much more likely you are receiving responses from a mailing campaign when you are using a model in contrast to using a random sample of customers.

The Lift Chart also shows the lift factor between different points on the x coordinate. For example, the Lift Chart shows a factor f if you take into account about n% of the data.

In the Lift Chart, the random curve is always represented as a horizontal line. At that point in the chart where the model curve declines below the random curve, the lift factor is smaller than 1. This means that the records selected by the model contain fewer target values than a random sample of equal size.

Figure 29 shows the Lift Chart and the Curve Characteristics table in the Chart section of the Gains/Lift View.

Figure 29. The Lift Chart in the Chart section of the Lift / Gains View
This graphic above shows the Lift Chart and the Curve Characteristics table in the Chart section of the Gains/Lift View

The x-coordinate of the Lift Chart shows the percentage of the cumulated number of sorted data records of the current model. The data records are sorted in descending order by the predicted value that the model assigns to a record.

You can specify to display absolute values or percentages of the total amount of records.

The y-coordinate of the Lift Chart shows the ratio between the results that are obtained with a model and without a model.

You can specify to display the average amount of the target field value or the lift factor.

If you specified to display the lift factor by selecting the Lift Factor radio button in the Properties notebook, the y values from the absolute scaling are divided by the random value.

The Cumulative Lift Chart

The Cumulative Lift Chart shows you the lift factor of how many times it is better to use a model in contrast to not using a model. The Cumulative Lift Chart in Figure 30 shows that using a model is 1.5 times better in contrast to not using a model.

Figure 30. The Cumulative Lift Chart with cumulative lift factors
This graphic shows the Lift Chart with cumulative lift factors.

The x-coordinate of the Cumulative Lift Chart shows the cumulated number of sorted data records of the current model. The data records are sorted by the predicted values for the target field.

The y-coordinate of the Cumulated Lift chart shows the cumulative lift factor or the cumulative average amount of the target field value.

The Chart Data section

The Chart Data section of the Gains/Lift View contains the following tables:

Gains table, Lift table, or Cumulative Lift table

Depending on the chart that you selected, this table shows the coordinate values for the different curves in the Gains Chart, the Lift Chart, or the Cumulative Lift Chart.

Boundary Values table

The Boundary Values table shows the minimum predicted values for each bin containing the data records between two adjacent lift chart points.

With the boundary value, you can identify, for example, a given number of customers who are considered by the model to most likely provide a particular business volume. For more information, see Example.

Figure 31 shows the Chart Data section of the Gains/Lift View.

Figure 31. The Chart Data section of the Gains/Lift View
The graphic above shows the Chart Data section of the Gains/Lift View.

The tables in the Chart Data section show the values that are visualized in the chart in the Chart section. You can compare the values of the current model to the values of models that you have added to the chart by clicking Add.... You can also compare the values of these models to the optimum curve and the random curve.

You can copy the values in the tables to the clipboard, or you can export them to different applications for further processing.

Modifying the Gains/Lift View

You can do the following modifications in the Gains/Lift View:

Customizing the charts

You can specify how the chart looks like on the Gains/Lift page of the Properties notebook.

To display the Gains/Lift page of the Properties notebook, you can do one of the following actions:

For more information, see Properties specific to classification and regression.

Adding and removing curves

The Regression Visualizer shows a particular model, however, in the Gains/Lift View, you can load the curves of one or more different models.

You might want to use a particular naming convention for your models in order to recognize which model is appropriate to be compared with the current model. For example, you can only add the curves of models that have the following characteristics:

If you have added a model to the chart and you want to add more models, the following characteristics are required:

If you add a model that does not meet these requirements, an error message is issued before the Add Curve window is displayed again.

Hiding curves
You can specify to hide the random curve and the optimum curve of a model.

If you have hidden a curve, it is not displayed in the chart, however, it is still included in the Curve Characteristics table below the chart.

You can also hide the random curve and the optimum curve of models that you have previously added to the chart.

To hide the random curve or the optimum curve of a model, deselect the appropriate check box in the Visible column of the Curve Characteristics table. You can also select a curve in the Curve Characteristics table and click Selected => Hide.

Adding vertical and horizontal lines

You can add vertical and horizontal lines to the chart. These lines help you to identify where the corresponding point is located on the curve in the chart when you are looking at a particular data row in one of the chart data tables.

The horizontal and vertical lines are correlated to the values of a selected row in a chart data table. If you select a row in a chart data table, a vertical line related to the selected record value and horizontal lines related to all curves are displayed in the chart.

If you select several rows in the table, the lines in the chart are correlated to the values of the first row that you selected.

If you added curves of other models to the chart and selected a row in the table, a horizontal line for each model is displayed from the selected value on the x-coordinate.

If you select a row in one of the tables of the Chart Data section, the correlated row in the other table is also selected.

To add vertical and horizontal lines to the chart, follow these steps:

  1. On the menu bar of the visualizer, click File => Model Properties or Visualizer Properties to display the Properties notebook. You can also right-click the mouse button and select Customize Gains/Lift from the pop-up window.
  2. On the Gains/Lift page of the Properties notebook, select the Vertical/horizontal line for selected check box.
  3. In one of the data chart tables, select at least one row.
Selecting a different chart
To select a different chart in the Chart section of the Gains/Lift View, for example, to select the Cumulative Lift Chart, click View => Cumulative Lift on the menu bar of the visualizer.

You can also right-click anywhere in the Chart section and select a different chart from the pop-up menu.

Zooming
You can zoom in and zoom out the charts in the Chart section. You can also reset the zoomed chart to its default size.

Example

Assuming that you want to start a mailing campaign to maximize your business volume. You want to address 30% of your customers.

To predict the business volume when mailing 30% of your customers, you can start a Regression mining run on your customer data. Every record in the data table represents one customer. You might want to specify BUSINESS VOLUME as the target field.

You can also start a Regression mining run if you want to know how many of your customers to address if you want to reach a business volume of, for example, 50 000$.

Looking at the Gains Chart shown in Figure 28, you can see that the curve of the model is above the random curve. This means that the quality of the model is basically good. The higher the model curve starts at the beginning, the better is the model for predicting the business volume because you want to address only 30% of your customers.

You can change the regression settings to create another model from the same data. Again, you specify BUSINESS VOLUME as target field. You can add this new model to the previous model in the Gains Chart as shown in Figure 32.

Figure 32. Adding another model to the current model
This graphic shows the Gains Chart. Additionally, another model is added to the current model of the Gains Chart.

The Gains Chart in Figure 32 shows that the curve of the new model is higher than the curve from the previous model in the lower percentages of the population. Because you want to address only 30% of your customers, the new model is better suited for predicting the business volume.

To determine the business volume of a mailing campaign to 30% of your new customers, you must look up the percentage of the total amount of BUSINESS VOLUME on the y-coordinate that corresponds to 30% population on the x-coordinate. In Figure 32, this value is just below 36 000.

You can easily determine the business volume by displaying vertical and horizontal lines in the Gains Chart. Follow these steps:

  1. On the Gains/Lift page of the Properties notebook, select the Vertical/horizontal line for selected check box.
  2. In one of the tables in the Chart Data section, select a particular value, for example, 30%, in the % Records column.

A vertical line is now displayed in the Gains Chart leading from a particular point on the x-coordinate, for example, from 30%, to the curves in the graph, and horizontal lines are displayed leading from the intersections of the vertical line and the curves to the y-coordinate.

To determine the 30% of customers in your database who are likely to contribute to the highest business volume, follow these steps:

  1. In the Gains/Lift View of the Regression Visualizer, right-click in the Chart section and select Customize Gains/Lift... to display the Gains/Lift page of the Properties notebook.
  2. On the Gains/Lift page of the Properties notebook, select the absolute radio button for the y-Axis scale of the Gains Chart and click OK.
  3. In the % Records column of the Gains table in the Chart Data section, scroll down to display 29.22% records and select this value to highlight the table row.
  4. In the column that displays the values of the added model, look up the value that corresponds to 29.22% in the % Records column. In Figure 33, this value is 35 707,00.
  5. Use a Select statement that displays the records that include the predicted value BUSINESS VOLUME that is greater than 35 707,00. The Select statement looks like this:
    SELECT CUST_ID, CUST_NAME, CUST_ADDRESS, 
                    IDMMX.DM_getPredVal( BUSINESS_VOLUME )
                    FROM RESULT_TABLE 
                    WHERE IDMMX.DM_getPredVal(BUSINESS_VOLUME) >= 35 707,00 
Figure 33. Looking up the value in the new model that corresponds to 29,22% in the % Records column

The Field Importance View

The Field Importance View shows you to what extent each field contributes to build the model. This helps you to better understand the relation between the target field and the active fields in the model.

For example, if you know the extent that each field contributed to build the model, you can, for example, simplify data acquisition. You can drop the fields that did not contribute in a high rate to build the model. This is useful if their acquisition is expensive, or if they consume a lot of storage space.

The Field Importance View includes the following sections:

The Field Importance Chart

The Field Importance Chart illustrates the importance of each field in the model.

This helps you to get a quick overview of the importance of each field in the model.

If there are too many fields to display in the Field Importance Chart, a horizontal scroll bar is provided to view the fields outside of the current window.

Figure 34 shows the Field Importance Chart in the Field Importance View.

Figure 34. The Field Importance Chart in the Field Importance View
This graphic shows the Field Importance Chart in the Field Importance View.

The chart in Figure 34 shows that the fields number and category have very little significance to build the model. Therefore you might want to exclude these fields when you apply the model to your data, especially if performance is critical. The field age, however, is crucial to the model. You must ensure that the values in this field are accurate and that it does not contain missing values. The model quality depends highly on the data quality of the field age.

The Field Importance Table and the Field Correlation Table

The Field Importance and Correlation section includes the following tables:

Field Importance Table
The Field Importance Table contains the fields that are displayed in the Field Importance bar chart. It shows the importance values for each field.

For example, the Field Importance Chart in Figure 35 shows that the fields age and age of car have a high importance to build the model. The field age has a contribution of 23.10% to build the model. The field age of cars has a contribution of 17,30% to build the model. Furthermore, the Field Correlation Table in Figure 35 shows that these fields are highly correlated.

Field Correlation Table

The Field Correlation Table shows the most important correlations between the fields of the model. It lists correlated pairs of input fields and their correlation coefficient.

A correlation coefficient close to 1.0 indicates that the two fields are strongly correlated. This means that if the value of one field is high, the value of the other field also is likely to be high.

A correlation coefficient close to 0 indicates that the two fields are not correlated. This means that the information about one field value cannot be derived from the information of the other field value.

A correlation coefficient close to -1 indicates that the two fields are negatively correlated. This means that if the value of one field is high, the value of the other field is likely to be low, or vice versa.

If fields are correlated, their contribution to build a model is overlapping. This means that you can exclude one of these fields without reducing the model quality because the information of the excluded field is redundant. It can be derived from the correlated field. For example, you might want to exclude the field age of car, if the acquisition of the values in this field is difficult.

If the total number of fields is small, the Field Correlation Table contains all pairs of input fields. If the number of pairs exceeds approximately 50 to 100, only the most important correlated pairs of input fields and their correlation coefficient are shown in the table.

You can copy the values of these tables to the clipboard, or you can export them to different applications for further processing.

By default, the values in the Field Importance Table are sorted by the field importance values in decreasing order. The values in the Field Correlation Table are sorted by the correlation coefficient in decreasing order. You can toggle between decreasing order and ascending order of any column in these tables by clicking the header of any column.

Figure 35 shows an example of the Field Importance Table and the Field Correlation Table.

Figure 35. The Field Importance Table and the Field Correlation Table of the Regression Visualizer
This graphic shows the Field Importance Table and the Field Correlation Table of the Regression Visualizer.

Regression properties

Some of the properties are the same for all visualizers, for example, general properties or print options. Some properties are specific to a particular visualizer, for example, the rule properties are specific to the Associations Visualizer. Therefore all properties are described in a separate chapter. For more information, see Properties.

For more information about the general concepts of properties, see Property concepts.

For more information about the regression properties, see the appropriate chapter.

The following properties are specific to the Classification Visualizer and the Regression Visualizer:

Properties

This chapter gives an overview of the properties of the visualizers. It also describes the properties that are common to all visualizers and specific to a particular visualizer.

For information about general concepts of the properties, see Property concepts.

Every visualizer has properties. Some of these properties are the same. For example, all visualizers have the same print options. However, the Associations Visualizer has unique properties. The following table gives an overview of the properties that are common to all visualizers or specific to a particular visualizer.

Table 8. Overview of the properties of the different visualizers
Associations Visualizer Classification Visualizer Clustering Visualizer Regression Visualizer
General X X X X
Rules X - - -
Rules Columns X - - -
Rules Sort X - - -
Item Sets X - - -
Item Sets Columns X - - -
Item Sets Sort X - - -
Show Rules X - - -
X X X X
Charts X X X X
Color Coding X X X X
Sorting - - X -
Gains/Lift - X - X

The following chapters describe the individual properties.

Properties common to all visualizers

The following properties are common to all visualizers:

General

On this page of the Properties notebook, you can specify the locale and the window style that you want to use. You can also select whether to show tool tips when the cursor is hovering over the tool bar icons.

Locale

Locales provide the decimal system of different countries. The Intelligent Miner Visualizers support various locales. If you select a locale of a particular country, numbers are displayed in the appropriate format of this country. For example:

The Intelligent Miner Visualizers are available in the following languages:

If you select a locale of one of these countries, the graphical user interface (GUI) appears in the appropriate language. If you select a locale of a country that is not provided in its native language, the interface appears in English.

To use the decimal system of a particular country, for example, Germany, select German (Germany) from the Local drop-down list and click OK or Apply.

Window style

You can select different window styles, for example, Metal, CDE/Motif, or Windows. However, Windows is only available on Windows operating systems.

You can also select large fonts, black font on white background, or white font on black background.

To select your preferred window style, for example, Windows, select Windows from the Window style drop-down list and click OK or Apply.

Enabling tool tips

By default, tool tips are provided for the icons on the tool bar. By placing the cursor over an icon, the name of the functionality of the icon is displayed, for example, Save, or Print.

If you do not want to use the tool tips, deselect the Enable tool tips check box and click OK or Apply.

Print Options

On the Print Options page of the Properties notebook, you can specify how your printouts should look like.

By default, all print options are selected.

Page foot

In the Page foot group box, you can specify one or all of the following print options by selecting or deselecting the appropriate check box:

Color Coding

In the Color coding group box, you can specify whether you want a colored printout. You can also specify whether you want to print the color legend.

You can select or deselect the following print options:

If you select the Print color coding check box, you can specify whether you want to print the color legend, and whether the color legend is printed on a separate page.

If you deselect the Print color coding check box, the options Print color legend and Print color legend on separate page are not available.

If you deselect the Print Color Coding check box, only the background color is set to black and white in the preview and on the printouts. The histograms and the pie-charts are still represented in the default color or the color you specified.

Associations properties

In the Associations Visualizer, the parameters for the model properties and the visualizer properties are the same.

The Associations Visualizer has the following properties:

Rules

On this page of the properties notebook, you can specify the background color of the rules, the width of the arrows representing the rules, and the textual representation of the rules.

Background color

You can assign colors to indicate the highest and the lowest value for a particular field. The color you selected is used for the background of the table rows in the Rules View and for the arrows in the Graph View. It is also shown in the legend at the bottom of the views.

For example, if you selected the field Support from the Field for rule color list, and you select light blue for the minimum value and dark blue for the maximum value, the background of the rules is colored accordingly by their support value in the Rules View. In the Graph View, the arrows are colored accordingly.

An expected value is calculated for the field Support. This value is represented in white. All values that are above this expected value are colored between dark blue and white. All values that are below this expected value are colored between white and light blue.

To specify the background color of rules by their field values, follow these steps:

  1. Ensure that the Enable rule coloring check box is selected.
  2. Select a field from the Field for rule color list, for example, Support.
  3. Click Min. Value and select the color that you want to use for the lowest support value.
  4. Click Max. Value and select the color that you want to use for the highest support value.
  5. Click OK or Apply.

Rule width

The rule width is determined by the minimum value and the maximum value of the field that you select for the rule width. Additionally, you can modify the minimum and the maximum width for the arrows that are used in the Graph View.

To specify the width of a rule, follow these steps:

  1. Select a field from the Field for rule width drop-down list, for example, Confidence.
  2. Click the buttons that represent the width of the rule repeatedly until the width of your choice is displayed.
  3. Click OK or Apply.

Specifying the textual representation

You can specify the text of a rule and add keywords that are replaced by the value of the appropriate record.

The keywords must start and end with the character @.

You might want to enter the following text:

With a confidence of @confidence@, 
a customer who buys @rule body@ also buys @rule head@

This specification resolves in the following text:

With a confidence of 78.3 %, 
a customer who buys beer also buys chips.

To specify this text string for the textual representation of the rules, follow these steps:

  1. Type With a confidence of in the Textual representation of rules entry field.
  2. Type @ to display the list of available key words.
  3. Select Confidence from the list. The keyword confidence is added to the text that you have already typed in the entry field followed by the character @.
  4. Type a customer who buys
  5. Type @ to display the list of available key words.
  6. Select Rule Body from the list. The keyword Rule Body is added to the text that you have already typed in the entry field followed by the character @.
  7. Type also buys.
  8. Type @ to display the list of available key words.
  9. Select Rule Head from the list. The keyword Rule Head is added to the text that you have already typed in the entry field followed by the character @.

Rules Columns

On this page of the properties notebook, you can specify the fields of the records that you want to include as columns in the Rules View. You can also determine the sequence of the columns in the Rules View.

Specifying columns for the Rules View

The Available Fields list contains all fields of the model. From this list, you can select the fields that you want to display as columns in the Rules View.

The sequence of the fields in the Selected Fields list determines the sequence of the columns in the Rule View. The field at the top of the list is displayed at the left side of the table in the Rules View. The field at the bottom of the list is displayed at the right side of the table in the Rules View.

Changing the sequence of columns in the Rules View

To change the sequence of the columns in Rules View, you must move the fields in the Selected Fields list up or down.

If you have selected the Enable tooltips check box on the General page of the Properties notebook, you can browse the function of each button below the list by moving the cursor over the buttons.

Rules Sort

On this page of the Properties notebook, you can specify the columns that you want to sort in ascending or descending order in the Rules View. You can also specify the sequence in which the columns are sorted.

The Rules Sort page and the Rules Column page are related. The fields that are contained in the Column Fields list on the Rules Sort page are the fields that you moved from the Available fields list to the Selected fields list on the Rules Column page. These fields are included as columns in the Rules View.

Specifying the sort order of columns

To specify the columns that you want to sort in ascending or descending order, you must move one or more fields from the Columns Fields list to the Fields Used to Sort list on the Rules Sort page.

When you move a field from the Columns Fields list to the Fields Used to Sort list, the default sort order is set to ascending. The sort order is indicated by the arrow pointing to the bottom or to the top at the right side of the Fields used to Sort list.

Modifying the sequence of the columns

The columns in the Rules View are sorted sequentially column by column. The sequence of the fields in the Fields Used to Sort list represents the sequence in which the columns are sorted. The field at the top in the Fields used to Sort list is sorted first.

For example, you might want to specify that the records are sorted first by their ascending support value, and second by their descending rules. The column Confidence in the Rules View is not considered in the sorting. The sequence of the fields in the Fields Used to Sort list must look as shown in Figure 36.

Figure 36. The Rules Sort page of the Properties notebook
This graphic shows the Rules Sort page of the Properties notebook.

The records of the model are sorted first by their ascending support value. There might be, for example, 5 records that have the same support value of 40%. These records are then sorted by their rules in descending order. See Figure 3 for the Rules View sorted by ascending support values and descending rules.

Item Sets

On this page of the properties notebook, you can specify colors for the item sets. These colors are used in the background of the table in the Item Sets View. In the Graph View, the item sets are represented as nodes in the specified color.

You can also specify to assign item set labels to the item sets in the Graph View. These item set labels contain additional information about the appropriate item set, for example, the support value, or the number of rules.

Item Set Color

You can specify colors for the item sets to indicate the highest and the lowest value for a particular field. For example, if you specify red for the highest value and yellow for the lowest value of the Support field, the background of the table in the Item Sets View and the nodes representing item sets in the Graph View are colored accordingly.

To specify colors for item sets based on the values of a particular field, follow these steps:

  1. Select the Enable item set coloring check box.
  2. Select a field from the Field for item set color drop-down list, for example, Support.
  3. Click Min. Value and select the color that you want to use for the lowest support value.
  4. Click Max. Value and select the color that you want to use for the highest value.

If you do not want to use colors, deselect the Enable item set coloring check box.

Specifying item set labels

Item set labels display the values of their fields in the Graph View. They are displayed next to each node that represents an item set. You can attach one or more labels to an item set. The sequence of the fields in the Fields for Item Set Label list determines the sequence of the values displayed in the Graph View.

For example, you might want to display the values of the following fields next to an item set:

If you chose these fields, the following values might be displayed next to a node in the Graph View:

In the Graph View in Figure 7 , the values for the field Item Set are displayed.

To specify item set labels in the Graph View, follow these steps:

  1. Select one or more fields from the Available Fields list and click > to move the fields in the Fields for Itemset Label list. You can also select >> to move all available fields in the Fields for Itemset Label list.
  2. To move a field one level up or one level down, select a field and click the appropriate button below the list. To move a field to the top or to the bottom of the list, click the appropriate button below the list.

    If you have selected the Enable tooltips check box on the General page of the Properties notebook, you can browse the function of each button below the list by moving the cursor over the buttons.

Item Sets Columns

On this page of the properties notebook, you can specify the fields that you want to include as columns in the Item Sets View.

Specifying columns for the Item Sets View

The Available Fields list includes all fields of the model. From this list, you can select fields to be included as columns in the Item Sets View.

To specify the columns for the Item Sets View, move one or more fields from the Available Fields list to the Selected Fields list.

Specifying the sequence of the columns in the Item Sets View

The sequence of the fields in the Selected Fields list determines the sequence of the columns in the table of the Item Sets View. The first field in the Selected Fields list is displayed at the left side of the table. The last field is displayed at the right side of the table.

You can change the sequence of the fields in the Selected Fields list.

If you have selected the Enable tooltips option on the General page of the Properties notebook, you can browse the function of each button below the list by moving the cursor over the buttons.

Item Sets Sort

On this page of the Properties notebook, you can specify the columns that you want to sort in ascending or descending order in the Item Sets View. You can also specify the sequence in which the columns are sorted.

The Item Set Sort page and the Item Set Column page are related. The fields that are contained in the Column Fields list on the Item Set Sort page are the fields that you moved from the Available Fields list to the Selected Fields list on the Item Set Column page. These fields are included as columns in the Item Set View.

To specify the columns that you want to sort in ascending or descending order, you must move one or more fields from the Columns Fields list to the Fields Used to Sort list on the Item Set Sort page. When you move a field from the Columns Fields list to the Fields Used to Sort list, the default sort order is set to ascending.

The sort order is indicated by the arrow pointing to the bottom or to the top at the right side of the Fields Used to Sort list. The columns in the Item Set View are sorted sequentially column by column. The sequence of the fields in the Fields Used to Sort list represents the sequence in which the columns are sorted. The field at the top in the Fields Used to Sort list is sorted first.

For example, you might want to specify that the records are sorted first by their ascending support value, and second by their descending item sets. The column Number of Rules in the Item Sets View is not considered in the sorting. The sequence of the fields in the Fields Used to Sort list must look like this:

  1. Support (ascending order)
  2. Item Set (descending order)

The records of the model are sorted first by their ascending support value. There might be, for example, 5 records that have the same support value of 40%. These records are then sorted by their rules in descending order. Figure 3 shows a table that is sorted like this.

To change the sort order, click on the Sort icon of a field in the Fields Used to Sort list. The Sort icon changes in the opposite direction.

If you have selected the Enable tooltips option on the General page of the Properties notebook, you can browse the function of each button below the list by moving the cursor over the buttons.

Show Rules

On this page of the Properties notebook, you can specify the number of rules that you want to display in the Associations Visualizer.

If you do not want to display all rules in the Graph View, you can specify to display only a subset of the rules. This helps you to get a quick overview of the model. If you specify a subset of rules, for example, 15, the first 15 rules of the model are displayed.

The subset of the rules is influenced by the following parameters that you specified on the Rules Sort page:

You can do the following tasks on the Show Rules page of the Properties notebook:

Properties specific to clustering, classification, and regression

The following properties are specific to the Classification Visualizer, the Clustering Visualizer, and the Regression Visualizer

Typically, the properties of the model properties and the visualizer properties are the same. However, in the Classification Visualizer and in the Clustering Visualizer, the model properties additionally provide the following options compared to the visualizer properties:

Charts

On this page of the Properties notebook, you can specify what the charts in your results should look like.

In general, the parameters to define the representation of a chart are the same for visualizer properties and for model properties.

Specifying the number of slices or buckets

When you are browsing the Graphics View of the Clustering Visualizer, there might be too many slices in the pie-charts or too many buckets in the histogram. This means that the graphs are too complex to be read easily.

You can reduce the number of buckets that are displayed in a histogram, or the number of slices that are displayed in a pie-chart on the Charts page of the Properties notebook.

If you reduce the number of visible buckets of a discrete numeric field, the resolution is decreased by condensing the same number of buckets into one bucket. For example, 3 buckets might be condensed into one bucket. There might remain 1 or two buckets, because the amount of intervals cannot be divided into equal buckets. These are remaining buckets. Remaining buckets are no outliers.

If you reduce the number of visible buckets of a categorical field, only the largest categories are displayed in a pie-chart or a histogram. The other categories are condensed in one category called Others.

To specify the number of slices or buckets, type a number, for example, 5, in the entry field, or modify the default value by clicking on the Up arrow or the Down arrow of the Number of slices/buckets entry field.

Specifying charts properties

On the Charts Properties window, you can specify how the charts in your results should look like.

To change the chart properties, click Change... and specify the parameters on the Charts Properties window. For more information, see Charts Properties.

Specifying the contents of the results

You can select whether you want to show the following values in the view:

You can also specify whether you want to display only the calculated distribution for the cluster, or in comparison the entire population.

Outliers are values that are considered beyond a particular range by the mining function. For each field of a model, you can define this range. For example, you might have defined a range of 39.100 to 40.900. Values that are below this range and above this range are considered as outliers. Outliers are indicated by a different color of the histogram as shown in Figure 37.

Figure 37. Outliers in a histogram
This graphic shows outliers in a histogram.

To show the following parameters in the results, select the appropriate check boxes in the Show group box:

Specifying the chart type

In the Chart types group box of the Visualizer properties notebook, you can specify a chart type generically for categorical and for discrete numeric fields.

In the Chart types group box of the Model Properties notebook, you can additionally override this generic selection by assigning a chart type to a particular field.

For example, generically, you might want to display categorical fields as pie-charts. However, particularly, you might want to display the categorical field Marital Status as table.

Figure 38. Overriding the generic selection of the chart type on the Charts page of the Model Properties notebook
This graphic illustrates how to override the generic selection of a chart type in the Model Properties notebook.

To override the generic selection for categorical fields, follow these steps on the Charts page of the Model Properties notebook:

  1. In the Chart types group box, select Pie-chart from the Categorical drop-down list.
  2. In the Field table, to override the generic specification you did for categorical fields, click the current chart type of the field Marital Status and select Table from the drop-down list as shown in Figure 38.
Note

You can override the generic specification of fields only in the Model Properties notebook.

Figure 39 shows that the categorical field Marital Status is represented as table, and the other categorical fields are represented as pie-charts.

Figure 39. The categorical field Marital Status displayed as table
This graphic shows the categorical field Marital Status displayed as table.

In the pie-charts, the inner circle shows the distribution of the field values for all records in the cluster. The outer circle indicates the distribution of the field values in the overall population.

In the histograms, the foreground bars show the distribution of the field for all records in the cluster. The background bars show the distribution of the field in the overall population.

Charts Properties

On the Charts Properties window, you can specify how the charts in your results should look like.

Depending on your specifications in the Options group box, the representation of the chart is modified in the Chart preview group box.

In the Bucket Colors group box, you can specify different colors for the buckets in histograms, or for the slices in the pie-charts.

Appearance

In the Options group box of the Charts Properties window, you can specify to display a modern representation of the charts or the representation used in the Intelligent Miner for Data Version 6.

To select a modern representation of the charts or the representation that was used in the Intelligent Miner for Data Version 6, click the Appearance list button and select the representation that you want to use.

Interval label type

You can specify to display a standard or a scientific labeling of the intervals.

In the scientific labeling, a parenthesis next to a value means that this value is excluded (open). A bracket next to a value means that this value is included (closed). Figure 40 shows the scientific interval label type in the Chart preview group box of the Charts Properties window.

Figure 40. The scientific interval label type in the chart preview
In this graphic, the scientific interval label type is selected for charts.

To select the standard or the scientific type of interval labels, click the Interval label type list button and select the type that you want to use.

Showing the coordinate system

You can specify whether to display a coordinate system in the chart.

To display the coordinate system on the chart, select the appropriate radio button in the Options group box.

Showing horizontal lines

You can specify whether to display horizontal lines that help you to read the histogram.

To display horizontal lines on the chart, select the appropriate radio button in the Options group box.

Specifying bucket colors

You can specify different colors for the different buckets.

To specify a color for one of the following buckets, double-click the appendant field of the bucket in the Color column and select the color that you want to use for this type of bucket:

Calculated population
Buckets showing the numbers of records in a given range and cluster.
Outlier population
Buckets showing the numbers of records with outlier values in a given range and cluster.
Overall population
Buckets showing the total number of records in a given range.
Overall outlier population
Buckets showing the total numbers of records with outlier values in a given range.

These records are specially treated by the mining function when creating a model.

Missing values
Buckets showing the number of records with missing values in a cluster.
Invalid values
Buckets showing the number of records with invalid values in a cluster.
Left outliers
The cumulation of all the buckets that are not visible at the left side of the graph because of the value that you specified in the Number of slices/buckets entry field on the Charts page of the Properties notebook.
Right outliers
The cumulation of all the buckets that are not visible at the right side of the graph because of the value that you specified in the Number of slices/buckets entry field on the Charts page of the Properties notebook.
Other
Buckets that are subsumed in one bucket based on a minimum value specified for opening an own bucket.

Color Coding

On this page of the Model Properties notebook, you can specify whether you want to use colors to highlight particular properties of the clusters. You can also specify colors or patterns for categories.

Figure 41. The Color Coding page of the Properties notebook
This graphic shows the Color Coding page of the Model properties notebook.

Enabling cluster coloring

You can use colors to highlight particular properties of the clusters. Using colors is the default setting.

If you deselect this option, the clusters are displayed on white background.

If you use colors, you can color the clusters by the following parameters:

If you are using a Demographic Clustering model and select the Algorithm-specific information check box on the General page of the Visualizer properties notebook, you can also color the clusters by their homogeneity values.

If you want to color the clusters by aggregation or average values, you must also specify the field that contains the values that you want to aggregate or calculate the average of.

White color represents the expected value that is calculated from the existing records. The expected value represents the overall average. The values are mapped to colors in the color scale according to the following rules:

To color clusters by their field values, follow these steps:

  1. Click the Color Cluster by list button and select the parameter that you want to use from the drop-down list, for example, Size.

    Note that the option Homogeneity is only included in this list if you have selected the Algorithm-specific information check box on the General page of the Visualizer Properties notebook.

  2. To specify the background color for the lowest value of the selected parameter, click Min. Value on the color scale and select a color, for example, dark blue.
  3. To specify the background color for the highest value of the selected parameter, click Max. Value on the color scale and select a color, for example, dark green.

Enabling category coloring

You can use colors or patterns to differentiate between the categories of the model. If you select patterns, the categories are represented in different patterns, for example, lines, grids, or dots.

By default, the Enable category coloring check box is selected. If you want to use patterns to differentiate between the different categories, deselect the Enable category coloring check box.

To change the color or the pattern of a category, double-click the appendant field of the category in the Color or the Pattern column and select a different color or pattern from the list.

Properties specific to classification and regression

The following properties are specific to the Classification Visualizer and the Regression Visualizer.

Gains/Lift

On the Gains/Lift page of the Properties notebook, you can specify how the Gains Chart or the Lift Chart looks like. Figure 42 shows the Gains/Lift page of the Properties notebook.

Figure 42. The Gains/Lift page in the Properties notebook
This graphic shows the Gains/Lift page in the Properties notebook

You can do the following tasks on the Gain/Lift page of the Properties notebook:

Selecting the chart type
You can select a different chart type by clicking the arrow of the Chart type drop-down list and selecting a different chart type from the list, for example, Cumulative Lift.

Depending on the selected chart type, the appropriate values are displayed in the Chart Data table.

For classification models, the default chart type is the Gains Chart. For regression models, the default chart type is the Lift Chart.

Modifying the scale of the chart
You can modify the scale of the x-coordinate and the y-coordinate of a chart by selecting the appropriate radio buttons for the following scaling options:
x-Axis

On the x-axis of every chart, you can display absolute values or the percentage of the number of records.

  • Selecting the absolute radio button displays the number of records on the x-axis.
  • Selecting the % of records radio button displays the percentage of the number of records on the x-axis.
y-Axis Gains

On the y-axis of the Gains Chart of a classification model, you can display the number of records with the specified target value or the corresponding percentage.

  • Selecting the absolute radio button displays the number of records with the specified target value on the y-axis.
  • Selecting the % of maximum radio button displays the percentage of records with the specified target value on the y-axis.

On the y-axis of the Gains Chart of a regression model, you can display the sum of target values of records or the corresponding percentage.

  • Selecting the absolute radio button displays the sum of target values of records on the y-axis.
  • Selecting the % of maximum radio button displays the percentage of the sum of the positive target values of records on the y-axis.
y-Axis Lift

On the y-axis of the Lift Chart of a classification model, you can display the number of positive cases or the percentage of the number of positive cases.

  • Selecting the average radio button displays the average percentage of positive cases.
  • Selecting the Lift factor radio button displays the percentage of the number of positive cases.

On the y-axis of the Lift Chart of a regression model, you can display the average amount of the target field value or the lift factor.

  • Selecting the average radio button displays the average amount of the target field value.
  • Selecting the Lift factor radio button displays the lift factor.
Hiding the coordinate system
You can hide the coordinate system by deselecting the Coordinate system radio button.
Hiding horizontal lines
You can hide the horizontal lines in the background of a chart by deselecting the Horizontal lines radio button.
Hiding boundary values
You can hide the Boundary Values table in the Data Chart section by deselecting the Boundary values radio button.
Displaying a vertical and a horizontal line
You can display a vertical line from the x-coordinate to the curves in the chart, and a horizontal line from this intersection to the y-coordinate by selecting the Vertical/horizontal line for selected check box.
Hiding markers
You can hide the markers on the curves by deselecting the Marker radio button.

Markers help you to differentiate between the different curves.

Specifying the background color of charts
You can specify the background color of the Gains Chart or the Lift Chart by clicking the arrow of the appropriate drop-down list.
Specifying the appearance of the curves
You can specify the appearance of the curves by clicking into the appropriate field in the table, for example, you might want to change the color of the optimum curve. A drop-down list is displayed where you can select the color that you want to use for the optimum curve.
Restoring default settings
After you have changed the default settings, you can restore them by clicking Restore Defaults.

Properties specific to the Clustering Visualizer

With the Clustering Visualizer, you can specify to show algorithm-specific information or to show the clusters according to the PMML standard.

The Clustering Visualizer also provides additional properties to sort clusters by different criteria.

General

On the General page of the Properties notebook, the Clustering Visualizer provides the following options additional to the options that are common to all visualizers:

Show algorithm-specific information
You can select this option, if you want to list the characteristics of the clusters in the Clustering Visualizer.
Show clusters according to PMML standard
You can select this option, if you want to display the clusters that are used for scoring. The clusters are according to the PMML standard.

Use this option if backward compatibility to IM Visualization Version 8.1 is not important.

The options that are common to all visualizers are described in General.

Sorting

This page is only available in the Properties Notebook of the Clustering Visualizer.

On this page of the Properties notebook, you can sort clusters and fields by different criteria.

Sorting clusters

You can sort clusters by the following criteria:

Aggregation
If you select this option, the clusters are sorted by their aggregation values of a particular field. You must specify the field that you want to use for sorting by aggregation value.

For example, you might want to use the field Number of Claims for sorting. The clusters are sorted in ascending or descending order by the number of claims in each cluster.

Average
If you select this option, the clusters are sorted by the average value of a particular field. You must specify the field that you want to use for sorting.

For example, you might want to sort the clusters by their average age values. Cluster 1 contains 20 customers. The age of the 20 customers is added up and divided by 20. The average value of the field Age is calculated like this for all clusters. The clusters are sorted in ascending or descending order by their average values of the field Age.

Homogeneity
This option is only available if you use a Demographic Clustering model, and if you have selected the option Algorithm-specific Information on the General page of the Properties notebook.

If you select this option, the clusters are sorted by the homogeneity of the clusters.

Some of the clusters might contain values that lie relatively far apart though they are classified in the same cluster. Other clusters might contain values that lie close together. The closer together these values are, the higher is the homogeneity of this cluster.

Cluster ID
If you select this option, the clusters are sorted by their cluster ID. Numbers are treated as strings. That means that numbers are sorted like this: 1, 11, 12, 2, 3, 4.
Name
If you select this option, the clusters are sorted alphabetically. Numbers are treated as strings. That means that numbers are sorted like this: 1, 11, 12, 2, 3, 4.
Size
If you select this option, the clusters are sorted by their size. The largest cluster is displayed at the top of the list, the smallest cluster is displayed at the bottom of the list.

To sort the clusters, follow these steps:

  1. Click View => Sort... on the menu bar of the Clustering Visualizer.
  2. On the Sorting page of the Properties notebook, select the option that you want to use from the Sort clusters by drop-down list.

    If you want to sort clusters by their average or aggregation values, you must also select the field that you want to use for sorting.

Sorting fields

You can sort fields by the following criteria:

Chi-Squared
If you select this option, the fields are sorted by their chi-squared values.
Homogeneity
If you select this option, the fields are sorted by their density values.
Name
If you select this option, the fields are sorted alphabetically.

To sort the fields, follow these steps:

  1. Click View => Sort... on the menu bar of the Clustering Visualizer.
  2. On the Sorting page of the Properties notebook, select the option that you want to use from the Sort fields by drop-down list.

Working with databases

Before you can work with Oracle databases, check that the Oracle JDBC driver is specified in the system CLASSPATH.

If you want to work with a database, you can use the default settings of IM Modeling, or you can create database profiles.

Database profiles contain the metadata that is required to read models from a database table or to save models to a database table. The metadata contains the following parameters:

Model description, Model type, and Model properties are optional fields.

For each database table that you want to access, you must create a database profile. The database profile is created once. It is automatically saved locally on your computer.

When you are opening or saving a model, you can select a database profile from the list of database profiles on the Database page of the Open Model window or the Save Model window, or you can create a new database profile.

Creating database profiles

To create a database profile, follow these steps:

  1. In one of the Intelligent Miner Visualizers, for example, the Classification Visualizer, click File => Open... to display the Open a New Model window.

    You can also click File => Save As... to display the Save Model window.

  2. On the Open a New Model window, select the Use a profile radio button and click New to display the Add New Database Profile window. The Add New Database Profile window is shown in Figure 43.
  3. On the Add New Database Profile window, follow these steps:
    1. Type a name for the database connection profile in the Profile name entry field, for example, ModelDB2-Table1.
    2. The JDBC driver entry field displays the Java class name of the universal DB2 driver. It is com.ibm.db2.jcc.DB2Driver.

      If you want to use a different JDBC driver, overwrite the entry with the name of the JDBC driver of the database that you want to use, or select another JDBC driver from the drop-down list. For example, if you want to use the JDBC type 2 driver, you must type com.ibm.db2.jdb.app.DB2Driver in the JDBC driver entry field.

      For more information, refer to the appropriate documentation or ask your system administrator.

    3. Depending on the JDBC driver that you have specified in the JDBC driver entry field, type the appropriate uniform resource locator (URL) of the database that you want to use in the Database URL entry field. For example, if you want to use the universal DB2 JDBC driver that is located on your computer, type the following specification in the Database URL entry field:
      jdbc:db2://localhost:50 000/<dbname>
      where:
      • localhost denotes the host name
      • 50 000 denotes the port number
      • <dbname> denotes the name of the database

      If you want to use the JDBC type 2 driver, you must specify jdbc:db2:MODELS in the Database URL entry field, where MODELS denotes the name of the database on the host.

      For more information, refer to the DB2 documentation or ask your system administrator.

    4. Type the user ID that you want to use in the User ID entry field, for example, db2inst1.
    5. Click Retrieve Database Information.
    6. On the Logon dialog, type the password that you received from your system administrator in the appropriate entry fields and click OK.

      After you have retrieved the database information, the table schema and the table names that are available on the selected database are included in the appropriate drop-down lists in the Database Properties group box.

      The following drop-down lists in the Column Names group box also contain the column names and the appropriate types that are available on the selected database:

      Primary key
      Integer or string
      Model name
      String
      Model data
      CLOB or BLOB

      If you select a CLOB column as model data column, you can save models only in pure PMML format without compression. If you select a BLOB column, you can use all of the available formats.

      (Model description)
      String
      (Model type)
      String
      (Properties)
      BLOB

      The column names that are included in brackets are optional fields.

    7. Select the table schema, the table name, and the column names that you want to use from the appropriate drop-down lists. You can also type this information in the entry fields.

      In the tables that are used by IM Scoring or IM Modeling, the model name is used as primary key. If you use such tables, select the same column for the primary key and the model name.

    8. Click OK to close the Add New Database Profile window.

The new database profile is included in the list of database profiles in the Database Profiles group box on the Database page of the Open Model Window.

Opening models

You can open data mining models and their properties in your local file system or in different databases.

For more information about opening models in your local file system, see Opening models.

To open a model in a database, follow these steps:

  1. In one of the Intelligent Miner Visualizers, for example, the Classification Visualizer, click File => Open ... to display the Open a New Model window.

    You can also click File => Open In New Window....

    If you want to increase the size of the Open a New Model window, drag one of the corners of this window to the desired position on the screen.

  2. In the Open a New Model window, click the Database tab to display the Database page of the Open a New Model window.
  3. On the Database page of the Open a New Model window, you can select one of the following radio buttons:
    Use defaults from IM Modeling
    Use this option, if your models are created with the default settings of IM Modeling in a DB2 database.
    Use a profile
    Use this option, if you want to use database profiles.

    For more information, see Creating database profiles.

    If you want to use a database profile, you can create a new profile by clicking New, or you can select one of the existing profiles from the Profile name drop-down list.

  4. To use the defaults from IM Modeling, type the following specifications in the appropriate entry fields:
    Database name
    The name of the database that you want to connect to.

    You can connect to databases on your computer or to databases on remote servers.

    Host name
    The host name where the specified database is located.

    If the database is located on your computer, the host name is localhost.

    Port number
    The number of the port where the specified database is located.

    If the database is located on your computer, the default port number is 50 000.

  5. On the Database page of the Open a New Model window, click Connect to display the models that are available in the database that you have specified in the Existing Models group box.
  6. On the Logon pop-up window, type your user ID and your password in the entry fields and click OK.
  7. In the Existing Models group box, select a model from the list and click OK.

    Figure 44 shows the Database page of the Open a New Model window with the models that are stored in the database IMEM. You can see that this database is located on your system, because localhost is specified for the host name and 50 000 is specified as port number.

Figure 44. The Database page of the Open a New Model window
The graphic above shows the models that are stored in the database IMEM. It also shows that this database is located on your system, because local host is specified as host name and 50 000 is specified as port number.

If the Transmission Control Protocol Internet Protocol (TCPIP) is not configured for DB2 on your computer, you must use the following commands and restart DB2:

db2set DB2COMM=TCPIP 
db2 update dbm cfg using svcename 50000

Saving models

To save a model in a database, follow these steps:

  1. In one of the Intelligent Miner Visualizers, for example, in the Clustering Visualizer, click File => Save As ....
  2. In the Save Model window, click the Database tab to display the Database page of the Save Model window.
  3. On the Database page of the Save Model window, you can select one of the following radio buttons:
    Use defaults from IM Modeling
    Use this option, if your models are created with the default settings of IM Modeling in a DB2 database.
    Use a profile
    Use this option, if you want to use database profiles.

    For more information, see Creating database profiles.

    If you want to use a database profile, you can create a new profile by clicking New, or you can select one of the existing profiles from the Profile name drop-down list.

  4. To use the defaults from IM Modeling, type the following specifications in the appropriate entry fields:
    Database name
    The name of the database that you want to connect to.

    You can connect to databases on your computer or to databases on remote servers.

    Host name
    The host name where the specified database is located.

    If the database is located on your computer, the host name is localhost.

    Port number
    The number of the port where the specified database is located.

    If the database is located on your computer, the default port number is 50 000.

  5. On the Database page of the Save Model window, click Connect to display the models that are available in the database that you have specified in the Existing Models group box.
  6. On the Logon pop-up window, type your user ID and your password in the entry fields and click OK.
  7. On the Database page of the Save Model window, specify the following parameters in the New Model group box:

    You can also overwrite an existing model by selecting a model from the list of existing models as shown in Figure 45.

  8. Select the format that you want to use from the Format drop-down list.
  9. Click Save to save the model in the database.

Figure 45. The Database page of the Save Model window
This graphic shows the Database page of the Save Model window.

Performing common tasks

You can perform different tasks in all views of the Intelligent Miner Visualizers by clicking an icon in the tool bar or selecting a task from the menu bar. In all visualizers, you can right-click on objects to display a pop-up menu that covers the most commonly-used features of the appropriate visualizer.

In some of the views of the Intelligent Miner Visualizers, you can do tasks that are specific to this particular view. For example, fanning in or fanning out is specific to the Associations Visualizer. These specific tasks are described in the appropriate chapters.

There are common tasks that you can do in most of the views of the Intelligent Miner Visualizers. These common tasks are described in the following sections. The tasks are sorted in alphabetical order.

Cloning windows

Cloning a window means to copy a window. The view of the cloned window is synchronized with the view of the original window. This means, if you show or hide items in the cloned window, these items are also shown or hidden in the original window, or vice versa. However, you can independently select items in a window. For example, if you select items in the cloned window, these items are not selected in the original window.

You can clone one or more windows from the original window or from a cloned window.

To clone a window, you can do one of the following actions:

Closing windows

You can open several Visualizer windows. There is no warning dialog, when you close these windows. However, if you have modified a model without saving it, and you want to close the last window of this model, a warning dialog lets you save or discard these modifications.

To close the current window, you can do one of the following actions:

If you want to shut down the Intelligent Miner Visualizers, a confirmation dialog is displayed if you must close more than one window, or if you need to save models that you have previously modified.

To shut down the Intelligent Miner Visualizers, you can do one of the following actions:

Collapsing and expanding sections

Some of the views of the Intelligent Miner Visualizers contain several sections.

To collapse or expand sections, you can do one of the following actions:

Copying

You can copy text strings, tables, or parts of tables to the clipboard to paste them into a different application.

To copy a selected item into the clipboard, you can do one of the following actions:

You can also copy graphs of the visualizer by following these steps:

  1. In one of the visualizer views, export the view that you want to copy by clicking File => Export.
  2. On the Save window, specify a directory and a file name for the view that you want to export. The file type must be HTML.
  3. Open the HTML file that contains the exported view with a browser.
  4. In the browser, you can copy the view.

Displaying help information

To display help information, you can do one of the following actions:

Displaying product information

To display the product information, click Help => Product Information....

The Product Information dialog is displayed.

Editing

The following commonly used edit functions are available in the Intelligent Miner Visualizers:

Exporting views

You can export views that contain textual information or tables to flat files in comma separated format (CSV). You can import these flat files in applications like Lotus(R) 1-2-3(R) or Microsoft(R) Excel.

If you export views that include percentages, these percentages are exported as fractions. For example, if a table contains the value 23.92%, this value is exported as 0.2392.

You can also export views to HTML files.

Exception

You can export the Graph View of the Associations Visualizer only to GIF format.

To export a view, follow these steps:

Hiding GUI components

The following GUI components are displayed by default:

To hide one or all of these components, for example, to hide the tool bar, click View => Tool Bar.

Opening models

You can open new models in the same window or in a different window. You can open these models in the local file system or in a database. For information about opening models in a database, see Opening models.

To open a model in the local file system, follow these steps:

You can also use the keyboard shortcut Ctrl+O to display the Open a New Model window.

Saving models

You can save the current model and its properties to a new file in the local file system or in a database. For information about saving models in a database, see Saving models.

To save a model to the current location, you can do one of the following actions:

To save a model to different locations in the local file system, follow these steps:

  1. Click File => Save As ....
  2. On the Local File System page of the Save Model window, specify a directory, a file name, a file type, and click Save.

Modifying table columns

You can modify the width of the table columns by placing the cursor on the border between the column headers, holding down the left mouse button, and dragging the border to the left or to the right side.

Printing

To print the current view, you can do one of the following actions:

The Print dialog is displayed where you can specify the printer of your choice.

You can preview the current view that you might want to print by selecting File => Print Preview.

The options for the page layout vary on the different operating systems.

To specify the layout of your printouts, click File => Page Setup and specify the page layout that you want to use, for example, Portrait or Landscape.

Sorting table rows

You can sort the rows in a table according to the values of a particular column. The sort order is ascending or descending.

To change the sort order of table rows, click the header of a column repeatedly.

Splitting windows

You can look at two views simultaneously by splitting the window vertically. For example, if you are currently looking at the Graph View of the Associations Visualizer, you might simultaneously want to look at the Statistics View or at the Rules View.

To split the window to look simultaneously at another view, for example, the Statistics View, select View => Split Window => Statistics View.

You can also right-click on the tab of the view that you want to display in the second pane and click Show In the Right Pane.

To restore the original view, right-click on the tab of the view that you want to display in the window.

To restore the previous view, select View => Split window => Remove split.

Using the Intelligent Miner Visualization Applet

Besides installing the Intelligent Miner Visualizers on your computer and using them as standalone product, you can install the Intelligent Miner Visualizers on a Web server and use them as a Java applet embedded in an HTML document.

You can store the HTML documents that embed the Intelligent Miner Visualization Applet on a Web server. You can view the HTML documents on the intranet with a Java enabled Web browser, for example, with Netscape or with Internet Explorer. An installation on clients is not required.

If you use the Intelligent Miner Visualization Applet, you can deploy the same features and the same interactions as if you had installed the Intelligent Miner Visualizers on your computer.

Introducing the Intelligent Miner Visualization Applet

If you install the Intelligent Miner Visualizers on a Web server and embed the Intelligent Miner Visualization Applet in an HTML document, the Intelligent Miner Visualizers are available for multiple users with a central point of installation.

To use the Intelligent Miner Visualization Applet on the intranet, you must embed the visualizer that shows the model that you want to publish in an HTML document and send the URL of the HTML document to the team members who are supposed to view the model. To view the model, the team members must click the link in the HTML document. The visualizer is displayed on their screens showing the model that you have provided.

The graphical user interface of the Intelligent Miner Visualization Applet is the same as if you had installed the Intelligent Miner Visualizers on your own computer. After the Intelligent Miner Visualization Applet is started, you can open, modify, save, or print models that are located in your local file system on your computers or in a database.

Providing the Intelligent Miner Visualizers as Java applet on a Web server includes the following key advantages:

Hardware and software requirements

You can install the visualizer applet on any Web server on any operating system.

On the clients, you need additionally a Java enabled Web browser with a Java Virtual Machine Version 1.3 or higher. There is no disk space required.

For more information about the software requirements, see Installing the Intelligent Miner products.

The following browsers are supported:

On Windows operating systems
On UNIX operating systems

The Sun Java Plug-in extends the capabilities of the browser. With this plug-in, you can run applets under Sun's Java 2 Runtime Environment (JRE) rather than the Java Runtime Environment that is provided by the Web browser.

The Sun Java Plug-in is part of Sun's JRE. If you have installed the JRE Version 1.3 or higher on your client, the Sun Java plug-in is already installed in the Web browser. If the Sun Java plug-in is not installed, or if you are using an older version, you are automatically redirected to Sun's Web site where you can download and install the Sun Java plug-in.

Preparing the Web server

To publish mining models on a Web server by using the Intelligent Miner Visualization Applet, you must follow these steps:

  1. Copying the visualization libraries to the Web server.
  2. Preparing one or more HTML documents on the Web server.
  3. Copying the models that you want to display to the Web server.

    If you do not want to copy the models to the Web server, you can specify one of the following locations to dynamically transfers the data of the models to the client:

You can use any directory structure to store the libraries, the HTML documents, and the model on the Web server. For example, you might want to use the following structure:

public_html/
   lib/ 
   models/
   model1.html

where:

Copying the visualizer libraries to the Web server

You must copy the visualizer libraries from the standalone installation on your computer to the Web server.

If you have not changed the installation directory during installation, the visualizer libraries are stored in the following directories:

AIX operating system
/usr/lpp/IMVisualization/lib/
Linux operating system
/opt/IMVisualization/lib/
Solaris operating environment
/opt/IMVisualization/lib/
Windows
C:\Program Files\IBM\IMVisualization\lib\

You must copy all files that are stored in the lib directory of the installation path to lib directory on the Web server.

Including the Intelligent Miner Visualization Applet in HTML documents

You can select between the following options to include the Intelligent Miner Visualization Applet in HTML documents:

Syntax to embed the Intelligent Miner Visualization Applet

To embed the Intelligent Miner Visualization Applet in an HTML document, you might want to include the following syntax in the HTML code of the document at the location where you want the Intelligent Miner Visualization Applet to appear:

<applet 
code="com.ibm.iminer.visualizer.applet.IDMVisualizerApplet"
codebase="lib" 
archive="imvisu.jar"
width="540"
height="540">
<param name=" PARAM NAME #1" value="PARAM VALUE #1 "> 
<param name=" PARAM NAME #2" value="PARAM VALUE #2 ">
...
</applet>

Parameters to embed the Intelligent Miner Visualization Applet

You can specify values for the following parameters:

code
com.ibm.iminer.visualizer.applet.IDMVisualizerApplet
To embed the complete visualizer
com.ibm.iminer.visualizer.applet.IDMMiningViewApplet
To embed a particular view only
codebase
You must specify the location of the libraries relative to the HTML document:
"."
The visualizer libraries are located in the same directory as the HTML document.
"../lib"
The visualizer libraries are located in a directory that is higher than the directory where the HTML document is stored.
archive
You must always specify the value "imvisu.jar". This means that the main Jar File that the browser must load is imvisu.jar. Do not change this parameter.

If you want to access a database, you must add the name of the file that contains the JDBC driver. The values for the parameter archive might look like this: "imvisu.jar,db2java.zip".

width, height
The parameters width and height define the size of the Intelligent Miner Visualization Applet on the HTML page in pixels.
param name
With the following coding between the start tag and the end tag of an applet, you can define parameters to modify the behavior of the visualizer applet:
<param name="PARAM NAME" value="PARAM VALUE">

For example, you might want to use the parameter model to define the URL where the model that you want to display is located. You can use absolute or relative URLs. The file that contains the model that you want to display might be called model.xml. It might be located on the Web server in the directory models/. The syntax looks like this:

<param name="model" value="models/model.xml">

If you omit the parameter model, a File Open dialog is displayed when you are launching the visualizer. See the sample file index.html that resides in the installation directory ../IMVisualization/lib/samples/applet/ of the Intelligent Miner Visualizers. See Copying the visualizer libraries to the Web server for the installation directories.

Parameters to open the complete Intelligent Miner Visualizers

You can use one or more of the parameters that are shown in the following table to open the complete Intelligent Miner Visualizers:

Table 9. Optional parameters to open the entire visualizer as applet
Parameter name Default value Description
model None Path or URL of the model to be loaded. If the path is relative, the model is searched at a location relative to the HTML document.
embedded False If the value is 'true', the visualizer is embedded in the HTML document like a graphic. If the value is 'false', the HTML document contains a push button to launch the visualizers in a seperate window.
startButtonLabel "Start..." Defines the text of the push button in the HTML document, for example, Visualizer.
noClone False If the value is 'true', the menu choice File => New Window is not available.
noOpen False If the value is 'true', the menu choice File => Open => Open In New Window is not available.
noSave False If the value is 'true', the menu choice File => Save => Save As... is not available.
noExport False If the value is 'true', the menu choice File => Export... is not available.
noPrint False If the value is 'true', the menu choice File => Print... => Print Preview is not available.
noEditProperties False If the value is 'true', the menu choice File => Edit Visualizer Properties is not available.
noLocalProperties False If the value is 'true', the visualizer does not load or save user properties from the local file system.
Locale Optional If this parameter is not specified, the visualizer uses the locale of the client, or the locale that you specified in the Visualizer Properties notebook.

Parameters to open a particular view of the Intelligent Miner Visualizers

You can use one or more of the parameters that are shown in the following table to open a particular view of the Intelligent Miner Visualizers:

Table 10. Optional parameters to open a particular view as applet
Parameter name Default value Description
model None Path or URL of the model to be loaded. If the path is relative, the model is searched at a location relative to the HTML document.
view Required The name of the view to be displayed: Associations Visualizer:
  • 'rules'
  • 'itemSets'
  • 'graphical'
  • 'statistic'
Clustering Visualizer:
  • 'graphical'
  • 'textual'
  • 'detailed'
Classification Visualizer:
  • 'quality'
  • 'classificationl'
  • 'tree'
  • 'treeNavigator'
  • 'treeNodeDistribution'
  • 'detailed'
noLegend False If the value is 'true', the legend is not displayed.
noMenuBar False If the value is 'true', the menu bar is not displayed.
Locale Optional If this parameter is not specified, the visualizer uses the locale of the client, or the locale that you specified in the Visualizer Properties notebook.

Parameters to open a model that is stored in a database

You must specify the parameters that are shown in the following table to open a model that is stored in a database:

Table 11. Required parameters to open a model in a database
Parameter name Description
JDBC_URL JDBC URL of the database that you want to connect to. This is the URL for DB2: jdbc:db2://hostname/DatabaseName
JDBC_Driver The class name of the JDBC Driver to be used to connect with the database. This is the name of the JDBC driver for DB2: COM.ibm.db2.jdbc.net.DB2Driver
DBUserName The name of the user who wants to connect to the database.
DBPassword The password of the user who wants to connect to the database.
DBTable The name of the table.
DBPrimaryKeyCol The name of the column that contains the primary key of the models.
DB2ModelCol The name of the column containing the models.
DBModelPropCol The name of the optional column that contains the visualizer properties of the models.
DBModelKey The key of the model to be loaded.

Using Netscape or Internet Explorer

When you have completed the HTML document, you can test it by uploading it on the server, and opening it with Netscape Version 6.0 or higher, or Mozilla. If you use the same directory structure on the Web server and on your local file system, and if you have stored the visualizer libraries locally on your computer, you can test the HTML document by opening it in your Web browser. You need not go to the Web server.

Netscape 4.x and Internet Explorer do not include the Java Runtime Environment Version 1.3 or higher. Therefore you must use Sun's Java Plug-in. This requires a different syntax. For more information, see this cahpter in the Java Plug-in 1.4 Developer Guide.

In the Java 2 SDK Version 1.3 or higher, Sun provides an HTML converter. Before uploading the HTML document to the Web server, you must use the HTML converter to convert HTML documents that are written for Netscape Version 6.0 or higher, or for Mozilla, to HTML documents that can be opened with Netscape 4.x or Internet Explorer.

You can download Sun's SDK.

The HTML converter is included in the SDK. For information about how to use the HTML converter, see this documentation.

For more information about the Java Plug-in, see the general documentation.

Performance considerations

The download time of the Intelligent Miner Visualization Applet depends on the performance of the network that you are using. When you open an HTML document that embeds the Intelligent Miner Visualization Applet, the following files are downloaded from the server to the client:

The other libraries are downloaded when they are required. For example:

You can improve the download time of the Intelligent Miner Visualization Applet by using models stored in Visualizer format. Because this format is compressed, it can be up to 10 times smaller than a model in PMML format.

Appendix A. Accessibility

Accessibility features help users who have a physical disability, such as restricted mobility or limited vision, to use software products successfully.

The following list describes the major accessibility features of the Intelligent Miner Visualizers:

The following sections explain how to use these accessibility features.

Colors and patterns

In all Intelligent Miner Visualizers, you can choose between a colored or a black and white representation of the graphs and the associations rules. By default, the graphs are presented in colors that can be easily differentiated by color-blind users. For example, most of the color-blind people have difficulties in differentiating between green and red colors. Therefore, these colors were not used as default values.

Classification Visualizer and Clustering Visualizer

In the Classification Visualizer and in the Clustering Visualizer, you can select colors or a black and white representation of the graphs.

You can also use patterns instead of colors to differentiate between the categories in pie-charts.

You can modify the default settings by clicking File => Visualizer Properties => Color Coding.

You can also double-click on the legend to display the Color Coding page of the Properties notebook.

Associations Visualizer

In the Associations Visualizer, you can select colors or a black and white representation of the rules and the item sets.

You can modify the default settings of the rules by selecting File => Visualizer Properties => Rules.

To modify the default settings of the item sets, select File => Visualizer Properties => Item Sets.

Keyboard shortcuts

When you are using the Intelligent Miner Visualizers, you can use keyboard shortcuts for the most frequently used tasks. These keyboard shortcuts are described in the following sections.

Opening menus

Table 12. Opening menus
Task Keyboard shortcut
Moving the focus to the menu bar F10

Table 13. Navigating in views
Task Keyboard shortcut
Moving the focus from the page tab to the view content Ctrl+Down arrow
Moving the focus from the view content to the page tab Ctrl+Up arrow
Moving the focus from page tab to page tab of split views and reverse Ctrl+Tab and Ctrl+Shift+Tab
Moving the focus within a split view when focus is not on the page tab and reverse Ctrl+Tab and Ctrl+Shift+Tab
Changing the location of the split bar Arrow keys, Home, End

Keyboard shortcuts in tables

Table 14. Keyboard shortcuts in tables
Task Keyboard shortcut
Moving the focus between cells Arrow keys or Tab
Moving the focus to the leftmost cell in the row Home
Moving the focus to the rightmost cell in the row End
Moving the focus to the first cell in the current column Ctrl+Home
Moving the focus to the last cell in the current column Ctrl+End
Moving the focus one page down Page Down
Moving the focus one page up Page Up
Moving the focus or the selection one row down Enter
Selecting all cells in a table Ctrl+A
Selecting a single cell or row Spacebar
Changing the selection state of a cell or row Ctrl+Spacebar
Extending the selection one row down Shift+Down arrow
Extending the selection one row up Shift+Up arrow
Extending the selection from the anchor point to the cell or row that has the focus Shift+Spacebar
Extending the selection from the anchor point one page down Shift+Page down
Extending the selection from the anchor point one page up Shift+Page up

Keyboard shortcuts for specific controls

Table 15. Keyboard shortcuts for specific controls
Task Keyboard shortcut
Opening a drop-down list or a combo box Alt+Down arrow
Editing a table cell F2

Navigating in the Graph View of the Associations Visualizer

Table 16. Navigating in the Graph View of the Associations Visualizer
Task Keyboard shortcut
Selecting or deselecting a node (item set) or an arrow (rule) Spacebar
Moving the focus to the rules that are connected to a node Arrow keys
Moving the focus from an arrow back to the previously selected node Home
Moving the focus from an arrow forward to the next node End
Moving the focus to subgraphs Tab
Selecting all objects in a subgraph Ctrl+G
Selecting entire graph Ctrl+A
Inverting selection Ctrl+E
Scroll graph horizontally Alt+Left arrow, Alt+Right arrow
Scroll graph vertically Alt+Up arrow, Alt+Down arrow

Large fonts on black or white background

The Intelligent Miner Visualizers provide the following window styles:

To modify the default settings for the window style, click File => Visualizer Properties. On the General page of the properties notebook, click the Window style list button, select, for example, High contrast, black on white, large fonts, and click OK or Apply.

If you want to go back to the previous selection of the window style, click the Undo icon on the tool bar. You can also select Edit => Undo, or use the keyboard shortcut Ctrl+Z.

Appendix B. Menu bar choices

This chapter summarizes the menu bar choices of the Intelligent Miner Visualizer framework.

File menu

Table 17. File menu
Menu bar choices Actions Keyboard shortcut
File => New Window Cloning the current window. Cloned windows do not affect other views. Ctrl+N
File => Open... Loading a new model into the visualizer in the same window. -
File => Open in New Window Loading a new model into the visualizer in a different window. Ctrl+O
File => Save Saving the modified model to the current location from where the model is loaded. Ctrl+S
File => Save As... Saving the current model and properties by specifying a new file name. -
File => Export... Saving the contents of the current view to a specified HTML or CSV file. -
File => Page Setup... Specifying the layout and the margins of the file to be printed. -
File => Print Preview Viewing the page layout of the file to be printed. -
File => Print Specifying a printer and printing the current view. Ctrl+P
File => Model Properties Specifying properties for the current model. -
File => Visualizer Properties Specifying properties for all models. -
File => Close Closing the current window. -
File => Exit Closing the Intelligent Miner Visualizers. -

Edit menu

Table 18. Edit menu
Menu bar choices Actions Keyboard shortcut
Edit => Undo Undoing previous action. Ctrl+Z
Edit => Redo Redoing previous action. Ctrl+Y
Edit => Copy Copying the table in ASCII format to the clipboard. Ctrl+C
Edit => Select All Selecting all items in a view. Ctrl+A
Edit => Invert Selection Inverting the previous selection. Ctrl+E

Selected menu

Table 19. Selected menu
Menu bar choices Actions Keyboard shortcut
Selected => Hide Hiding previously selected items. -
Selected => Show Showing previously selected hidden items. -

View menu

Table 20. View menu
Menu bar choices Actions Keyboard shortcut
View => Split Window Displaying another view simultaneously in a second pane. -
View => Legend Toggling the display of a legend on the visualizer interface. -
View => Tool Bar Toggling the display of a tool bar on the visualizer interface. -
View => Status Bar Toggling the display of a status bar on the visualizer interface. -

Help menu

Table 21. Help menu
Menu bar choices Actions Keyboard shortcut
Help => Help Topics Displaying the table of contents of the help topics. -
Help => Product Information Displaying the name and the current version of the visualizer. -

Appendix C. Notices

IBM may not offer the products, services, or features discussed in this document in other countries. Consult your local IBM representative for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any IBM intellectual property right may be used instead. However, it is the user's responsibility to evaluate and verify the operation of any non-IBM product, program, or service.

IBM may have patents or pending patent applications covering subject matter described in this document. The furnishing of this document does not give you any license to these patents. You can send license inquiries, in writing, to:

IBM Director of Licensing
IBM Corporation
North Castle Drive
Armonk, NY 10504-1785
U.S.A.

For license inquiries regarding double-byte (DBCS) information, contact the IBM Intellectual Property Department in your country or send inquiries, in writing, to:

IBM World Trade Asia Corporation
Licensing
2-31 Roppongi 3-chome, Minato-ku
Tokyo 106, Japan

The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you.

This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice.

Licensees of this program who wish to have information about it for the purpose of enabling: (i) the exchange of information between independently created programs and other programs (including this one) and (ii) the mutual use of the information which has been exchanged, should contact:

IBM Deutschland GmbH
Department 0790
Pascalstrasse 100
70569 Stuttgart
Germany

Such information may be available, subject to appropriate terms and conditions, including in some cases, payment of a fee.

The licensed program described in this information and all licensed material available for it are provided by IBM under terms of the IBM Customer Agreement or any equivalent agreement between us.

Any performance data contained herein was determined in a controlled environment. Therefore, the results obtained in other operating environments may vary significantly. Some measurements may have been made on development-level systems and there is no guarantee that these measurements will be the same on generally available systems. Furthermore, some measurement may have been estimated through extrapolation. Actual results may vary. Users of this document should verify the applicable data for their specific environment.

Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products.

All statements regarding IBM's future direction or intent are subject to change or withdrawal without notice, and represent goals and objectives only.

This information contains examples of data and reports used in daily business operations. To illustrate them as completely as possible, the examples include the names of individuals, companies, brands, and products. All of these names are fictitious and any similarity to the names and addresses used by an actual business enterprise is entirely coincidental.

COPYRIGHT LICENSE:

This information contains sample application programs in source language, which illustrates programming techniques on various operating platforms. You may copy, modify, and distribute these sample programs in any form without payment to IBM, for the purposes of developing, using, marketing or distributing application programs conforming to the application programming interface for the operating platform for which the sample programs are written. These examples have not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or function of these programs.

Each copy or any portion of these sample programs or any derivative work, must include a copyright notice as follows:

(C) (your company name) (year). Portions of this code are derived from IBM Corp. Sample Programs. (C) Copyright IBM Corp. _enter the year or years_. All rights reserved.

Trademarks

The following terms are trademarks of the IBM Corporation in the United States, other countries, or both:

AIX
DB2
DB2 Universal Database
IBM
Intelligent Miner
Lotus 1-2-3     

Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.

Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both.

UNIX is a registered trademark of The Open Group in the United States and other countries.

Other company, product, and service names may be trademarks or service marks of others.

Glossary

This glossary defines terms as they are used in this book. If you do not find the term you are looking for, refer to the Dictionary of Computing, New York: McGraw-Hill, 1994.

anti-aliasing
A software technique for smoothing the jagged appearance of curved or diagonal lines that result from the low resolution of many display screens. Methods of anti-aliasing include surrounding pixels with intermediate shades and manipulating the size and horizontal alignment of pixels.
applet
An application program, written in the Java programming language, that can be retrieved from a Web server and executed by a Web browser. A reference to an applet appears in the markup for a Web page, in the same way that a reference to a graphics file appears; a browser retrieves an applet in the same way that it retrieves a graphics file. For security reasons, an applet's access rights are limited in two ways: the applet cannot access the file system of the client upon which is executing, and the applet's communication across the network is limited to the server from which it was downloaded.
application programming interface (API)
A functional interface supplied by the operating system or a separately orderable licensed program that allows an application program written in a high-level language to use specific data or functions of the operating system or the licensed program.
associations
The relationship of items in a transaction in such a way that items imply the presence of other items in the same transaction.
bucket
One of the bars in a bar chart representing the frequency distribution of a continuous field. A bucket shows how many values lie within a specific frequency range.
chi-square test
A test to check whether two variables are statistically dependent or not. Chi-square is calculated by subtracting the expected frequencies (imaginary values) from the observed frequencies (actual values). The expected frequencies represent the values that were to be expected if the variables in question were statistically independent.
classification
The assignment of objects into groups or categories based on their characteristics.
cluster
A group of records with similar characteristics.
confidence factor
Indicates the strength or the reliability of the associations detected.
comma-separated variables (CSV)
A file format used by spreadsheet, database, and statistical applications.
data type
There are different kinds of Intelligent Miner data types, for example, categorical, continuous, or discrete numeric.
discrete
Pertaining to data that consists of distinct elements such as characters, or to physical quantities having a finite number of distinctly recognizable values.
host
Pertaining to a computer controlling all or part of a network, and providing an access method to that network.
interval
A set of real numbers between two numbers either including or excluding both of them.
interval boundaries
Values that represent the upper and lower limits of an interval.
item ID
The identifier of an item.
item set
A collection of items. For example, all items bought by one customer during one visit to a department store.
lift
The confidence factor divided by the expected confidence.
metadata
In databases, data that describes data objects.
plug-in
A self-contained software component that modifies (adds or changes) function in a particular software system. When a user adds a plug-in to a software system, the foundation of the original software system remains intact. The development of plug-ins requires well-defined application programming interfaces (APIs).
prediction model
A model of the dependency and the variation of one field's value within a record on the other fields within the same record. A profile is then generated that can predict a value for the particular field in a new record of the same form, based on its other field values.
Radial Basis Function (RBF)
The individual Radial Basis Functions are functions of the distance or the radius from a particular point. They are used to build up approximations to more complicated functions. The RBF Prediction mining function uses Radial Basis Functions to predict values.
record
A set of one or more related data items grouped for processing. In reference to a database table, record is synonymous to row.
root
In the AIX operating system, the user name for the system user with the highest authority.
random access memory (RAM)
A temporary storage location in which the central processing unit (CPU) stores and executes its processes. Contrast with direct access storage device.
rule
A clause in the form head <= body. It specifies that the head is true if the body is true.
rule body
Represents the specified input data for a mining function.
rule group
Covers all rules containing the same items in different variations.
rule head
Represents the derived items detected by the Associations mining function.
servlet
An application program, written in the Java programming language, that is executed on a Web server. A reference to a servlet appears in the markup for a Web page, in the same way that a reference to a graphics file appears. The Web server executes the servlet and sends the results of the execution (if there are any) to the Web browser.
support factor
Indicates the occurrence of the detected association rules based on the input data.

Bibliography

This bibliography lists all publications in the Intelligent Miner library other than this book, related IBM publications that are relevant to the contents of this book, and non-IBM publications that might be useful for reference purposes.

Where appropriate, IBM publication numbers are given after the document title. This helps you to find the document on the Web at the IBM Publications Center.

IBM DB2 Intelligent Miner publications

Related information

IBM Web sites

Other Web sites

Index

A B C D E F G H I J K L M N O P Q R S T U V W Z
A B C D E F G H I J K L M N O P Q R S T U V W Z