def optimize(self): """ Do an optimization. """ jmodel = callJavaFunc(SparkContext.getOrCreate(), self.value.optimize) from nn.layer import Model return Model.of(jmodel)
def optimize(self): """ Do an optimization. """ jmodel = callJavaFunc(get_spark_context(), self.value.optimize) from nn.layer import Model return Model.of(jmodel)