Data Mining: Decision Trees

Similar documents
Data Mining: Scoring (Linear Regression)

Using Radio Buttons in Web Template

Step by Step Procedure for DSO Creation

Linking Documents with Web Templates

Analysis Process Designer (APD) Step by Step Business Intelligence

Step-By-Step guide to Virtual InfoCube Implementation

Replacement Path: Explained with an Illustrated Example

How to use Boolean Operations in the Formula as Subsidiary for IF Condition

DB Connect with Delta Mechanism

Step by Step Guide How to Use BI Queries in Visual Composer

Step By Step: the Process of Selective Deletion from a DSO

Material Listing and Exclusion

Maintaining Roles and Authorizations in BI7.0 - RSECADMIN

Open Text DocuLink Configuration - To Access Documents which are Archived using SAP

Extraction of Hierarchy into Flat File from R/3 and Loading in BW System

Freely Programmed Help- Web Dynpro

Displaying SAP Transaction as Internet Application in Portal

Standalone BW System Refresh

SDN Community Contribution

Easy Lookup in Process Integration 7.1

Process Chain Log Deletion

POWL: Infoset Generation with Web Dynpro ABAP

Database Statistics During ODS Activation

Step by Step Guide on How to Use Cell Definition in BEx Query

How to Work with F4 Input Help Effectively in BEX

Open Hub Destination - Make use of Navigational Attributes

SAP BI Analysis Authorization (Customer Exit Variables)

Extracting Missing Fields of Data Source Which Are Present In Their Extract Structure

How to Create View on Different Tables and Load Data through Generic Datasource based on that View

Errors while Sending Packages from OLTP to BI (One of Error at the Time of Data Loads through Process Chains)

Integration of Web Dynpro for ABAP Application in Microsoft Share Point Portal

Hierarchy in Business Objects with Expanded Hierarchy Logic

Creating Custom SU01 Transaction Code with Display and Password Reset Buttons

MDM Syndicator: Custom Items Tab

Step by Step Method for File Archival in BW

SAP BI BO Unit/Currency Logic for Unknown Units Case Study

Recreating BIA Indexes to Address the Growth of Fact Index Table

Generate Export Data Source

Load Info Cube in SCM 5.0 (BI 7.0)

Currency Translation in SAP BI Step by step Guide

Information Broadcasting Part 3 Scheduling the First Report

Loading the Data for Time Dependent Hierarchy in SAP BI

Using Nested Exception Aggregation in BEx Reports- Scenario

This article explains the steps to create a Move-in letter using Print Workbench and SAPScripts.

How to Default Variant Created for Report Developed In Report Painter/Writer

Validity Table in SAP BW/BI

How to Create Top of List and End of List of the ALV Output in Web Dynpro for ABAP

SAP BW Copy Existing DTP for Data Targets

ecatt Part 6 System Data Container

Transfer Material Attributes (Material Type) from R/3 to SAP GRC Global Trade Services (GTS)

Data Source Replication and Activation of Transfer Structures

Reading Enhanced DataSource fields for the Remote Cube

Role and Scope of ABAP in SAP BI

Web Dynpro: Coloring Table Conditionally

Developing Crystal Reports on SAP BW

Data Extraction & DS Enhancement in SAP BI Step by Step

Changing the Source System Assignments in SAP BW Objects without Affecting the Data Modeling

Reporting Duplicate Entries

How to Display Result Row in One Line While Reporting On Multiproviderer

All about Compression

Material Master Archiving in Simple Method

Explore to the Update Tab of Data Transfer Process in SAP BI 7.0

Xcelsius Tricks Part 5 Create a Loading Bar in SAP Crystal Dashboard and Presentation Design (Xcelsius 2008)

SMT (Service Mapping Tool)

MDM Import Manager - Taxonomy Data (Attribute Text Values) Part 3

Setting up Connection between BW and R/3 for Data Load

Graphical Mapping Technique in SAP NetWeaver Process Integration

Step by Step Guide for PI Server Start and Stop Procedure

Download SAP Query Output to Local/ Network Folders in Background

SAP BW vs. SAP BusinessObjects Web Intelligence Functionalities

Positioning of CML of SAP s LSA with NLS SAND as Archiving Technology

Using Query Extract to Export Data from Business warehouse, With Pros and Cons Analyzed

Creation of Key Figures with Higher Decimal Place Precision

Table Row Popup in Web Dynpro Component

ABAP: Table Maintenance Events

SUP: Personalization Keys and Synchronize Parameter

List of Values in BusinessObjects Web Intelligence Prompts

BW Reconciliation. Applies to: Summary. Author Bio

Step By Step Procedure to Implement Soap to JDBC Scenario

Server Connectivity and Data Load from Non SAP System to BW

Steps to Activate ALE Delta for Custom Master Datasource Created on ZTable

Triggering the Process Chains at Particular Date using Events

Implying Security on Business Object XI 3.1 Universe having SAP BW as Source

How to Broadcast BEx Workbooks using BW Pre-calculation Server and through Process Chains

Totals in Adobe forms

Reporting on Special Stock Values: Snap-shot/Detailed

Performance Tuning in SAP BI 7.0

Using Rule Group in SAP-BI. Part - 1

Add /Remove Links on ESS Home Page in Business Package 1.5

Dialog Windows in WebDynpro ABAP Applications

Deploying BusinessObjects Explorer on Top of a SAP BI Query

Methods of Selecting BOM Variant Parts in Variant Configuration

ABAP HR: Standard Info Type Enhancement

SAP Net Weaver 400s BI 7.0For more information, visit the Business Intelligence homepage.

Planning Functions and Characteristic Relationship in Integrated Planning

Purpose of Goods Receipt Message indicator in Purchase Orders

About ITAB Duplicate_Key (SAP lrsaods) Runtime Error

How to Reference External JAR Files in Web Dynpro DC in SAP NW Portal 7.3

Data Inconsistency in the Cube and Aggregate

Template Designer: Create Automatic PDF Documents for Attachment or Print Purpose

Transcription:

Applies to: SAP BI 7.0. For more information, visit the EDW homepage Summary This article about the Data Mining and the Data Mining methods provided by SAP in brief. It explains the classification method Decision Tree in detail. It also explains the steps for implementation of the Decision tree by creating a Model and an Analysis Process and creating a analysis for prediction. Author: Vishall Pradeep K.S Company: Applexus Technologies (P) Ltd Created on: 20 April 2011 Author Bio Vishall Pradeep is working as SAP Technology Consultant with Applexus Technologies (P) Ltd. He has experience in SAP ABAP and SAP BI 2011 SAP AG 1

Table of Contents Introduction... 3 Data Mining Methods... 3 Decision tree... 4 Creating a Model... 4 Creating a Analysis Process for Training... 7 Creating a Analysis Process for Executing a Prediction... 12 Related Content... 19 Disclaimer and Liability Notice... 20 2011 SAP AG 2

Introduction Data mining is to automatically determine significant patterns and hidden associations from large amounts of data. Data mining provides you with insights and correlations that had formerly gone unrecognized or been ignored because it had not been considered possible to analyze them. The data mining methods available in SAP BW allow you to create models according to your requirements and then use these models to draw information from your SAP BW data to assist your decision-making. Data Mining Methods SAP delivers the following SAP-owned data mining methods, 1. Decision trees: Decision trees are used to learn from historic data and to make predictions about the future. Prediction involves establishing rules using historic data and applying these rules to new data. These rules are displayed graphically as a hierarchy. 2. Clustering: Clustering allows you to segment data automatically into clusters. In a subordinate dataset, the system groups together associated data by forging formerly unknown links. 3. Association analysis: The purpose of association analysis is to find patterns in particular in business processes and to formulate suitable rules, of the sort "If a customer buys product A, that customer also buys products B and C". 4. Scoring: The purpose of scoring is to valuate data records and it has three function types as below a) Weighted Score tables b) Linear regression c) Non Linear Regression 5. ABC Classification: Displays data grouped into classes of A, B, C and so on, using thresholds and classification rules. The classified results are displayed in the form of ABC chart or list. ABC classification allows you to classify your data based on specified classification rules. The data to be classified is generated by a query in the SAP BW. The classification rules refer to a single key figure value in your data and implicitly specify which absolute or relative key figure values map to which classes. 2011 SAP AG 3

Decision tree Decision trees are used to learn from historic data and to make predictions about the future. Prediction involves establishing rules using historic data and applying these rules to new data. These rules are displayed graphically as a hierarchy. Creating a Model Go to Transaction RSDMWB (Data Mining Workbench) Data Mining->Expand Classification->Right Click Decision Tree->Create Model Choose the Model Name and Description The method name for which you are creating a model is displayed. You have three options for model field selection To create the model fields manually, select the Manual option. If you want to create a model that is similar to an existing model created previously, you can copy it choosing the Use Model as Template option. You can make minor changes to the copied version manually to suit your requirements. 2011 SAP AG 4

To create a model from a query, choose Model Field Selection and select the query which you want use as a source for model fields.the InfoObjects contained in the selected query are available in the next step as model fields. The screen shows the list of Fields and we can select and exclude fields in it In the step Edit Model Fields, specify the attributes for each field and the description you give the model field does not necessarily have to be identical with that of the InfoObjects The Content types valid for a model field are dependent on the method that you are creating the model for and on the data type of the model field. The value type specified for a model field determines which entries can be made as Field Parameters and Field Values. 2011 SAP AG 5

Set the Prediction Variable indicator for the model field for which the subsequent prediction is to be made. Select as a prediction variable that model field for which you wish to gain more information (via the model). In the Model Parameters step, enter the parameters that are valid for the entire model. The model parameters are dependent on the data mining method Save and Activate the Model (we can only train or valuate a model or use it for the prediction if the model has been activated.) 2011 SAP AG 6

Creating a Analysis Process for Training Go to Transaction RSANWB (Analysis Process Designer) Choose General->Right Click->Create Give the description to the APD 2011 SAP AG 7

From the Data Sources, drag and drop the Query to the work area It asks for a Popup and click on Choose Query From the Help, Select the query 2011 SAP AG 8

Click on continue and the Query as data Source is added as below For the data target, drag the icon for the relevant data mining method in the work area Connect the two nodes 2011 SAP AG 9

Double click on data mining node to make the settings in the dialog box that appears Choose the required model from F4 Help To make an explicit field assignment, double click on the data flow arrow that connects the nodes Click on Automatic Assignment and choose Same Infoobject 2011 SAP AG 10

Save and activate the APD While saving it will ask for a Technical Name Execute the APD To view the training results, in the context menu of data target, choose Data Mining Model View Model Results The data mining model acquires the status Trained. 2011 SAP AG 11

Creating a Analysis Process for Executing a Prediction A model that you trained using historic data from a source can now be applied to a different set of data. By doing so, a prediction is made for the model field that you selected as the prediction variable Goto Transaction RSANWB (Analysis Process Designer) Choose General->Right Click->Create Give the description to the APD 2011 SAP AG 12

From the Data Sources, drag and drop the Query to the work area It asks for a Popup and click on Choose Query From the Help, Select the query 2011 SAP AG 13

Drag the relevant prediction icon, that is, source for transformation, in the work area Connect the two nodes Double click on data mining node to make the settings in the dialog box that appears Choose the required model from F4 Help In select Prediction Output Fields Select the Fields 2011 SAP AG 14

For the data target, drag the icon for the relevant data mining method in the work area(in this case I am downloading the predicted values to the.csv file) Choose the file name In CSV File properties tab, Choose the separators Connect the nodes 2011 SAP AG 15

Save and activate the APD While saving it will ask for a Technical Name Execute the APD To display the prediction results, choose Display Data from the context menu 2011 SAP AG 16

Data is displayed as below To display the summary of the prediction results, choose Calculation Summary Calculation Summary will be displayed as below 2011 SAP AG 17

To display the stored results, choose Intermediate Results Intermediate result is as below The results are downloaded into the flat file as well(we can use another Decision tree as a target to have the values) 2011 SAP AG 18

Related Content http://help.sap.com/saphelp_erp2004/helpdata/en/72/e5293b5fdebb1ce10000000a114084/content.htm http://help.sap.com/saphelp_erp2004/helpdata/en/4a/eb293b31de281de10000000a114084/content.htm http://forums.sdn.sap.com/thread.jspa?threadid=964293 For more information, visit the EDW homepage 2011 SAP AG 19

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. 2011 SAP AG 20