Skip to content

Mission 11 - Predict Classification

Estimated time for completing this mission: 30 mins

Learning Objective

Understanding how to use the classification model to produce meaningful outputs.

Scenario

Now that you have a trained classification model, you can use it to fill the empty cells with the classified category.

BLOX used in this mission:

  • Basics/Start
  • MyData/FinalData
  • Database/Filter x2
  • Database/First Rows x2
  • Database/Delete Column
  • AI/Classifier
  • AI/Smart Fill
  • Database/Rename

startBlox

BLOX used for this mission

Data

The same data set will be used as for the previous task FinalData.

Steps

Please refer to the Navigation Guide to perform the steps below

  1. In the Module 3 folder press the green plus button to create new logic named "Predict Categories"
  2. Drag-and-drop logics that will be used for this mission
  3. Next, connect the "Starting" BLOX to the "MyData" BLOX
  4. Then connect the result to two "Filter" BLOX where in each case choose the column STATUS
  5. Then with the first "Filter" BLOX select all the empty cells whereas for the other one select the ones which are not empty
  6. Then apply the BLOX "First Rows" on both "Filter" BLOX and restrict the number of rows to 10 (of course feel free to try it with different number of rows)
  7. The next step should be executed on the table where the empty STATUS columns were selected
  8. Connect the "First Rows" with a "Delete Column" BLOX and delete the empty Status Column
  9. Now, from the other "First Row" BLOX (the one with the non-empty STATUS) draw an arrow to a "Classifier" BLOX where you have to specify the model name ("Classification Model", the model saved in the previous mission)
  10. Now connect the result from the "Classifier" and the result from "Delete Column" (from step 8) to a "Smart Fill" BLOX (it is important to connect the "Predict Classification" result to "Class Table" and the "Delete Column" to "Table")
  11. This will add a new column to the table with the predicted categories
  12. Then the result of the "Smart Fill" BLOX should be connected with a "Rename" BLOX where the column "None" should be renamed to "PREDICTED STATUS"

Results and Summary

startBlox

Final logic composition

startBlox

Final table with the predicted STATUS

In the final table you should be able to see the predicted categories by the model!

Well done! Now let's move on to the next module!