pyspark/bigdl/transform/vision/image.py
def get_predict(self, key="predict"):
        """
        get prediction rdd from ImageFrame
        """
        predicts = callBigDlFunc(self.bigdl_type, "distributedImageFrameToPredict", self.value, key)
        return predicts.map(lambda predict: (predict[0], predict[1].to_ndarray()) if predict[1] else (predict[0], None))
def get_predict(self, key="predict"):
        """
        get prediction rdd from ImageFrame
        """
        predicts = callBigDlFunc(self.bigdl_type, "distributedImageFrameToPredict", self.value, key)
        return predicts.map(lambda predict: (predict[0], predict[1].to_ndarray()) if predict[1] else (predict[0], None))
def get_predict ( self , key = "predict" ) : predicts = callBigDlFunc ( self . bigdl_type , "distributedImageFrameToPredict" , self . value , key ) return predicts . map ( lambda predict : ( predict [ 0 ] , predict [ 1 ] . to_ndarray ( ) ) if predict [ 1 ] else ( predict [ 0 ] , None ) )
get prediction rdd from ImageFrame
get prediction rdd from ImageFrame