Hub
Pricing About
  • Software
  • Blog
  • Forum
  • Events
  • Documentation
  • About KNIME
  • KNIME Community Hub
  • knime
  • Spaces
  • Python Script Space
  • 03_Using_Custom_Python_Packages
  • 03_Include_Custom_Python_Class_in_Workflow
WorkflowWorkflow

Include Python Custom Class defined by user inside KNIME Workflow

Python Python Script Custom Python Class Python Class
KNIME profile image

Last edited: 

Drag & drop
Like
Download workflow
Copy short link
Workflow preview
This workflow showcases the usage of custom class inside KNIME. The user has to define the custom python class in a (.py) file and place it inside the workflow directory. The Python Script node can access this custom class and use it for execution. In this example, we define a python custom class for normalising data and encoding taregt column, this class file (.py) is placed inside the workflow directory. Inside the Python Script node we use this python class for normalising input data and encodinmg target column supplied at second input port

External resources

  • KNIME Python API Documentation
  • Data Transfer between KNIME and Python Just Got Faster
  • KNIME Python Integration Guide

Used extensions & nodes

Created with KNIME Analytics Platform version 4.7.0
  • Go to item
    KNIME Base nodes Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.6.2

    KNIME profile image
    knime
  • Go to item
    KNIME Python Integration (Labs) Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.6.2

    KNIME profile image
    knime
  1. Go to item
  2. Go to item
  3. Go to item
  4. Go to item
Loading deployments
Loading ad hoc executions

Legal

By using or downloading the workflow, you agree to our terms and conditions.

Discussion
Discussions are currently not available, please try again later.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • E-Learning course
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • KNIME Open Source Story
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more on KNIME Business Hub
© 2023 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Credits