<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>UDF Python Examples on Kinetica Docs</title><link>/7.1/aws/udf/python/examples/</link><description>Recent content in UDF Python Examples on Kinetica Docs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/7.1/aws/udf/python/examples/index.xml" rel="self" type="application/rss+xml"/><item><title>Example UDF (Non-CUDA) - Distributed Model</title><link>/7.1/aws/udf/python/examples/github_examples/dist_model/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/7.1/aws/udf/python/examples/github_examples/dist_model/</guid><description>The following is a complete example, using the Python UDF API, of a non-CUDA UDF that demonstrates how to build multiple models based on distributed data and combine them into an ensemble. This example (and others) can be found in the Python UDF API repository; this repository can be downloaded/cloned from GitHub.
References Prerequisites UDF API Download Relevant Scripts UDF Deployment Execution Detail Database Setup Model Training UDF (dt_train.py) Training UDF Registration (register_execute_train.</description></item><item><title>Example UDF (Non-CUDA) - Pandas</title><link>/7.1/aws/udf/python/examples/github_examples/pandas/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/7.1/aws/udf/python/examples/github_examples/pandas/</guid><description>The following is a complete example, using the Python UDF API, of a non-CUDA UDF that demonstrates how to create pandas dataframes and insert them into tables in Kinetica. This example (and others) can be found in the Python UDF API repository; this repository can be downloaded/cloned from GitHub.
References Prerequisites UDF API Download Relevant Scripts UDF Deployment Execution Detail Database Setup UDF (df_to_output_UDF.py) UDF Registration (register_execute_UDF.py) References Python UDF Reference -- detailed description of the entire UDF API Running UDFs -- detailed description on running Python UDFs Example UDFs -- example UDFs written in Python Prerequisites The general prerequisites for using UDFs in Kinetica can be found under UDF Prerequisites.</description></item><item><title>Example UDF (Non-CUDA) - Sum of Squares</title><link>/7.1/aws/udf/python/examples/dist_noncuda_sum_of_squares/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/7.1/aws/udf/python/examples/dist_noncuda_sum_of_squares/</guid><description>Download &amp;amp; Run UDF Detail Initialization (udf_sos_manager.py init) UDF (udf_sos_proc.py) Execution (udf_sos_manager.py exec) The following is a complete example, using the Python API, of a non-CUDA UDF that takes a list of input tables and corresponding output tables (must be the same number) and, for each record of each input table, sums the squares of input table columns and saves the result to the corresponding output table column; i.e.:</description></item><item><title>Prepare Environment</title><link>/7.1/aws/udf/python/examples/github_examples/prep_env/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/7.1/aws/udf/python/examples/github_examples/prep_env/</guid><description>This example runs inside a Conda environment. The environment can be automatically configured using the conda_env_py3.yml file found in the Python UDF API repository.
In the same directory you cloned the API, change directory into the root folder of the Python UDF API repository:
cd kinetica-udf-api-python/ Create the Conda environment, replacing &amp;lt;environment name&amp;gt; with the desired name:
conda env create --name &amp;lt;environment name&amp;gt; --file conda_env_py3.yml Note
It may take a few minutes to create the environment.</description></item><item><title>UDF API Download</title><link>/7.1/aws/udf/python/examples/github_examples/udf_api_download/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/7.1/aws/udf/python/examples/github_examples/udf_api_download/</guid><description> UDF API Download This example requires local access to the Python UDF API repository. In the desired directory, run the following but be sure to replace &amp;lt;kinetica-version&amp;gt; with the name of the installed Kinetica version, e.g, v7.1:
git clone -b release/&amp;lt;kinetica-version&amp;gt; --single-branch https://github.com/kineticadb/kinetica-udf-api-python.git</description></item></channel></rss>