R の rpart パッケージを使用して、トレーニング データからデシジョン ツリーを作成しました。データが増えたので、ツリーと照合してモデルをチェックしたいと思います。論理的/反復的に、私は次のことをしたい:
for each datapoint in new data
run point thru decision tree, branching as appropriate
examine how tree classifies the data point
determine if the datapoint is a true positive or false positive
Rでそれを行うにはどうすればよいですか?