def of(cls, jcriterion, bigdl_type="float"):
        """
        
        """
        criterion = Criterion(bigdl_type, jcriterion)
        criterion.value = jcriterion
        criterion.bigdl_type = bigdl_type
        return criterion