fit using decision trees and truncated histories