Free JavaScript Editor
Ajax Editor
|
|
SummaryThere are two kinds of decisions trees: Classification trees result in categorical responses, and regression trees return continuous values. The representation of DTs is very intuitive, and almost identical in both cases:
The simulation algorithm uses a data sample to traverse the tree according to the results of each conditional test. The training—or induction—algorithm operates with recursive partitioning:
The best way to improve the training is to manage the data set, using additional validation and testing sets. Pruning also is a very effective option in computer games, but other techniques such as bagging and boosting are not very suited to game development. Because DTs are capable of finding patterns in data, and learning to recognize them, the next chapter applies them to weapon selection. Based on the situation, the DT will learn to evaluate the fitness of each weapon.
|
|
|
Ajax Editor
JavaScript Editor