January 2018
Intermediate to advanced
332 pages
7h 36m
English
Although we have generated the tree and the expected/actual results of the input dataset based on training set, it's really difficult to visualize this data right now. So, to do that, let's create a small component that accepts the tree and renders the nested format of the tree on the UI. This is pretty minimal and is only for the purpose of understanding our data in the form of the decision tree.
Under the utils folder, let's first create the folder called treeview to contain our component. Let's call it treeview, as we create the component and inject it into the main module.
For the treeview, let's first create the treeview.ts file:
import {Component, Input} from '@angular/core';@Component ({ selector ...
Read now
Unlock full access