Icon

JKISeasor2-23_​tomljh_​ver1

There has been no title set for this workflow's metadata.

Challenge 23: Testing Your Work

Challenge 23: Testing Your WorkLevel: MediumDescription: You and your team are working on a lexicon-based sentiment snalysisapplication, and created a component that encapsulates the calculation of sentimentscores. This component will be re-used in many workflows, so it is important to make surethat it is behaving correctly. A principled way of accomplishing this is through automated unittesting. Given a sample of the data this component receives as input (input golden data),and a small table with the corresponding expected outputs (output golden data), your goal isto create a workflow that automatically tests this component (testflow). Note: Read moreabout how to perform testing in KNIME here. Note 2: Read more about lexicon-basedsentiment analysis here.Author: Aline BessaRef:https://medium.com/low-code-for-advanced-data-science/testflows-in-knime-analytics-platform-539bd6509980 挑战23:测试你的工作水平: 中等描述:您和您的团队正在开发基于词典的情绪分析应用程序,并创建了一个封装情绪分数计算的组件。此组件将在许多工作流中重复使用,因此确保其行为正确非常重要。实现此目的的一种原则方法是通过自动化单元测试。给定此组件作为输入接收的数据样本(输入黄金数据)和一个包含相应预期输出(输出黄金数据)的小表,您的目标是创建一个自动测试此组件的工作流(testflow)。注意: 在此处阅读有关如何在 KNIME 中执行测试的更多信息。注2: 在此处阅读有关基于词典的情绪分析的更多信息。作者: 艾琳·贝萨 1.Naive method 2.Ad-Hoc Testing methodNote:1.Implement the separation of data and data processing, where data processing is abstracted as a workflow.2.Then, any test cases can be applyed on this workflow. Test Case1 Data Data Processing-- Also known as workflow segment test datainput_golden_table.tableexpected outputoutput_golden_data.tableCalculate outputCompare output resultstest datainput_golden_table.tableexpected outputoutput_golden_data.tableCalculate outputNode 11test datainput_golden_table.tableCompare output results Table Reader Table Reader Calculate Scores Table DifferenceFinder Table Reader Table Reader Calculate Scores CaptureWorkflow Start CaptureWorkflow End Workflow Executor Table Reader Table DifferenceChecker Challenge 23: Testing Your WorkLevel: MediumDescription: You and your team are working on a lexicon-based sentiment snalysisapplication, and created a component that encapsulates the calculation of sentimentscores. This component will be re-used in many workflows, so it is important to make surethat it is behaving correctly. A principled way of accomplishing this is through automated unittesting. Given a sample of the data this component receives as input (input golden data),and a small table with the corresponding expected outputs (output golden data), your goal isto create a workflow that automatically tests this component (testflow). Note: Read moreabout how to perform testing in KNIME here. Note 2: Read more about lexicon-basedsentiment analysis here.Author: Aline BessaRef:https://medium.com/low-code-for-advanced-data-science/testflows-in-knime-analytics-platform-539bd6509980 挑战23:测试你的工作水平: 中等描述:您和您的团队正在开发基于词典的情绪分析应用程序,并创建了一个封装情绪分数计算的组件。此组件将在许多工作流中重复使用,因此确保其行为正确非常重要。实现此目的的一种原则方法是通过自动化单元测试。给定此组件作为输入接收的数据样本(输入黄金数据)和一个包含相应预期输出(输出黄金数据)的小表,您的目标是创建一个自动测试此组件的工作流(testflow)。注意: 在此处阅读有关如何在 KNIME 中执行测试的更多信息。注2: 在此处阅读有关基于词典的情绪分析的更多信息。作者: 艾琳·贝萨 1.Naive method 2.Ad-Hoc Testing methodNote:1.Implement the separation of data and data processing, where data processing is abstracted as a workflow.2.Then, any test cases can be applyed on this workflow. Test Case1 Data Data Processing-- Also known as workflow segment test datainput_golden_table.tableexpected outputoutput_golden_data.tableCalculate outputCompare output resultstest datainput_golden_table.tableexpected outputoutput_golden_data.tableCalculate outputNode 11test datainput_golden_table.tableCompare output results Table Reader Table Reader Calculate Scores Table DifferenceFinder Table Reader Table Reader Calculate Scores CaptureWorkflow Start CaptureWorkflow End Workflow Executor Table Reader Table DifferenceChecker

Nodes

Extensions

Links