0 ×

Python Learner

DeprecatedKNIME Python nodes version 3.6.0.v201807051517 by KNIME AG, Zurich, Switzerland

Allows execution of a Python script in a local Python installation. The path to the Python executable has to be configured in Preferences → KNIME → Python.

Options

Script

Editor
The script that will be executed to generate this nodes output. Execute script will execute the full script while execute selection will only execute the currently selected script.

The editor optionally provides autocompletion (CTRL + Space) if the Python module jedi is installed.
Columns
The list contains the columns available in the input table. A double click will insert the corresponding identifier at the current cursor position in the editor.
Flow variables
The list contains the available flow variables. A double click will insert the corresponding identifier at the current cursor position in the editor.
Workspace
Lists the currently defined identifiers in the running Python instance. Reset workspace will remove all definitions and reinsert only the input data.
Console
Displays the standard and error output of the execution as well as other relevant information.
Row limit (dialog)
Limits how many rows are loaded in the dialog. Changes only take effect after reseting the workspace.

Templates

Create from editor...
Create a new template based on the script contained in the editor of the script tab.

Note: User defined templates can be found in the folder: knime-workspace/.metadata/knime/sourcecode-templates/python-learner
Remove selected
Removes the selected template.

Note: Templates provided by plugins can not be removed.
Apply selected
Replaces the script contained in the editor of the script tab with the selected template.

Input Ports

The input table. In the Python script it is available as pandas.DataFrame under the name input_table .

Output Ports

The trained model contained in the variable output_model .

Views

Standard output
The text sent by Python to the standard output, during the execution of this node.
Error output
The text sent by Python to the error output, during the execution of this node.

Best Friends (Incoming)

Best Friends (Outgoing)

Workflows

Update Site

To use this node in KNIME, install KNIME Python nodes from the following update site:

Wait a sec! You want to explore and install nodes even faster? We highly recommend our NodePit for KNIME extension for your KNIME Analytics Platform.