add iter to shapedb
add n_points to trainer