New Algorithms for Programmatic Deep Learning with Applications to Behavior Modeling