From 884fdab3d6be8614711df4fabb5422c45f45dcd2 Mon Sep 17 00:00:00 2001 From: "Mats E. Mollestad" Date: Mon, 27 Dec 2021 12:32:56 +0100 Subject: [PATCH] Bumped poetry version --- README.md | 19 +++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bc91f00..4d71641 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,25 @@ await (DataImporters.data_set(DataSets.IRIS) .export_model(Exporters.aws_s3(...)) ``` +## Predict +```python +ModelLoaders + .aws_s3("path/to/model", s3_config) + .import_data( + DataImporters.sql(sql_url, sql_query) + ) + .predict() +``` + +## Extract result +```python +ModelLoaders + .aws_s3(...) + .import_data(...) + .predict() + .extract(prediction_as="target", metadata=['entry_id'], exporter=DataExporters.disk("predictions.csv")) +``` + ## Examples An example of the IRIS data set which trains a model to perfection diff --git a/pyproject.toml b/pyproject.toml index ed9bb19..ea9833c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "benderml" -version = "0.1.4" +version = "0.1.5" description = "A Python package that makes ML processes easier, faster and less error prone" authors = ["Mats E. Mollestad "] license = "Apache-2.0"