Hub
Pricing About
WorkflowWorkflow

Translating from a Keras to TensorFlow (Sentiment Analysis)

Deep learningKerasText classificationClassificationLstm
+7
knime profile image
Draft Latest edits on 
Mar 2, 2018 2:03 PM
Drag & drop
Like
Download workflow
Workflow preview
This first part of this workflow uses the Keras network built to do sentiment analysis on the IMDB data, translates it to a TensorFlow network, and uses the KNIME TensorFlow integration to do predictions. You might want to do this extra step instead of doing the prediction with the Keras because doing prediction with the TensorFlow network is considerably faster than using the Keras network. The second part of the workflow demonstrates how a TensorFlow network can be loaded from disk and used to make predictions. The saved TensorFlow networks are smaller than Keras models, so this can also be a plus for using the TensorFlow integration. This example uses the model trained in the workflow 07_Sentiment_Analysis_with_Deep_Learning. In order to run the example, please make sure you have the following KNIME extensions installed: * KNIME Deep Learning - TensorFlow Integration (Labs) * KNIME Deep Learning - Keras Integration (Labs) You also need a local Python installation that includes Keras and TensorFlow. Please refer to https://www.knime.com/deeplearning#keras for installation recommendations and further information.

External resources

  • Keras example script
Loading deploymentsLoading ad hoc jobs

Used extensions & nodes

Created with KNIME Analytics Platform version 4.1.0
  • Go to item
    KNIME CoreTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

    knime profile image
    knime
  • Go to item
    KNIME Deep Learning - Keras IntegrationTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

    knime profile image
    knime
  • Go to item
    KNIME Deep Learning - TensorFlow IntegrationTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

    knime profile image
    knime
  • Go to item
    KNIME JavaScript ViewsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

    knime profile image
    knime
  • Go to item
    KNIME Python Integration

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

    knime profile image
    knime
  • Go to item
    KNIME Quick FormsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

    knime profile image
    knime

Legal

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

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits