Skip to content

Commit

Permalink
fix: java params patch
Browse files Browse the repository at this point in the history
  • Loading branch information
imatiach-msft committed May 2, 2021
1 parent d7b86d3 commit 8a6a849
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/scala/com/microsoft/ml/spark/codegen/Wrappable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,12 @@ trait PythonWrappable extends BaseWrappable {
| sql_ctx = SQLContext.getOrCreate(ctx)
| return DataFrame(self._java_obj.get$capName(), sql_ctx)
|""".stripMargin
case _: TransformerParam | EstimatorParam | PipelineStageParam =>
s"""|
|def get$capName(self):
|${indent(docString, 1)}
| return JavaParams._from_java(self._java_obj.get$capName())
|""".stripMargin
case _ =>
s"""|
|def get$capName(self):
Expand Down

0 comments on commit 8a6a849

Please sign in to comment.