August 15, 2023

Writing the evaluation program in tJava – Docs for ESB 6.x

Writing the evaluation program in tJava

  1. Double-click tJava to open its
    Component view.
  2. Click Sync columns to ensure that
    tJava retrieves the replicated schema of
    tClassify.
  3. Click the Advanced settings tab to open its view.

    use_case-evaluation8.png

  4. In the Classes field, enter code to
    define the Java classes to be used to verify whether the predicted class
    labels match the actual class labels (spam for junk messages and ham for normal messages). In this scenario, row7 is the ID of the connection between
    tClassify and tReplicate and carries the classification result to be sent
    to its following components and row7Struct is the Java class of the RDD for the
    classification result. In your code, you need to replace row7, whether it is used alone or within
    row7Struct, with the corresponding
    connection ID used in your Job.

    Column names such as reallabel or
    label were defined in the previous step
    when configuring different components. If you named them differently, you
    need to keep them consistent for use in your code.
  5. Click the Basic settings tab to open its
    view and in the Code field, enter the code
    to be used to compute the accuracy score and the Matthews Correlation
    Coefficient (MCC) of the classification model.

    For general explanation about Mathews Correlation Coefficient, see https://en.wikipedia.org/wiki/Matthews_correlation_coefficient from Wikipedia.

Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x