mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
+1
-1
@@ -340,7 +340,7 @@
|
||||
" featureCols.append(key)\r\n",
|
||||
"\r\n",
|
||||
"# string-index the label column into a column named \"label\"\r\n",
|
||||
"si_label = StringIndexer(inputCol=label, outputCol='label')\r\n",
|
||||
"si_label = StringIndexer(inputCol=label, outputCol='label').setHandleInvalid("skip")\r\n",
|
||||
"\r\n",
|
||||
"# assemble the encoded feature columns in to a column named \"features\"\r\n",
|
||||
"assembler = VectorAssembler(inputCols=featureCols, outputCol=\"features\")\r\n",
|
||||
|
||||
Reference in New Issue
Block a user