A general framework for predictive tensor modeling with domain knowledge