6 #ifndef TURI_TEXT_PERPLEXITY_H_ 7 #define TURI_TEXT_PERPLEXITY_H_ 9 #include <core/storage/sframe_interface/unity_sarray.hpp> 31 double perplexity(std::shared_ptr<sarray<flexible_type>> documents,
32 const std::shared_ptr<sarray<flexible_type>> doc_topic_prob,
33 const std::shared_ptr<sarray<flexible_type>> word_topic_prob,
34 const std::shared_ptr<sarray<flexible_type>> vocabulary);