Jump to content

User:PabloTamayo/Oracle Data Mining

From Wikipedia, the free encyclopedia

Oracle Data Mining (ODM) is a software product distributed as an option to Oracle Corporation's Relational Database Management System (RDBMS) Enterprise Edition (EE). This product supports a collection of data mining and data analysis algorithms for classification, prediction, regression, clustering, associations, feature selection, anomaly detection, feature extraction, and specialized analytics. It is designed to enable the creation, management and deployment of data mining models in the Oracle database environment.

Oracle Data Mining
Developer(s)Oracle Corporation
Stable release
10gR2 / October, 2006
Typedata mining and analytics
Licenseproprietary
Website[1]

Overview

[edit]

Oracle Data Mining (ODM) implements a variety of data mining algorithms inside the Oracle relational database. These implementations are integrated right into the Oracle database kernel, and operate natively on data stored in the relational database tables. This eliminates the need for extraction or transferring of data into standalone mining/analytic servers. The relational database platform is leveraged to securely manage models and efficiently execute SQL queries on large volumes of data. The system is organized around a few generic operations providing a general unified interface for data mining functions. These operations include functions to create, apply, test, and manipulate data mining models. Models are created and stored as database objects, and their management is done within the database - similar to tables, views, indexes and other database objects.

In data mining, the process of using a model to derive predictions or descriptions of behavior that is yet to occur is called "scoring". In traditional analytic workbenches, a model built in the analytic engine has to be deployed in a mission-critical system to score new data, or the data is moved from relational tables into the analytical workbench - most workbenches offer proprietary scoring interfaces. ODM simplifies model deployment by offering Oracle SQL functions to score data stored right in the database. This way, the user/application developer can leverage the full power of Oracle SQL - in terms of the ability to pipeline and manipulate the results over several levels, and in terms of parallelizing and partitioning data access for performance.

Models can be created and managed by one of several means. (Oracle Data Miner) is a graphical user interface that steps the user through the process of creating, testing, and applying models - approximating the CRISP-DM methodology. Application and tools developers can embed predictive and descriptive mining capabilities using PL/SQL or JavaAPIs. Business analysts can quickly experiment with, or demonstrate the power of, predictive analytics using Oracle Spreadsheet Add-In for Predictive Analytics, a dedicated Microsoft Excel adaptor interface. ODM offers a choice of well known machine learning approaches such as Decision Trees, Naive Bayes, Support vector machines for predictive mining, Association rules, K-means and Orthogonal Partitioning Clustering, and Non-negative matrix factorization for descriptive mining. A minimum description length based technique to grade the relative importance of a input mining attributes for a given problem is also provided. Most Oracle Data Mining functions also allow text mining by accepting Text (unstructured data) attributes as input. The ODM platform also provides a BLAST interface for specialized analytics in the area of bioinformatics.

History

[edit]

Oracle Data Mining was first introduced in 2002 and its releases are named according to the corresponding Oracle database release:

Oracle Data Mining is a logical successor of the Darwin data mining toolset developed by Thinking Machines Corporation in the mid-1990's and later distributed by Oracle after its acquisition of Thinking Machines in 1999. However, the product itself is a complete redesign and rewrite from ground-up - while Darwin was a classic GUI-based analytical workbench, ODM offers a data mining development/deployment platform integrated into the Oracle database, along with the GUI.

Functionality

[edit]

As of release 10gR2 Oracle Data Mining contains the following data mining functions:

Input sources and data preparation

[edit]

Most Oracle Data Mining functions accept as input one relational table or view. Flat data can be combined with transactional data through the use of nested columns, enabling mining of data involving one-to-many relationships (e.g. a star schema).

Oracle Data Mining distinguishes numerical, categorical, and unstructured (text) attributes. The product also provides utilities for data preparation steps prior to model building such as outlier treatment, discretization, normalization and binning.

Graphical user interface: Oracle Data Miner

[edit]

Oracle Data Mining can be accessed using Oracle Data Miner a GUI “client” that provides access to the data mining functions and structured templates called Mining Activities that automatically prescribe the order of operations, perform required data transformations, and set model parameters. The user interface also allows the automated generation of Java and/or SQL code associated with the data mining activities. The Java Code Generator is an extension to Oracle JDeveloper. There is also an independent interface: the Spreadsheet Add-In for Predictive Analytics which enables access to the Oracle Data Mining Predictive Analytics PL/SQL package from Microsoft Excel.

PL/SQL and Java interfaces

[edit]

Oracle Data Mining provides a native PL/SQL package (DBMS DATA MINING) to create, destroy, describe, apply, test, export and import models. The code below illustrates a typical call to build a classification model:

BEGIN
  DBMS_DATA_MINING.CREATE_MODEL(
    model_name          => 'credit_risk_model', 
    function            => DBMS_DATA_MINING.classification, 
    data_table_name     => ‘credit_card_data', 
    case_id_column_name => 'customer_id', 
    target_column_name  => ‘credit_risk',
    settings_table_name => 'credit_risk_model_settings');
END;

where 'credit_risk_model' is the model name, built for the express purpose of classifying future customers' 'credit_risk', based on training data provided in the table 'credit_card_data', each case distinguished by an unique 'customer_id', with the rest of the model parameters specified through the table 'credit_risk_model_settings'.

Oracle Data Mining also supports a Java API consistent with the Java Data Mining (JDM) standard for data mining (JSR-73) for enabling integration with web and J2EE applications and to facilitate portability across platforms.

SQL scoring functions

[edit]

As of release 10gR2, Oracle Data Mining contains built-in SQL functions for scoring data mining models. These single-row functions support classification, regression, anomaly detection, clustering, and feature extraction. The code below illustrates a typical usage of a classification model:

SELECT customer_name
  FROM credit_card_data
 WHERE PREDICTION(credit_risk_model USING *) = 'LOW' AND customer_value = 'HIGH';

Predictive analytics MS Excel Adaptor

[edit]

The PL/SQL package DBMS PREDICTIVE ANALYTICS automates the data mining process including preprocessing, model building and application of the data mining models to new data. The PREDICT procedure for building classification models and the EXPLAIN procedure for building feature selection models can be used as part of an operational pipeline and their results displayed on the command line or in a Excel spreadsheet.

Specialized analytics

[edit]

Oracle Data Mining also provides functionality for DNA and Protein sequence similarity searches using NCBI's BLAST release 2.0 algorithm. BLAST is a heuristic method to find high-scoring locally optimal alignments between a query sequence and a database.

References and further reading

[edit]
  • P. Tamayo, C. Berger, M. M. Campos, J. S. Yarmus, B. L.Milenova, A. Mozes, M. Taft, M. Hornick, R. Krishnan, S.Thomas, M. Kelly, D. Mukhin, R. Haberstroh, S. Stephens and J. Myczkowski. Oracle Data Mining - Data Mining in the Database Environment. In Part VII of Data Mining and Knowledge Discovery Handbook, Maimon, Oded; Rokach, Lior (Eds.) 2005, p315-1329, ISBN-10: 0-387-24435-2.
  • M. M. Campos, P. J. Stengard, and B. L. Milenova, Data-centric automated data mining. In proceedings of the Fourth International Conference on Machine Learning and Applications 2005, 15-17 Dec. 2005. pp8, ISBN: 0-7695-2495-8
  • B. L. Milenova, J. S. Yarmus, and M. M. Campos. SVM in oracle database 10g: removing the barriers to widespread adoption of support vector machines. In Proceedings of the 31st international Conference on Very Large Data Bases (Trondheim, Norway, August 30 - September 02, 2005). pp1152-1163, ISBN:1-59593-154-6.
  • B. L. Milenova and M. M. Campos. O-Cluster: scalable clustering of large high dimensional data sets. In proceedings of the 2002 IEEE International Conference on Data Mining: ICDM 2002. pp290-297, ISBN: 0-7695-1754-4.
  • M. F. Hornick, Erik Marcade, and Sunil Venkayala. Java Data Mining: Strategy, Standard, and Practice. Morgan-Kaufmann, 2006, ISBN: 0-1237-0452-9.
[edit]