Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Oracle Database 23c Machine Learning for SQL examples
# Oracle Database 23ai Machine Learning for SQL examples
Oracle Machine Learning for SQL is part of the Oracle Machine Learning family of technologies, and is the fastest way to access the heart of the Machine Learning inside every Oracle Database.

Following Oracle's philosophy of moving the algorithms and not the data, the execution of these 30+ parallel, scalable in-Database implementations of machine learning algorithms minimizes or eliminates data movement, achieving scalability, security, and accelerated time-to-model deployment.
Expand Down Expand Up @@ -53,7 +53,7 @@ Files on the current folder:
* oml4sql-time-series-regression-dataset.sql - Time Series Regression - Dataset
* oml4sql-time-series-regression.sql - Time Series Regression - Using a combination of ESM and GLM algorithms

#### Copyright (c) 2023 Oracle Corporation and its affiliates
#### Copyright (c) 2024 Oracle Corporation and its affiliates

##### [The Universal Permissive License (UPL), Version 1.0](https://oss.oracle.com/licenses/upl/)

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Setup - Creates Demo Views and Tables - dmsh.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Setup - Grants Privileges to Users - dmshgrants.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Anomaly Detection - One Class SVM Algorithm
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Expectation Maximization - EM Algorithm for Anomaly Detection
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Association Rules - Apriori Algorithm - dmardemo.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Attribute Importance - "EXPLAIN" function - dmaidemo.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Classification - Decision Tree Algorithm - dmdtdemo.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Classification - Generalized Linear Model Algorithm - dmglcdem.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Classification - Naïve Bayes Algorithm - dmnbdemo.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Classification - Neural Networks Algorithm - dmnncdem.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Classification - Random Forest Algorithm - dmrfdemo.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Classification and Regression - XGBoost Algorithm
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Classification - SVM Algorithm - dmsvcdem.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Classification - SVM Algorithm with Text Mining - dmtxtsvm.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Clustering - Expectation-Maximization Algorithm - dmemdemo.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Clustering - K-Means Algorithm - dmstardemo.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Clustering - K-Means Algorithm - dmkmdemo.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Clustering - O-Cluster Algorithm - dmocdemo.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Cross-Validation - Decision Tree Algorithm - dmdtxvlddemo.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Feature and Row Extraction - CUR Decomposition Algorithm - dmcurdemo.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Feature Extraction - Non-Negative Matrix Factorization Algorithm - dmnmdemo.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Feature Extraction - Singular Value Decomposition Demo - dmsvddemo.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Feature Extraction - ESA Algorithm for Text Mining
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand All @@ -17,7 +17,7 @@
-- Install the Wiki ESA model
-- https://oss.oracle.com/machine-learning/
-- Run the dmsh.sql script
-- https://github.com/oracle-samples/oracle-db-examples/blob/main/machine-learning/sql/23c/dmsh.sql
-- https://github.com/oracle-samples/oracle-db-examples/blob/main/machine-learning/sql/23ai/dmsh.sql

-----------------------------------------------------------------------
-- EXAMPLES IN THIS SCRIPT
Expand All @@ -30,11 +30,11 @@
-- Create an ESA model with CREATE_MODEL2, which provides settings
-- as part of the procedure.

-- (23c Feature) Create an ESA model with dense projections, which is
-- (23ai Feature) Create an ESA model with dense projections, which is
-- similar to a doc2vec approach, by specifying the ESAS_EMBEDDINGS
-- parameter as ESAS_EMBEDDINGS_ENABLED.

-- (23c Feature) Use the dense projection scoring results to create a
-- (23ai Feature) Use the dense projection scoring results to create a
-- clustering model. You can use such projections to improve the quality
-- of, e.g., classification and clustering models - a common use case
-- for dense projections.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Feature Extraction - NMF Algorithm with Text Mining - dmtxtnmf.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Feature Extraction - Text Term Extraction - dmtxtfe.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- Partitioned Models - Support Vector Machine Algorithm - dmpartdemo.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- OML R Extensible - Algorithm Registration - dmralgregdemo.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- OML R Extensible - Association Rules Algorithm - dmrardemo.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- OML R Extensible - Attribute Importance via RF Algorithm - dmraidemo.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 23c
-- Oracle Machine Learning for SQL (OML4SQL) 23ai
--
-- OML R Extensible - Generalized Linear Model Algorithm - dmrglmdemo.sql
--
-- Copyright (c) 2023 Oracle Corporation and/or its affilitiates.
-- Copyright (c) 2024 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1.0
--
Expand Down
Loading