From 12b350612cc583bbf251f74b13e629ea4f69b858 Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Sun, 17 Apr 2022 22:22:25 -0700 Subject: [PATCH 01/10] Add .circleci/config.yml --- .circleci/config.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..6554e1f4e --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,26 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/2.0/configuration-reference +version: 2.1 + +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/2.0/configuration-reference/#jobs +jobs: + say-hello: + # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. + # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor + docker: + - image: cimg/base:stable + # Add steps to the job + # See: https://circleci.com/docs/2.0/configuration-reference/#steps + steps: + - checkout + - run: + name: "Say hello" + command: "echo Hello, World!" + +# Invoke jobs via workflows +# See: https://circleci.com/docs/2.0/configuration-reference/#workflows +workflows: + say-hello-workflow: + jobs: + - say-hello From 41001462d3dc43db296449a8298c95aa2f1a1c98 Mon Sep 17 00:00:00 2001 From: Lev Date: Sun, 17 Apr 2022 22:35:12 -0700 Subject: [PATCH 02/10] test run --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6554e1f4e..01977549b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,7 +9,7 @@ jobs: # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor docker: - - image: cimg/base:stable + - image: levkk/postresml:latest # Add steps to the job # See: https://circleci.com/docs/2.0/configuration-reference/#steps steps: From 8d1643881932daaee3d08dadc9911d5bbe75aaaf Mon Sep 17 00:00:00 2001 From: Lev Date: Sun, 17 Apr 2022 22:36:41 -0700 Subject: [PATCH 03/10] oops --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 01977549b..0a5f10272 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,7 +9,7 @@ jobs: # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor docker: - - image: levkk/postresml:latest + - image: levkk/postgresml:latest # Add steps to the job # See: https://circleci.com/docs/2.0/configuration-reference/#steps steps: From e86e607edf5dc3ff457a9ca7d65ebe9f93b73d5c Mon Sep 17 00:00:00 2001 From: Lev Date: Sun, 17 Apr 2022 23:06:46 -0700 Subject: [PATCH 04/10] run --- .circleci/config.yml | 4 ++-- sql/test.sql | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0a5f10272..a00da62c8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,8 +15,8 @@ jobs: steps: - checkout - run: - name: "Say hello" - command: "echo Hello, World!" + name: "Red Wine Quality" + command: "psql -U root -p 5433 -h 127.0.0.1 -f sql/test.sql" # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows diff --git a/sql/test.sql b/sql/test.sql index 822c0955b..4281fbf60 100644 --- a/sql/test.sql +++ b/sql/test.sql @@ -14,6 +14,6 @@ SELECT pgml.predict('Red Wine Scores', '{6.4, 0.7, 0, 1.9, 0.076, 11, 34, 0.99, SELECT pgml.predict('Red Wine Scores', '{5.4, 0.7, 0, 1.9, 0.076, 11, 34, 0.99, 2, 0.5, 9.4}'); SELECT pgml.predict('Red Wine Scores', '{3.4, 0.7, 0, 1.9, 0.076, 11, 34, 0.99, 2, 0.5, 9.4}'); -SELECT pgml.train('Red Wine Categories', 'classification', 'wine_quality_red', 'quality', 'svm'); +SELECT * FROM pgml.train('Red Wine Categories', 'classification', 'wine_quality_red', 'quality', 'svm'); SELECT pgml.predict('Red Wine Categories', '{7.4, 0.7, 0, 1.9, 0.076, 11, 34, 0.99, 2, 0.5, 9.4}'); From d58d40e9aa572b4715b78185750488081e834874 Mon Sep 17 00:00:00 2001 From: Lev Date: Sun, 17 Apr 2022 23:08:15 -0700 Subject: [PATCH 05/10] hmm --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a00da62c8..8ba787b45 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,7 +16,7 @@ jobs: - checkout - run: name: "Red Wine Quality" - command: "psql -U root -p 5433 -h 127.0.0.1 -f sql/test.sql" + command: "bash docker/entrypoint.sh psql -U root -p 5433 -h 127.0.0.1 -f sql/test.sql" # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows From 08135be2d8c3b77ffc18cffa81416631bbd79977 Mon Sep 17 00:00:00 2001 From: Lev Date: Sun, 17 Apr 2022 23:17:35 -0700 Subject: [PATCH 06/10] aha --- sql/install.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/install.sql b/sql/install.sql index c846dcd47..cbef23935 100644 --- a/sql/install.sql +++ b/sql/install.sql @@ -6,7 +6,7 @@ CREATE EXTENSION IF NOT EXISTS plpython3u; --- --- Create schema for models. --- -DROP SCHEMA pgml CASCADE; +DROP SCHEMA IF EXISTS pgml CASCADE; CREATE SCHEMA IF NOT EXISTS pgml; CREATE OR REPLACE FUNCTION pgml.auto_updated_at(tbl regclass) From 9b0022be0184efb6fc7ac256bea5f313f2bcca4b Mon Sep 17 00:00:00 2001 From: Lev Date: Sun, 17 Apr 2022 23:19:57 -0700 Subject: [PATCH 07/10] port --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8ba787b45..ba9660717 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,7 +16,7 @@ jobs: - checkout - run: name: "Red Wine Quality" - command: "bash docker/entrypoint.sh psql -U root -p 5433 -h 127.0.0.1 -f sql/test.sql" + command: "bash docker/entrypoint.sh psql -U root -p 5432 -h 127.0.0.1 -f sql/test.sql" # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows From 31d7519a4b9c2faa522f6b613b64ac59ed4a62ca Mon Sep 17 00:00:00 2001 From: Lev Date: Sun, 17 Apr 2022 23:35:53 -0700 Subject: [PATCH 08/10] fix --- sql/test.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/test.sql b/sql/test.sql index 4281fbf60..9883ffa85 100644 --- a/sql/test.sql +++ b/sql/test.sql @@ -8,7 +8,7 @@ SELECT pgml.version(); \timing -SELECT pgml.train('Red Wine Scores', 'regression', 'wine_quality_red', 'quality'); +SELECT * FROM pgml.train('Red Wine Scores', 'regression', 'wine_quality_red', 'quality'); SELECT pgml.predict('Red Wine Scores', '{7.4, 0.7, 0, 1.9, 0.076, 11, 34, 0.99, 2, 0.5, 9.4}'); SELECT pgml.predict('Red Wine Scores', '{6.4, 0.7, 0, 1.9, 0.076, 11, 34, 0.99, 2, 0.5, 9.4}'); SELECT pgml.predict('Red Wine Scores', '{5.4, 0.7, 0, 1.9, 0.076, 11, 34, 0.99, 2, 0.5, 9.4}'); From f38e8d771f936545533448dcb7e3df81cb158877 Mon Sep 17 00:00:00 2001 From: Lev Date: Sun, 17 Apr 2022 23:37:04 -0700 Subject: [PATCH 09/10] naming --- .circleci/config.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ba9660717..0b1ea546b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,7 +5,7 @@ version: 2.1 # Define a job to be invoked later in a workflow. # See: https://circleci.com/docs/2.0/configuration-reference/#jobs jobs: - say-hello: + red-wine-quality: # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor docker: @@ -15,12 +15,12 @@ jobs: steps: - checkout - run: - name: "Red Wine Quality" + name: "Train and predict" command: "bash docker/entrypoint.sh psql -U root -p 5432 -h 127.0.0.1 -f sql/test.sql" # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows workflows: - say-hello-workflow: + end-to-end-tests: jobs: - - say-hello + - red-wine-quality From b61881aa2c04c271d8b87c7e69f3e14334f486b1 Mon Sep 17 00:00:00 2001 From: Lev Date: Sun, 17 Apr 2022 23:49:21 -0700 Subject: [PATCH 10/10] badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3d66a6a4e..9fa79e5fc 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ ![PostgresML](./logo-small.png) +[![PostgresML](https://circleci.com/gh/postgresml/postgresml/tree/master.svg?style=svg)](https://circleci.com/gh/postgresml/postgresml/tree/master) + PostgresML is an end-to-end machine learning system. Using only SQL, it allows to train models and run online predictions, alongside normal queries, directly using the data in your databases. ## Why pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy