标签: java-8 apache-spark-sql
是否可以将VectorAssembler转换为OneHotEncoder?
VectorAssembler
OneHotEncoder
以下代码是我疯狂的测试。
Pipeline lPipeline = new Pipeline(); lPipeline.setStages(this.getPipelineStages()); OneHotEncoder lOHE1 = (OneHotEncoder)lPipeline.getStages()[2];