def _get_fast_dot():
 try:
  from sklearn.utils.extmath import fast_dot
 except ImportError:
  fast_dot = np.dot
 return fast_dot

def _get_fast_dot ( ) : try : from sklearn . utils . extmath import fast_dot except ImportError : fast_dot = np . dot return fast_dot
get fast dot .