A number of sample programs for Oracle Data Mining Release 12.2c are available with Oracle Data Mining. These programs illustrate the many features of the PL/SQL APIs. The sample programs create a set of models in the database. There are examples of automatic data preparation and data transformations appropriate for each algorithm. Several programs illustrate the text transformation and text mining process. You can examine the sample source code, which includes numerous comments, to familiarize yourself with the Oracle Data Mining APIs, and you can create your own models by modifying the samples.
The PL/SQL sample programs illustrate the use of the DBMS_DATA_MINING package for creating models and the DBMS_DATA_MINING_TRANSFORM package for performing transformations on the mining data. See also this related Oracle Database Documentation: