[SPARK-23946] Fix 2.3.0 ScalaDocs are linked to the wrong source code
[spark-website.git] / site / docs / 2.3.0 / api / scala / org / apache / spark / ml / feature / StringIndexer.html
1 <!DOCTYPE html >
2 <html>
3 <head>
4 <title>StringIndexer - Spark 2.3.0 ScalaDoc - org.apache.spark.ml.feature.StringIndexer</title>
5 <meta name="description" content="StringIndexer - Spark 2.3.0 ScalaDoc - org.apache.spark.ml.feature.StringIndexer" />
6 <meta name="keywords" content="StringIndexer Spark 2.3.0 ScalaDoc org.apache.spark.ml.feature.StringIndexer" />
7 <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
8
9 <link href="../../../../../lib/template.css" media="screen" type="text/css" rel="stylesheet" />
10 <link href="../../../../../lib/diagrams.css" media="screen" type="text/css" rel="stylesheet" id="diagrams-css" />
11 <script type="text/javascript" src="../../../../../lib/jquery.js" id="jquery-js"></script>
12 <script type="text/javascript" src="../../../../../lib/jquery-ui.js"></script>
13 <script type="text/javascript" src="../../../../../lib/template.js"></script>
14 <script type="text/javascript" src="../../../../../lib/tools.tooltip.js"></script>
15
16 <script type="text/javascript">
17 if(top === self) {
18 var url = '../../../../../index.html';
19 var hash = 'org.apache.spark.ml.feature.StringIndexer';
20 var anchor = window.location.hash;
21 var anchor_opt = '';
22 if (anchor.length >= 1)
23 anchor_opt = '@' + anchor.substring(1);
24 window.location.href = url + '#' + hash + anchor_opt;
25 }
26 </script>
27
28 </head>
29 <body class="type">
30 <div id="definition">
31 <a href="StringIndexer$.html" title="See companion object"><img alt="Class/Object" src="../../../../../lib/class_to_object_big.png" /></a>
32 <p id="owner"><a href="../../../../package.html" class="extype" name="org">org</a>.<a href="../../../package.html" class="extype" name="org.apache">apache</a>.<a href="../../package.html" class="extype" name="org.apache.spark">spark</a>.<a href="../package.html" class="extype" name="org.apache.spark.ml">ml</a>.<a href="package.html" class="extype" name="org.apache.spark.ml.feature">feature</a></p>
33 <h1><a href="StringIndexer$.html" title="See companion object">StringIndexer</a></h1><h3><span class="morelinks"><div>
34 Related Docs:
35 <a href="StringIndexer$.html" title="See companion object">object StringIndexer</a>
36 | <a href="package.html" class="extype" name="org.apache.spark.ml.feature">package feature</a>
37 </div></span></h3><span class="permalink">
38 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer" title="Permalink" target="_top">
39 <img src="../../../../../lib/permalink.png" alt="Permalink" />
40 </a>
41 </span>
42 </div>
43
44 <h4 id="signature" class="signature">
45 <span class="modifier_kind">
46 <span class="modifier"></span>
47 <span class="kind">class</span>
48 </span>
49 <span class="symbol">
50 <span class="name">StringIndexer</span><span class="result"> extends <a href="../Estimator.html" class="extype" name="org.apache.spark.ml.Estimator">Estimator</a>[<a href="StringIndexerModel.html" class="extype" name="org.apache.spark.ml.feature.StringIndexerModel">StringIndexerModel</a>] with <span class="extype" name="org.apache.spark.ml.feature.StringIndexerBase">StringIndexerBase</span> with <a href="../util/DefaultParamsWritable.html" class="extype" name="org.apache.spark.ml.util.DefaultParamsWritable">DefaultParamsWritable</a></span>
51 </span>
52 </h4>
53
54 <div id="comment" class="fullcommenttop"><div class="comment cmt"><p>A label indexer that maps a string column of labels to an ML column of label indices.
55 If the input column is numeric, we cast it to string and index the string values.
56 The indices are in [0, numLabels). By default, this is ordered by label frequencies
57 so the most frequent label gets index 0. The ordering behavior is controlled by
58 setting <code>stringOrderType</code>.
59 </p></div><dl class="attributes block"> <dt>Annotations</dt><dd>
60 <span class="name">@Since</span><span class="args">(<span>
61
62 <span class="symbol">&quot;1.4.0&quot;</span>
63 </span>)</span>
64
65 </dd><dt>Source</dt><dd><a href="https://github.com/apache/spark/tree/v2.3.0/mllib/src/main/scala/org/apache/spark/ml/feature/StringIndexer.scala" target="_blank">StringIndexer.scala</a></dd><dt>See also</dt><dd><span class="cmt"><p><code>IndexToString</code> for the inverse transformation</p></span></dd></dl><div class="toggleContainer block">
66 <span class="toggle">Linear Supertypes</span>
67 <div class="superTypes hiddenContent"><a href="../util/DefaultParamsWritable.html" class="extype" name="org.apache.spark.ml.util.DefaultParamsWritable">DefaultParamsWritable</a>, <a href="../util/MLWritable.html" class="extype" name="org.apache.spark.ml.util.MLWritable">MLWritable</a>, <span class="extype" name="org.apache.spark.ml.feature.StringIndexerBase">StringIndexerBase</span>, <a href="../param/shared/HasOutputCol.html" class="extype" name="org.apache.spark.ml.param.shared.HasOutputCol">HasOutputCol</a>, <a href="../param/shared/HasInputCol.html" class="extype" name="org.apache.spark.ml.param.shared.HasInputCol">HasInputCol</a>, <a href="../param/shared/HasHandleInvalid.html" class="extype" name="org.apache.spark.ml.param.shared.HasHandleInvalid">HasHandleInvalid</a>, <a href="../Estimator.html" class="extype" name="org.apache.spark.ml.Estimator">Estimator</a>[<a href="StringIndexerModel.html" class="extype" name="org.apache.spark.ml.feature.StringIndexerModel">StringIndexerModel</a>], <a href="../PipelineStage.html" class="extype" name="org.apache.spark.ml.PipelineStage">PipelineStage</a>, <a href="../../internal/Logging.html" class="extype" name="org.apache.spark.internal.Logging">Logging</a>, <a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a>, <span class="extype" name="scala.Serializable">Serializable</span>, <span class="extype" name="java.io.Serializable">Serializable</span>, <a href="../util/Identifiable.html" class="extype" name="org.apache.spark.ml.util.Identifiable">Identifiable</a>, <span class="extype" name="scala.AnyRef">AnyRef</span>, <span class="extype" name="scala.Any">Any</span></div>
68 </div></div>
69
70
71 <div id="mbrsel">
72 <div id="textfilter"><span class="pre"></span><span class="input"><input id="mbrsel-input" type="text" accesskey="/" /></span><span class="post"></span></div>
73 <div id="order">
74 <span class="filtertype">Ordering</span>
75 <ol>
76 <li class="group out"><span>Grouped</span></li>
77 <li class="alpha in"><span>Alphabetic</span></li>
78 <li class="inherit out"><span>By Inheritance</span></li>
79 </ol>
80 </div>
81 <div id="ancestors">
82 <span class="filtertype">Inherited<br />
83 </span>
84 <ol id="linearization">
85 <li class="in" name="org.apache.spark.ml.feature.StringIndexer"><span>StringIndexer</span></li><li class="in" name="org.apache.spark.ml.util.DefaultParamsWritable"><span>DefaultParamsWritable</span></li><li class="in" name="org.apache.spark.ml.util.MLWritable"><span>MLWritable</span></li><li class="in" name="org.apache.spark.ml.feature.StringIndexerBase"><span>StringIndexerBase</span></li><li class="in" name="org.apache.spark.ml.param.shared.HasOutputCol"><span>HasOutputCol</span></li><li class="in" name="org.apache.spark.ml.param.shared.HasInputCol"><span>HasInputCol</span></li><li class="in" name="org.apache.spark.ml.param.shared.HasHandleInvalid"><span>HasHandleInvalid</span></li><li class="in" name="org.apache.spark.ml.Estimator"><span>Estimator</span></li><li class="in" name="org.apache.spark.ml.PipelineStage"><span>PipelineStage</span></li><li class="in" name="org.apache.spark.internal.Logging"><span>Logging</span></li><li class="in" name="org.apache.spark.ml.param.Params"><span>Params</span></li><li class="in" name="scala.Serializable"><span>Serializable</span></li><li class="in" name="java.io.Serializable"><span>Serializable</span></li><li class="in" name="org.apache.spark.ml.util.Identifiable"><span>Identifiable</span></li><li class="in" name="scala.AnyRef"><span>AnyRef</span></li><li class="in" name="scala.Any"><span>Any</span></li>
86 </ol>
87 </div><div id="ancestors">
88 <span class="filtertype"></span>
89 <ol>
90 <li class="hideall out"><span>Hide All</span></li>
91 <li class="showall in"><span>Show All</span></li>
92 </ol>
93 </div>
94 <div id="visbl">
95 <span class="filtertype">Visibility</span>
96 <ol><li class="public in"><span>Public</span></li><li class="all out"><span>All</span></li></ol>
97 </div>
98 </div>
99
100 <div id="template">
101 <div id="allMembers">
102 <div id="constructors" class="members">
103 <h3>Instance Constructors</h3>
104 <ol><li name="org.apache.spark.ml.feature.StringIndexer#&lt;init&gt;" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
105 <a id="&lt;init&gt;():org.apache.spark.ml.feature.StringIndexer"></a>
106 <a id="&lt;init&gt;:StringIndexer"></a>
107 <h4 class="signature">
108 <span class="modifier_kind">
109 <span class="modifier"></span>
110 <span class="kind">new</span>
111 </span>
112 <span class="symbol">
113 <span class="name">StringIndexer</span><span class="params">()</span>
114 </span>
115 </h4><span class="permalink">
116 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@&lt;init&gt;():org.apache.spark.ml.feature.StringIndexer" title="Permalink" target="_top">
117 <img src="../../../../../lib/permalink.png" alt="Permalink" />
118 </a>
119 </span>
120 <div class="fullcomment"><dl class="attributes block"> <dt>Annotations</dt><dd>
121 <span class="name">@Since</span><span class="args">(<span>
122
123 <span class="symbol">&quot;1.4.0&quot;</span>
124 </span>)</span>
125
126 </dd></dl></div>
127 </li><li name="org.apache.spark.ml.feature.StringIndexer#&lt;init&gt;" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
128 <a id="&lt;init&gt;(uid:String):org.apache.spark.ml.feature.StringIndexer"></a>
129 <a id="&lt;init&gt;:StringIndexer"></a>
130 <h4 class="signature">
131 <span class="modifier_kind">
132 <span class="modifier"></span>
133 <span class="kind">new</span>
134 </span>
135 <span class="symbol">
136 <span class="name">StringIndexer</span><span class="params">(<span name="uid">uid: <span class="extype" name="scala.Predef.String">String</span></span>)</span>
137 </span>
138 </h4><span class="permalink">
139 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@&lt;init&gt;(uid:String):org.apache.spark.ml.feature.StringIndexer" title="Permalink" target="_top">
140 <img src="../../../../../lib/permalink.png" alt="Permalink" />
141 </a>
142 </span>
143 <div class="fullcomment"><dl class="attributes block"> <dt>Annotations</dt><dd>
144 <span class="name">@Since</span><span class="args">(<span>
145
146 <span class="symbol">&quot;1.4.0&quot;</span>
147 </span>)</span>
148
149 </dd></dl></div>
150 </li></ol>
151 </div>
152
153
154
155
156
157 <div id="values" class="values members">
158 <h3>Value Members</h3>
159 <ol><li name="scala.AnyRef#!=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
160 <a id="!=(x$1:Any):Boolean"></a>
161 <a id="!=(Any):Boolean"></a>
162 <h4 class="signature">
163 <span class="modifier_kind">
164 <span class="modifier">final </span>
165 <span class="kind">def</span>
166 </span>
167 <span class="symbol">
168 <span title="gt4s: $bang$eq" class="name">!=</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
169 </span>
170 </h4><span class="permalink">
171 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@!=(x$1:Any):Boolean" title="Permalink" target="_top">
172 <img src="../../../../../lib/permalink.png" alt="Permalink" />
173 </a>
174 </span>
175 <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
176 </li><li name="scala.AnyRef###" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
177 <a id="##():Int"></a>
178 <a id="##():Int"></a>
179 <h4 class="signature">
180 <span class="modifier_kind">
181 <span class="modifier">final </span>
182 <span class="kind">def</span>
183 </span>
184 <span class="symbol">
185 <span title="gt4s: $hash$hash" class="name">##</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
186 </span>
187 </h4><span class="permalink">
188 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@##():Int" title="Permalink" target="_top">
189 <img src="../../../../../lib/permalink.png" alt="Permalink" />
190 </a>
191 </span>
192 <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
193 </li><li name="org.apache.spark.ml.param.Params#$" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
194 <a id="$[T](param:org.apache.spark.ml.param.Param[T]):T"></a>
195 <a id="$[T](Param[T]):T"></a>
196 <h4 class="signature">
197 <span class="modifier_kind">
198 <span class="modifier">final </span>
199 <span class="kind">def</span>
200 </span>
201 <span class="symbol">
202 <span class="name">$</span><span class="tparams">[<span name="T">T</span>]</span><span class="params">(<span name="param">param: <a href="../param/Param.html" class="extype" name="org.apache.spark.ml.param.Param">Param</a>[<span class="extype" name="org.apache.spark.ml.param.Params.$.T">T</span>]</span>)</span><span class="result">: <span class="extype" name="org.apache.spark.ml.param.Params.$.T">T</span></span>
203 </span>
204 </h4><span class="permalink">
205 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@$[T](param:org.apache.spark.ml.param.Param[T]):T" title="Permalink" target="_top">
206 <img src="../../../../../lib/permalink.png" alt="Permalink" />
207 </a>
208 </span>
209 <p class="shortcomment cmt">An alias for <code>getOrDefault()</code>.</p><div class="fullcomment"><div class="comment cmt"><p>An alias for <code>getOrDefault()</code>.
210 </p></div><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
211 </li><li name="scala.AnyRef#==" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
212 <a id="==(x$1:Any):Boolean"></a>
213 <a id="==(Any):Boolean"></a>
214 <h4 class="signature">
215 <span class="modifier_kind">
216 <span class="modifier">final </span>
217 <span class="kind">def</span>
218 </span>
219 <span class="symbol">
220 <span title="gt4s: $eq$eq" class="name">==</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
221 </span>
222 </h4><span class="permalink">
223 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@==(x$1:Any):Boolean" title="Permalink" target="_top">
224 <img src="../../../../../lib/permalink.png" alt="Permalink" />
225 </a>
226 </span>
227 <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
228 </li><li name="scala.Any#asInstanceOf" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
229 <a id="asInstanceOf[T0]:T0"></a>
230 <a id="asInstanceOf[T0]:T0"></a>
231 <h4 class="signature">
232 <span class="modifier_kind">
233 <span class="modifier">final </span>
234 <span class="kind">def</span>
235 </span>
236 <span class="symbol">
237 <span class="name">asInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span class="extype" name="scala.Any.asInstanceOf.T0">T0</span></span>
238 </span>
239 </h4><span class="permalink">
240 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@asInstanceOf[T0]:T0" title="Permalink" target="_top">
241 <img src="../../../../../lib/permalink.png" alt="Permalink" />
242 </a>
243 </span>
244 <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div>
245 </li><li name="org.apache.spark.ml.param.Params#clear" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
246 <a id="clear(param:org.apache.spark.ml.param.Param[_]):Params.this.type"></a>
247 <a id="clear(Param[_]):StringIndexer.this.type"></a>
248 <h4 class="signature">
249 <span class="modifier_kind">
250 <span class="modifier">final </span>
251 <span class="kind">def</span>
252 </span>
253 <span class="symbol">
254 <span class="name">clear</span><span class="params">(<span name="param">param: <a href="../param/Param.html" class="extype" name="org.apache.spark.ml.param.Param">Param</a>[_]</span>)</span><span class="result">: <a href="" class="extype" name="org.apache.spark.ml.feature.StringIndexer">StringIndexer</a>.this.type</span>
255 </span>
256 </h4><span class="permalink">
257 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@clear(param:org.apache.spark.ml.param.Param[_]):Params.this.type" title="Permalink" target="_top">
258 <img src="../../../../../lib/permalink.png" alt="Permalink" />
259 </a>
260 </span>
261 <p class="shortcomment cmt">Clears the user-supplied value for the input param.</p><div class="fullcomment"><div class="comment cmt"><p>Clears the user-supplied value for the input param.
262 </p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
263 </li><li name="scala.AnyRef#clone" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
264 <a id="clone():Object"></a>
265 <a id="clone():AnyRef"></a>
266 <h4 class="signature">
267 <span class="modifier_kind">
268 <span class="modifier"></span>
269 <span class="kind">def</span>
270 </span>
271 <span class="symbol">
272 <span class="name">clone</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.AnyRef">AnyRef</span></span>
273 </span>
274 </h4><span class="permalink">
275 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@clone():Object" title="Permalink" target="_top">
276 <img src="../../../../../lib/permalink.png" alt="Permalink" />
277 </a>
278 </span>
279 <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a href="../../../../../java$lang.html" class="extype" name="java.lang">java.lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
280 <span class="name">@throws</span><span class="args">(<span>
281
282 <span class="defval" name="classOf[java.lang.CloneNotSupportedException]">...</span>
283 </span>)</span>
284
285 </dd></dl></div>
286 </li><li name="org.apache.spark.ml.feature.StringIndexer#copy" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
287 <a id="copy(extra:org.apache.spark.ml.param.ParamMap):org.apache.spark.ml.feature.StringIndexer"></a>
288 <a id="copy(ParamMap):StringIndexer"></a>
289 <h4 class="signature">
290 <span class="modifier_kind">
291 <span class="modifier"></span>
292 <span class="kind">def</span>
293 </span>
294 <span class="symbol">
295 <span class="name">copy</span><span class="params">(<span name="extra">extra: <a href="../param/ParamMap.html" class="extype" name="org.apache.spark.ml.param.ParamMap">ParamMap</a></span>)</span><span class="result">: <a href="" class="extype" name="org.apache.spark.ml.feature.StringIndexer">StringIndexer</a></span>
296 </span>
297 </h4><span class="permalink">
298 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@copy(extra:org.apache.spark.ml.param.ParamMap):org.apache.spark.ml.feature.StringIndexer" title="Permalink" target="_top">
299 <img src="../../../../../lib/permalink.png" alt="Permalink" />
300 </a>
301 </span>
302 <p class="shortcomment cmt">Creates a copy of this instance with the same UID and some extra params.</p><div class="fullcomment"><div class="comment cmt"><p>Creates a copy of this instance with the same UID and some extra params.
303 Subclasses should implement this method and set the return type properly.
304 See <code>defaultCopy()</code>.
305 </p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="org.apache.spark.ml.feature.StringIndexer">StringIndexer</a><a href="../Estimator.html" class="extype" name="org.apache.spark.ml.Estimator">Estimator</a><a href="../PipelineStage.html" class="extype" name="org.apache.spark.ml.PipelineStage">PipelineStage</a><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd><dt>Annotations</dt><dd>
306 <span class="name">@Since</span><span class="args">(<span>
307
308 <span class="symbol">&quot;1.4.1&quot;</span>
309 </span>)</span>
310
311 </dd></dl></div>
312 </li><li name="org.apache.spark.ml.param.Params#copyValues" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
313 <a id="copyValues[T&lt;:org.apache.spark.ml.param.Params](to:T,extra:org.apache.spark.ml.param.ParamMap):T"></a>
314 <a id="copyValues[T&lt;:Params](T,ParamMap):T"></a>
315 <h4 class="signature">
316 <span class="modifier_kind">
317 <span class="modifier"></span>
318 <span class="kind">def</span>
319 </span>
320 <span class="symbol">
321 <span class="name">copyValues</span><span class="tparams">[<span name="T">T &lt;: <a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></span>]</span><span class="params">(<span name="to">to: <span class="extype" name="org.apache.spark.ml.param.Params.copyValues.T">T</span></span>, <span name="extra">extra: <a href="../param/ParamMap.html" class="extype" name="org.apache.spark.ml.param.ParamMap">ParamMap</a> = <span class="symbol"><span class="name"><a href="../param/ParamMap$.html">ParamMap.empty</a></span></span></span>)</span><span class="result">: <span class="extype" name="org.apache.spark.ml.param.Params.copyValues.T">T</span></span>
322 </span>
323 </h4><span class="permalink">
324 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@copyValues[T&lt;:org.apache.spark.ml.param.Params](to:T,extra:org.apache.spark.ml.param.ParamMap):T" title="Permalink" target="_top">
325 <img src="../../../../../lib/permalink.png" alt="Permalink" />
326 </a>
327 </span>
328 <p class="shortcomment cmt">Copies param values from this instance to another instance for params shared by them.</p><div class="fullcomment"><div class="comment cmt"><p>Copies param values from this instance to another instance for params shared by them.</p><p>This handles default Params and explicitly set Params separately.
329 Default Params are copied from and to <code>defaultParamMap</code>, and explicitly set Params are
330 copied from and to <code>paramMap</code>.
331 Warning: This implicitly assumes that this <a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a> instance and the target instance
332 share the same set of default Params.
333 </p></div><dl class="paramcmts block"><dt class="param">to</dt><dd class="cmt"><p>the target instance, which should work with the same set of default Params as this
334 source instance</p></dd><dt class="param">extra</dt><dd class="cmt"><p>extra params to be copied to the target's <code>paramMap</code></p></dd><dt>returns</dt><dd class="cmt"><p>the target instance with param values copied</p></dd></dl><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
335 </li><li name="org.apache.spark.ml.param.Params#defaultCopy" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
336 <a id="defaultCopy[T&lt;:org.apache.spark.ml.param.Params](extra:org.apache.spark.ml.param.ParamMap):T"></a>
337 <a id="defaultCopy[T&lt;:Params](ParamMap):T"></a>
338 <h4 class="signature">
339 <span class="modifier_kind">
340 <span class="modifier">final </span>
341 <span class="kind">def</span>
342 </span>
343 <span class="symbol">
344 <span class="name">defaultCopy</span><span class="tparams">[<span name="T">T &lt;: <a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></span>]</span><span class="params">(<span name="extra">extra: <a href="../param/ParamMap.html" class="extype" name="org.apache.spark.ml.param.ParamMap">ParamMap</a></span>)</span><span class="result">: <span class="extype" name="org.apache.spark.ml.param.Params.defaultCopy.T">T</span></span>
345 </span>
346 </h4><span class="permalink">
347 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@defaultCopy[T&lt;:org.apache.spark.ml.param.Params](extra:org.apache.spark.ml.param.ParamMap):T" title="Permalink" target="_top">
348 <img src="../../../../../lib/permalink.png" alt="Permalink" />
349 </a>
350 </span>
351 <p class="shortcomment cmt">Default implementation of copy with extra params.</p><div class="fullcomment"><div class="comment cmt"><p>Default implementation of copy with extra params.
352 It tries to create a new instance with the same UID.
353 Then it copies the embedded and extra parameters over and returns the new instance.
354 </p></div><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
355 </li><li name="scala.AnyRef#eq" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
356 <a id="eq(x$1:AnyRef):Boolean"></a>
357 <a id="eq(AnyRef):Boolean"></a>
358 <h4 class="signature">
359 <span class="modifier_kind">
360 <span class="modifier">final </span>
361 <span class="kind">def</span>
362 </span>
363 <span class="symbol">
364 <span class="name">eq</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
365 </span>
366 </h4><span class="permalink">
367 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@eq(x$1:AnyRef):Boolean" title="Permalink" target="_top">
368 <img src="../../../../../lib/permalink.png" alt="Permalink" />
369 </a>
370 </span>
371 <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
372 </li><li name="scala.AnyRef#equals" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
373 <a id="equals(x$1:Any):Boolean"></a>
374 <a id="equals(Any):Boolean"></a>
375 <h4 class="signature">
376 <span class="modifier_kind">
377 <span class="modifier"></span>
378 <span class="kind">def</span>
379 </span>
380 <span class="symbol">
381 <span class="name">equals</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
382 </span>
383 </h4><span class="permalink">
384 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@equals(x$1:Any):Boolean" title="Permalink" target="_top">
385 <img src="../../../../../lib/permalink.png" alt="Permalink" />
386 </a>
387 </span>
388 <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
389 </li><li name="org.apache.spark.ml.param.Params#explainParam" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
390 <a id="explainParam(param:org.apache.spark.ml.param.Param[_]):String"></a>
391 <a id="explainParam(Param[_]):String"></a>
392 <h4 class="signature">
393 <span class="modifier_kind">
394 <span class="modifier"></span>
395 <span class="kind">def</span>
396 </span>
397 <span class="symbol">
398 <span class="name">explainParam</span><span class="params">(<span name="param">param: <a href="../param/Param.html" class="extype" name="org.apache.spark.ml.param.Param">Param</a>[_]</span>)</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span>
399 </span>
400 </h4><span class="permalink">
401 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@explainParam(param:org.apache.spark.ml.param.Param[_]):String" title="Permalink" target="_top">
402 <img src="../../../../../lib/permalink.png" alt="Permalink" />
403 </a>
404 </span>
405 <p class="shortcomment cmt">Explains a param.</p><div class="fullcomment"><div class="comment cmt"><p>Explains a param.</p></div><dl class="paramcmts block"><dt class="param">param</dt><dd class="cmt"><p>input param, must belong to this instance.</p></dd><dt>returns</dt><dd class="cmt"><p>a string that contains the input param name, doc, and optionally its default value and
406 the user-supplied value</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
407 </li><li name="org.apache.spark.ml.param.Params#explainParams" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
408 <a id="explainParams():String"></a>
409 <a id="explainParams():String"></a>
410 <h4 class="signature">
411 <span class="modifier_kind">
412 <span class="modifier"></span>
413 <span class="kind">def</span>
414 </span>
415 <span class="symbol">
416 <span class="name">explainParams</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span>
417 </span>
418 </h4><span class="permalink">
419 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@explainParams():String" title="Permalink" target="_top">
420 <img src="../../../../../lib/permalink.png" alt="Permalink" />
421 </a>
422 </span>
423 <p class="shortcomment cmt">Explains all params of this instance.</p><div class="fullcomment"><div class="comment cmt"><p>Explains all params of this instance. See <code>explainParam()</code>.
424 </p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
425 </li><li name="org.apache.spark.ml.param.Params#extractParamMap" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
426 <a id="extractParamMap():org.apache.spark.ml.param.ParamMap"></a>
427 <a id="extractParamMap():ParamMap"></a>
428 <h4 class="signature">
429 <span class="modifier_kind">
430 <span class="modifier">final </span>
431 <span class="kind">def</span>
432 </span>
433 <span class="symbol">
434 <span class="name">extractParamMap</span><span class="params">()</span><span class="result">: <a href="../param/ParamMap.html" class="extype" name="org.apache.spark.ml.param.ParamMap">ParamMap</a></span>
435 </span>
436 </h4><span class="permalink">
437 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@extractParamMap():org.apache.spark.ml.param.ParamMap" title="Permalink" target="_top">
438 <img src="../../../../../lib/permalink.png" alt="Permalink" />
439 </a>
440 </span>
441 <p class="shortcomment cmt"><code>extractParamMap</code> with no extra values.</p><div class="fullcomment"><div class="comment cmt"><p><code>extractParamMap</code> with no extra values.
442 </p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
443 </li><li name="org.apache.spark.ml.param.Params#extractParamMap" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
444 <a id="extractParamMap(extra:org.apache.spark.ml.param.ParamMap):org.apache.spark.ml.param.ParamMap"></a>
445 <a id="extractParamMap(ParamMap):ParamMap"></a>
446 <h4 class="signature">
447 <span class="modifier_kind">
448 <span class="modifier">final </span>
449 <span class="kind">def</span>
450 </span>
451 <span class="symbol">
452 <span class="name">extractParamMap</span><span class="params">(<span name="extra">extra: <a href="../param/ParamMap.html" class="extype" name="org.apache.spark.ml.param.ParamMap">ParamMap</a></span>)</span><span class="result">: <a href="../param/ParamMap.html" class="extype" name="org.apache.spark.ml.param.ParamMap">ParamMap</a></span>
453 </span>
454 </h4><span class="permalink">
455 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@extractParamMap(extra:org.apache.spark.ml.param.ParamMap):org.apache.spark.ml.param.ParamMap" title="Permalink" target="_top">
456 <img src="../../../../../lib/permalink.png" alt="Permalink" />
457 </a>
458 </span>
459 <p class="shortcomment cmt">Extracts the embedded default param values and user-supplied values, and then merges them with
460 extra values from input into a flat param map, where the latter value is used if there exist
461 conflicts, i.e., with ordering:
462 default param values less than user-supplied values less than extra.</p><div class="fullcomment"><div class="comment cmt"><p>Extracts the embedded default param values and user-supplied values, and then merges them with
463 extra values from input into a flat param map, where the latter value is used if there exist
464 conflicts, i.e., with ordering:
465 default param values less than user-supplied values less than extra.
466 </p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
467 </li><li name="scala.AnyRef#finalize" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
468 <a id="finalize():Unit"></a>
469 <a id="finalize():Unit"></a>
470 <h4 class="signature">
471 <span class="modifier_kind">
472 <span class="modifier"></span>
473 <span class="kind">def</span>
474 </span>
475 <span class="symbol">
476 <span class="name">finalize</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
477 </span>
478 </h4><span class="permalink">
479 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@finalize():Unit" title="Permalink" target="_top">
480 <img src="../../../../../lib/permalink.png" alt="Permalink" />
481 </a>
482 </span>
483 <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a href="../../../../../java$lang.html" class="extype" name="java.lang">java.lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
484 <span class="name">@throws</span><span class="args">(<span>
485
486 <span class="symbol">classOf[java.lang.Throwable]</span>
487 </span>)</span>
488
489 </dd></dl></div>
490 </li><li name="org.apache.spark.ml.feature.StringIndexer#fit" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
491 <a id="fit(dataset:org.apache.spark.sql.Dataset[_]):org.apache.spark.ml.feature.StringIndexerModel"></a>
492 <a id="fit(Dataset[_]):StringIndexerModel"></a>
493 <h4 class="signature">
494 <span class="modifier_kind">
495 <span class="modifier"></span>
496 <span class="kind">def</span>
497 </span>
498 <span class="symbol">
499 <span class="name">fit</span><span class="params">(<span name="dataset">dataset: <a href="../../sql/Dataset.html" class="extype" name="org.apache.spark.sql.Dataset">Dataset</a>[_]</span>)</span><span class="result">: <a href="StringIndexerModel.html" class="extype" name="org.apache.spark.ml.feature.StringIndexerModel">StringIndexerModel</a></span>
500 </span>
501 </h4><span class="permalink">
502 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@fit(dataset:org.apache.spark.sql.Dataset[_]):org.apache.spark.ml.feature.StringIndexerModel" title="Permalink" target="_top">
503 <img src="../../../../../lib/permalink.png" alt="Permalink" />
504 </a>
505 </span>
506 <p class="shortcomment cmt">Fits a model to the input data.</p><div class="fullcomment"><div class="comment cmt"><p>Fits a model to the input data.
507 </p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="org.apache.spark.ml.feature.StringIndexer">StringIndexer</a><a href="../Estimator.html" class="extype" name="org.apache.spark.ml.Estimator">Estimator</a></dd><dt>Annotations</dt><dd>
508 <span class="name">@Since</span><span class="args">(<span>
509
510 <span class="symbol">&quot;2.0.0&quot;</span>
511 </span>)</span>
512
513 </dd></dl></div>
514 </li><li name="org.apache.spark.ml.Estimator#fit" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
515 <a id="fit(dataset:org.apache.spark.sql.Dataset[_],paramMaps:Array[org.apache.spark.ml.param.ParamMap]):Seq[M]"></a>
516 <a id="fit(Dataset[_],Array[ParamMap]):Seq[StringIndexerModel]"></a>
517 <h4 class="signature">
518 <span class="modifier_kind">
519 <span class="modifier"></span>
520 <span class="kind">def</span>
521 </span>
522 <span class="symbol">
523 <span class="name">fit</span><span class="params">(<span name="dataset">dataset: <a href="../../sql/Dataset.html" class="extype" name="org.apache.spark.sql.Dataset">Dataset</a>[_]</span>, <span name="paramMaps">paramMaps: <span class="extype" name="scala.Array">Array</span>[<a href="../param/ParamMap.html" class="extype" name="org.apache.spark.ml.param.ParamMap">ParamMap</a>]</span>)</span><span class="result">: <span class="extype" name="scala.Seq">Seq</span>[<a href="StringIndexerModel.html" class="extype" name="org.apache.spark.ml.feature.StringIndexerModel">StringIndexerModel</a>]</span>
524 </span>
525 </h4><span class="permalink">
526 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@fit(dataset:org.apache.spark.sql.Dataset[_],paramMaps:Array[org.apache.spark.ml.param.ParamMap]):Seq[M]" title="Permalink" target="_top">
527 <img src="../../../../../lib/permalink.png" alt="Permalink" />
528 </a>
529 </span>
530 <p class="shortcomment cmt">Fits multiple models to the input data with multiple sets of parameters.</p><div class="fullcomment"><div class="comment cmt"><p>Fits multiple models to the input data with multiple sets of parameters.
531 The default implementation uses a for loop on each parameter map.
532 Subclasses could override this to optimize multi-model training.
533 </p></div><dl class="paramcmts block"><dt class="param">dataset</dt><dd class="cmt"><p>input dataset</p></dd><dt class="param">paramMaps</dt><dd class="cmt"><p>An array of parameter maps.
534 These values override any specified in this Estimator's embedded ParamMap.</p></dd><dt>returns</dt><dd class="cmt"><p>fitted models, matching the input parameter maps</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../Estimator.html" class="extype" name="org.apache.spark.ml.Estimator">Estimator</a></dd><dt>Annotations</dt><dd>
535 <span class="name">@Since</span><span class="args">(<span>
536
537 <span class="symbol">&quot;2.0.0&quot;</span>
538 </span>)</span>
539
540 </dd></dl></div>
541 </li><li name="org.apache.spark.ml.Estimator#fit" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
542 <a id="fit(dataset:org.apache.spark.sql.Dataset[_],paramMap:org.apache.spark.ml.param.ParamMap):M"></a>
543 <a id="fit(Dataset[_],ParamMap):StringIndexerModel"></a>
544 <h4 class="signature">
545 <span class="modifier_kind">
546 <span class="modifier"></span>
547 <span class="kind">def</span>
548 </span>
549 <span class="symbol">
550 <span class="name">fit</span><span class="params">(<span name="dataset">dataset: <a href="../../sql/Dataset.html" class="extype" name="org.apache.spark.sql.Dataset">Dataset</a>[_]</span>, <span name="paramMap">paramMap: <a href="../param/ParamMap.html" class="extype" name="org.apache.spark.ml.param.ParamMap">ParamMap</a></span>)</span><span class="result">: <a href="StringIndexerModel.html" class="extype" name="org.apache.spark.ml.feature.StringIndexerModel">StringIndexerModel</a></span>
551 </span>
552 </h4><span class="permalink">
553 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@fit(dataset:org.apache.spark.sql.Dataset[_],paramMap:org.apache.spark.ml.param.ParamMap):M" title="Permalink" target="_top">
554 <img src="../../../../../lib/permalink.png" alt="Permalink" />
555 </a>
556 </span>
557 <p class="shortcomment cmt">Fits a single model to the input data with provided parameter map.</p><div class="fullcomment"><div class="comment cmt"><p>Fits a single model to the input data with provided parameter map.
558 </p></div><dl class="paramcmts block"><dt class="param">dataset</dt><dd class="cmt"><p>input dataset</p></dd><dt class="param">paramMap</dt><dd class="cmt"><p>Parameter map.
559 These values override any specified in this Estimator's embedded ParamMap.</p></dd><dt>returns</dt><dd class="cmt"><p>fitted model</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../Estimator.html" class="extype" name="org.apache.spark.ml.Estimator">Estimator</a></dd><dt>Annotations</dt><dd>
560 <span class="name">@Since</span><span class="args">(<span>
561
562 <span class="symbol">&quot;2.0.0&quot;</span>
563 </span>)</span>
564
565 </dd></dl></div>
566 </li><li name="org.apache.spark.ml.Estimator#fit" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
567 <a id="fit(dataset:org.apache.spark.sql.Dataset[_],firstParamPair:org.apache.spark.ml.param.ParamPair[_],otherParamPairs:org.apache.spark.ml.param.ParamPair[_]*):M"></a>
568 <a id="fit(Dataset[_],ParamPair[_],ParamPair[_]*):StringIndexerModel"></a>
569 <h4 class="signature">
570 <span class="modifier_kind">
571 <span class="modifier"></span>
572 <span class="kind">def</span>
573 </span>
574 <span class="symbol">
575 <span class="name">fit</span><span class="params">(<span name="dataset">dataset: <a href="../../sql/Dataset.html" class="extype" name="org.apache.spark.sql.Dataset">Dataset</a>[_]</span>, <span name="firstParamPair">firstParamPair: <a href="../param/ParamPair.html" class="extype" name="org.apache.spark.ml.param.ParamPair">ParamPair</a>[_]</span>, <span name="otherParamPairs">otherParamPairs: <a href="../param/ParamPair.html" class="extype" name="org.apache.spark.ml.param.ParamPair">ParamPair</a>[_]*</span>)</span><span class="result">: <a href="StringIndexerModel.html" class="extype" name="org.apache.spark.ml.feature.StringIndexerModel">StringIndexerModel</a></span>
576 </span>
577 </h4><span class="permalink">
578 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@fit(dataset:org.apache.spark.sql.Dataset[_],firstParamPair:org.apache.spark.ml.param.ParamPair[_],otherParamPairs:org.apache.spark.ml.param.ParamPair[_]*):M" title="Permalink" target="_top">
579 <img src="../../../../../lib/permalink.png" alt="Permalink" />
580 </a>
581 </span>
582 <p class="shortcomment cmt">Fits a single model to the input data with optional parameters.</p><div class="fullcomment"><div class="comment cmt"><p>Fits a single model to the input data with optional parameters.
583 </p></div><dl class="paramcmts block"><dt class="param">dataset</dt><dd class="cmt"><p>input dataset</p></dd><dt class="param">firstParamPair</dt><dd class="cmt"><p>the first param pair, overrides embedded params</p></dd><dt class="param">otherParamPairs</dt><dd class="cmt"><p>other param pairs. These values override any specified in this
584 Estimator's embedded ParamMap.</p></dd><dt>returns</dt><dd class="cmt"><p>fitted model</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../Estimator.html" class="extype" name="org.apache.spark.ml.Estimator">Estimator</a></dd><dt>Annotations</dt><dd>
585 <span class="name">@Since</span><span class="args">(<span>
586
587 <span class="symbol">&quot;2.0.0&quot;</span>
588 </span>)</span>
589
590 <span class="name">@varargs</span><span class="args">()</span>
591
592 </dd></dl></div>
593 </li><li name="org.apache.spark.ml.param.Params#get" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
594 <a id="get[T](param:org.apache.spark.ml.param.Param[T]):Option[T]"></a>
595 <a id="get[T](Param[T]):Option[T]"></a>
596 <h4 class="signature">
597 <span class="modifier_kind">
598 <span class="modifier">final </span>
599 <span class="kind">def</span>
600 </span>
601 <span class="symbol">
602 <span class="name">get</span><span class="tparams">[<span name="T">T</span>]</span><span class="params">(<span name="param">param: <a href="../param/Param.html" class="extype" name="org.apache.spark.ml.param.Param">Param</a>[<span class="extype" name="org.apache.spark.ml.param.Params.get.T">T</span>]</span>)</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<span class="extype" name="org.apache.spark.ml.param.Params.get.T">T</span>]</span>
603 </span>
604 </h4><span class="permalink">
605 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@get[T](param:org.apache.spark.ml.param.Param[T]):Option[T]" title="Permalink" target="_top">
606 <img src="../../../../../lib/permalink.png" alt="Permalink" />
607 </a>
608 </span>
609 <p class="shortcomment cmt">Optionally returns the user-supplied value of a param.</p><div class="fullcomment"><div class="comment cmt"><p>Optionally returns the user-supplied value of a param.
610 </p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
611 </li><li name="scala.AnyRef#getClass" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
612 <a id="getClass():Class[_]"></a>
613 <a id="getClass():Class[_]"></a>
614 <h4 class="signature">
615 <span class="modifier_kind">
616 <span class="modifier">final </span>
617 <span class="kind">def</span>
618 </span>
619 <span class="symbol">
620 <span class="name">getClass</span><span class="params">()</span><span class="result">: <span class="extype" name="java.lang.Class">Class</span>[_]</span>
621 </span>
622 </h4><span class="permalink">
623 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@getClass():Class[_]" title="Permalink" target="_top">
624 <img src="../../../../../lib/permalink.png" alt="Permalink" />
625 </a>
626 </span>
627 <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
628 </li><li name="org.apache.spark.ml.param.Params#getDefault" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
629 <a id="getDefault[T](param:org.apache.spark.ml.param.Param[T]):Option[T]"></a>
630 <a id="getDefault[T](Param[T]):Option[T]"></a>
631 <h4 class="signature">
632 <span class="modifier_kind">
633 <span class="modifier">final </span>
634 <span class="kind">def</span>
635 </span>
636 <span class="symbol">
637 <span class="name">getDefault</span><span class="tparams">[<span name="T">T</span>]</span><span class="params">(<span name="param">param: <a href="../param/Param.html" class="extype" name="org.apache.spark.ml.param.Param">Param</a>[<span class="extype" name="org.apache.spark.ml.param.Params.getDefault.T">T</span>]</span>)</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<span class="extype" name="org.apache.spark.ml.param.Params.getDefault.T">T</span>]</span>
638 </span>
639 </h4><span class="permalink">
640 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@getDefault[T](param:org.apache.spark.ml.param.Param[T]):Option[T]" title="Permalink" target="_top">
641 <img src="../../../../../lib/permalink.png" alt="Permalink" />
642 </a>
643 </span>
644 <p class="shortcomment cmt">Gets the default value of a parameter.</p><div class="fullcomment"><div class="comment cmt"><p>Gets the default value of a parameter.
645 </p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
646 </li><li name="org.apache.spark.ml.param.shared.HasHandleInvalid#getHandleInvalid" visbl="pub" data-isabs="false" fullComment="yes" group="getParam">
647 <a id="getHandleInvalid:String"></a>
648 <a id="getHandleInvalid:String"></a>
649 <h4 class="signature">
650 <span class="modifier_kind">
651 <span class="modifier">final </span>
652 <span class="kind">def</span>
653 </span>
654 <span class="symbol">
655 <span class="name">getHandleInvalid</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span>
656 </span>
657 </h4><span class="permalink">
658 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@getHandleInvalid:String" title="Permalink" target="_top">
659 <img src="../../../../../lib/permalink.png" alt="Permalink" />
660 </a>
661 </span>
662 <p class="shortcomment cmt"></p><div class="fullcomment"><div class="comment cmt"></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/shared/HasHandleInvalid.html" class="extype" name="org.apache.spark.ml.param.shared.HasHandleInvalid">HasHandleInvalid</a></dd></dl></div>
663 </li><li name="org.apache.spark.ml.param.shared.HasInputCol#getInputCol" visbl="pub" data-isabs="false" fullComment="yes" group="getParam">
664 <a id="getInputCol:String"></a>
665 <a id="getInputCol:String"></a>
666 <h4 class="signature">
667 <span class="modifier_kind">
668 <span class="modifier">final </span>
669 <span class="kind">def</span>
670 </span>
671 <span class="symbol">
672 <span class="name">getInputCol</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span>
673 </span>
674 </h4><span class="permalink">
675 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@getInputCol:String" title="Permalink" target="_top">
676 <img src="../../../../../lib/permalink.png" alt="Permalink" />
677 </a>
678 </span>
679 <p class="shortcomment cmt"></p><div class="fullcomment"><div class="comment cmt"></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/shared/HasInputCol.html" class="extype" name="org.apache.spark.ml.param.shared.HasInputCol">HasInputCol</a></dd></dl></div>
680 </li><li name="org.apache.spark.ml.param.Params#getOrDefault" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
681 <a id="getOrDefault[T](param:org.apache.spark.ml.param.Param[T]):T"></a>
682 <a id="getOrDefault[T](Param[T]):T"></a>
683 <h4 class="signature">
684 <span class="modifier_kind">
685 <span class="modifier">final </span>
686 <span class="kind">def</span>
687 </span>
688 <span class="symbol">
689 <span class="name">getOrDefault</span><span class="tparams">[<span name="T">T</span>]</span><span class="params">(<span name="param">param: <a href="../param/Param.html" class="extype" name="org.apache.spark.ml.param.Param">Param</a>[<span class="extype" name="org.apache.spark.ml.param.Params.getOrDefault.T">T</span>]</span>)</span><span class="result">: <span class="extype" name="org.apache.spark.ml.param.Params.getOrDefault.T">T</span></span>
690 </span>
691 </h4><span class="permalink">
692 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@getOrDefault[T](param:org.apache.spark.ml.param.Param[T]):T" title="Permalink" target="_top">
693 <img src="../../../../../lib/permalink.png" alt="Permalink" />
694 </a>
695 </span>
696 <p class="shortcomment cmt">Gets the value of a param in the embedded param map or its default value.</p><div class="fullcomment"><div class="comment cmt"><p>Gets the value of a param in the embedded param map or its default value. Throws an exception
697 if neither is set.
698 </p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
699 </li><li name="org.apache.spark.ml.param.shared.HasOutputCol#getOutputCol" visbl="pub" data-isabs="false" fullComment="yes" group="getParam">
700 <a id="getOutputCol:String"></a>
701 <a id="getOutputCol:String"></a>
702 <h4 class="signature">
703 <span class="modifier_kind">
704 <span class="modifier">final </span>
705 <span class="kind">def</span>
706 </span>
707 <span class="symbol">
708 <span class="name">getOutputCol</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span>
709 </span>
710 </h4><span class="permalink">
711 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@getOutputCol:String" title="Permalink" target="_top">
712 <img src="../../../../../lib/permalink.png" alt="Permalink" />
713 </a>
714 </span>
715 <p class="shortcomment cmt"></p><div class="fullcomment"><div class="comment cmt"></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/shared/HasOutputCol.html" class="extype" name="org.apache.spark.ml.param.shared.HasOutputCol">HasOutputCol</a></dd></dl></div>
716 </li><li name="org.apache.spark.ml.param.Params#getParam" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
717 <a id="getParam(paramName:String):org.apache.spark.ml.param.Param[Any]"></a>
718 <a id="getParam(String):Param[Any]"></a>
719 <h4 class="signature">
720 <span class="modifier_kind">
721 <span class="modifier"></span>
722 <span class="kind">def</span>
723 </span>
724 <span class="symbol">
725 <span class="name">getParam</span><span class="params">(<span name="paramName">paramName: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <a href="../param/Param.html" class="extype" name="org.apache.spark.ml.param.Param">Param</a>[<span class="extype" name="scala.Any">Any</span>]</span>
726 </span>
727 </h4><span class="permalink">
728 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@getParam(paramName:String):org.apache.spark.ml.param.Param[Any]" title="Permalink" target="_top">
729 <img src="../../../../../lib/permalink.png" alt="Permalink" />
730 </a>
731 </span>
732 <p class="shortcomment cmt">Gets a param by its name.</p><div class="fullcomment"><div class="comment cmt"><p>Gets a param by its name.</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
733 </li><li name="org.apache.spark.ml.feature.StringIndexerBase#getStringOrderType" visbl="pub" data-isabs="false" fullComment="yes" group="getParam">
734 <a id="getStringOrderType:String"></a>
735 <a id="getStringOrderType:String"></a>
736 <h4 class="signature">
737 <span class="modifier_kind">
738 <span class="modifier"></span>
739 <span class="kind">def</span>
740 </span>
741 <span class="symbol">
742 <span class="name">getStringOrderType</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span>
743 </span>
744 </h4><span class="permalink">
745 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@getStringOrderType:String" title="Permalink" target="_top">
746 <img src="../../../../../lib/permalink.png" alt="Permalink" />
747 </a>
748 </span>
749 <p class="shortcomment cmt"></p><div class="fullcomment"><div class="comment cmt"></div><dl class="attributes block"> <dt>Definition Classes</dt><dd>StringIndexerBase</dd><dt>Annotations</dt><dd>
750 <span class="name">@Since</span><span class="args">(<span>
751
752 <span class="symbol">&quot;2.3.0&quot;</span>
753 </span>)</span>
754
755 </dd></dl></div>
756 </li><li name="org.apache.spark.ml.feature.StringIndexerBase#handleInvalid" visbl="pub" data-isabs="false" fullComment="yes" group="param">
757 <a id="handleInvalid:org.apache.spark.ml.param.Param[String]"></a>
758 <a id="handleInvalid:Param[String]"></a>
759 <h4 class="signature">
760 <span class="modifier_kind">
761 <span class="modifier"></span>
762 <span class="kind">val</span>
763 </span>
764 <span class="symbol">
765 <span class="name">handleInvalid</span><span class="result">: <a href="../param/Param.html" class="extype" name="org.apache.spark.ml.param.Param">Param</a>[<span class="extype" name="scala.Predef.String">String</span>]</span>
766 </span>
767 </h4><span class="permalink">
768 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@handleInvalid:org.apache.spark.ml.param.Param[String]" title="Permalink" target="_top">
769 <img src="../../../../../lib/permalink.png" alt="Permalink" />
770 </a>
771 </span>
772 <p class="shortcomment cmt">Param for how to handle invalid data (unseen labels or NULL values).</p><div class="fullcomment"><div class="comment cmt"><p>Param for how to handle invalid data (unseen labels or NULL values).
773 Options are 'skip' (filter out rows with invalid data),
774 'error' (throw an error), or 'keep' (put invalid data in a special additional
775 bucket, at index numLabels).
776 Default: &quot;error&quot;</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd>StringIndexerBase → <a href="../param/shared/HasHandleInvalid.html" class="extype" name="org.apache.spark.ml.param.shared.HasHandleInvalid">HasHandleInvalid</a></dd><dt>Annotations</dt><dd>
777 <span class="name">@Since</span><span class="args">(<span>
778
779 <span class="symbol">&quot;1.6.0&quot;</span>
780 </span>)</span>
781
782 </dd></dl></div>
783 </li><li name="org.apache.spark.ml.param.Params#hasDefault" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
784 <a id="hasDefault[T](param:org.apache.spark.ml.param.Param[T]):Boolean"></a>
785 <a id="hasDefault[T](Param[T]):Boolean"></a>
786 <h4 class="signature">
787 <span class="modifier_kind">
788 <span class="modifier">final </span>
789 <span class="kind">def</span>
790 </span>
791 <span class="symbol">
792 <span class="name">hasDefault</span><span class="tparams">[<span name="T">T</span>]</span><span class="params">(<span name="param">param: <a href="../param/Param.html" class="extype" name="org.apache.spark.ml.param.Param">Param</a>[<span class="extype" name="org.apache.spark.ml.param.Params.hasDefault.T">T</span>]</span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
793 </span>
794 </h4><span class="permalink">
795 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@hasDefault[T](param:org.apache.spark.ml.param.Param[T]):Boolean" title="Permalink" target="_top">
796 <img src="../../../../../lib/permalink.png" alt="Permalink" />
797 </a>
798 </span>
799 <p class="shortcomment cmt">Tests whether the input param has a default value set.</p><div class="fullcomment"><div class="comment cmt"><p>Tests whether the input param has a default value set.
800 </p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
801 </li><li name="org.apache.spark.ml.param.Params#hasParam" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
802 <a id="hasParam(paramName:String):Boolean"></a>
803 <a id="hasParam(String):Boolean"></a>
804 <h4 class="signature">
805 <span class="modifier_kind">
806 <span class="modifier"></span>
807 <span class="kind">def</span>
808 </span>
809 <span class="symbol">
810 <span class="name">hasParam</span><span class="params">(<span name="paramName">paramName: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
811 </span>
812 </h4><span class="permalink">
813 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@hasParam(paramName:String):Boolean" title="Permalink" target="_top">
814 <img src="../../../../../lib/permalink.png" alt="Permalink" />
815 </a>
816 </span>
817 <p class="shortcomment cmt">Tests whether this instance contains a param with a given name.</p><div class="fullcomment"><div class="comment cmt"><p>Tests whether this instance contains a param with a given name.</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
818 </li><li name="scala.AnyRef#hashCode" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
819 <a id="hashCode():Int"></a>
820 <a id="hashCode():Int"></a>
821 <h4 class="signature">
822 <span class="modifier_kind">
823 <span class="modifier"></span>
824 <span class="kind">def</span>
825 </span>
826 <span class="symbol">
827 <span class="name">hashCode</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
828 </span>
829 </h4><span class="permalink">
830 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@hashCode():Int" title="Permalink" target="_top">
831 <img src="../../../../../lib/permalink.png" alt="Permalink" />
832 </a>
833 </span>
834 <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
835 </li><li name="org.apache.spark.internal.Logging#initializeLogIfNecessary" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
836 <a id="initializeLogIfNecessary(isInterpreter:Boolean,silent:Boolean):Boolean"></a>
837 <a id="initializeLogIfNecessary(Boolean,Boolean):Boolean"></a>
838 <h4 class="signature">
839 <span class="modifier_kind">
840 <span class="modifier"></span>
841 <span class="kind">def</span>
842 </span>
843 <span class="symbol">
844 <span class="name">initializeLogIfNecessary</span><span class="params">(<span name="isInterpreter">isInterpreter: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="silent">silent: <span class="extype" name="scala.Boolean">Boolean</span> = <span class="symbol">false</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
845 </span>
846 </h4><span class="permalink">
847 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@initializeLogIfNecessary(isInterpreter:Boolean,silent:Boolean):Boolean" title="Permalink" target="_top">
848 <img src="../../../../../lib/permalink.png" alt="Permalink" />
849 </a>
850 </span>
851 <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../../internal/Logging.html" class="extype" name="org.apache.spark.internal.Logging">Logging</a></dd></dl></div>
852 </li><li name="org.apache.spark.internal.Logging#initializeLogIfNecessary" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
853 <a id="initializeLogIfNecessary(isInterpreter:Boolean):Unit"></a>
854 <a id="initializeLogIfNecessary(Boolean):Unit"></a>
855 <h4 class="signature">
856 <span class="modifier_kind">
857 <span class="modifier"></span>
858 <span class="kind">def</span>
859 </span>
860 <span class="symbol">
861 <span class="name">initializeLogIfNecessary</span><span class="params">(<span name="isInterpreter">isInterpreter: <span class="extype" name="scala.Boolean">Boolean</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
862 </span>
863 </h4><span class="permalink">
864 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@initializeLogIfNecessary(isInterpreter:Boolean):Unit" title="Permalink" target="_top">
865 <img src="../../../../../lib/permalink.png" alt="Permalink" />
866 </a>
867 </span>
868 <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../../internal/Logging.html" class="extype" name="org.apache.spark.internal.Logging">Logging</a></dd></dl></div>
869 </li><li name="org.apache.spark.ml.param.shared.HasInputCol#inputCol" visbl="pub" data-isabs="false" fullComment="yes" group="param">
870 <a id="inputCol:org.apache.spark.ml.param.Param[String]"></a>
871 <a id="inputCol:Param[String]"></a>
872 <h4 class="signature">
873 <span class="modifier_kind">
874 <span class="modifier">final </span>
875 <span class="kind">val</span>
876 </span>
877 <span class="symbol">
878 <span class="name">inputCol</span><span class="result">: <a href="../param/Param.html" class="extype" name="org.apache.spark.ml.param.Param">Param</a>[<span class="extype" name="scala.Predef.String">String</span>]</span>
879 </span>
880 </h4><span class="permalink">
881 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@inputCol:org.apache.spark.ml.param.Param[String]" title="Permalink" target="_top">
882 <img src="../../../../../lib/permalink.png" alt="Permalink" />
883 </a>
884 </span>
885 <p class="shortcomment cmt">Param for input column name.</p><div class="fullcomment"><div class="comment cmt"><p>Param for input column name.</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/shared/HasInputCol.html" class="extype" name="org.apache.spark.ml.param.shared.HasInputCol">HasInputCol</a></dd></dl></div>
886 </li><li name="org.apache.spark.ml.param.Params#isDefined" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
887 <a id="isDefined(param:org.apache.spark.ml.param.Param[_]):Boolean"></a>
888 <a id="isDefined(Param[_]):Boolean"></a>
889 <h4 class="signature">
890 <span class="modifier_kind">
891 <span class="modifier">final </span>
892 <span class="kind">def</span>
893 </span>
894 <span class="symbol">
895 <span class="name">isDefined</span><span class="params">(<span name="param">param: <a href="../param/Param.html" class="extype" name="org.apache.spark.ml.param.Param">Param</a>[_]</span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
896 </span>
897 </h4><span class="permalink">
898 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@isDefined(param:org.apache.spark.ml.param.Param[_]):Boolean" title="Permalink" target="_top">
899 <img src="../../../../../lib/permalink.png" alt="Permalink" />
900 </a>
901 </span>
902 <p class="shortcomment cmt">Checks whether a param is explicitly set or has a default value.</p><div class="fullcomment"><div class="comment cmt"><p>Checks whether a param is explicitly set or has a default value.</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
903 </li><li name="scala.Any#isInstanceOf" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
904 <a id="isInstanceOf[T0]:Boolean"></a>
905 <a id="isInstanceOf[T0]:Boolean"></a>
906 <h4 class="signature">
907 <span class="modifier_kind">
908 <span class="modifier">final </span>
909 <span class="kind">def</span>
910 </span>
911 <span class="symbol">
912 <span class="name">isInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
913 </span>
914 </h4><span class="permalink">
915 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@isInstanceOf[T0]:Boolean" title="Permalink" target="_top">
916 <img src="../../../../../lib/permalink.png" alt="Permalink" />
917 </a>
918 </span>
919 <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div>
920 </li><li name="org.apache.spark.ml.param.Params#isSet" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
921 <a id="isSet(param:org.apache.spark.ml.param.Param[_]):Boolean"></a>
922 <a id="isSet(Param[_]):Boolean"></a>
923 <h4 class="signature">
924 <span class="modifier_kind">
925 <span class="modifier">final </span>
926 <span class="kind">def</span>
927 </span>
928 <span class="symbol">
929 <span class="name">isSet</span><span class="params">(<span name="param">param: <a href="../param/Param.html" class="extype" name="org.apache.spark.ml.param.Param">Param</a>[_]</span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
930 </span>
931 </h4><span class="permalink">
932 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@isSet(param:org.apache.spark.ml.param.Param[_]):Boolean" title="Permalink" target="_top">
933 <img src="../../../../../lib/permalink.png" alt="Permalink" />
934 </a>
935 </span>
936 <p class="shortcomment cmt">Checks whether a param is explicitly set.</p><div class="fullcomment"><div class="comment cmt"><p>Checks whether a param is explicitly set.</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
937 </li><li name="org.apache.spark.internal.Logging#isTraceEnabled" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
938 <a id="isTraceEnabled():Boolean"></a>
939 <a id="isTraceEnabled():Boolean"></a>
940 <h4 class="signature">
941 <span class="modifier_kind">
942 <span class="modifier"></span>
943 <span class="kind">def</span>
944 </span>
945 <span class="symbol">
946 <span class="name">isTraceEnabled</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
947 </span>
948 </h4><span class="permalink">
949 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@isTraceEnabled():Boolean" title="Permalink" target="_top">
950 <img src="../../../../../lib/permalink.png" alt="Permalink" />
951 </a>
952 </span>
953 <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../../internal/Logging.html" class="extype" name="org.apache.spark.internal.Logging">Logging</a></dd></dl></div>
954 </li><li name="org.apache.spark.internal.Logging#log" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
955 <a id="log:org.slf4j.Logger"></a>
956 <a id="log:Logger"></a>
957 <h4 class="signature">
958 <span class="modifier_kind">
959 <span class="modifier"></span>
960 <span class="kind">def</span>
961 </span>
962 <span class="symbol">
963 <span class="name">log</span><span class="result">: <span class="extype" name="org.slf4j.Logger">Logger</span></span>
964 </span>
965 </h4><span class="permalink">
966 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@log:org.slf4j.Logger" title="Permalink" target="_top">
967 <img src="../../../../../lib/permalink.png" alt="Permalink" />
968 </a>
969 </span>
970 <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../../internal/Logging.html" class="extype" name="org.apache.spark.internal.Logging">Logging</a></dd></dl></div>
971 </li><li name="org.apache.spark.internal.Logging#logDebug" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
972 <a id="logDebug(msg:=&gt;String,throwable:Throwable):Unit"></a>
973 <a id="logDebug(⇒String,Throwable):Unit"></a>
974 <h4 class="signature">
975 <span class="modifier_kind">
976 <span class="modifier"></span>
977 <span class="kind">def</span>
978 </span>
979 <span class="symbol">
980 <span class="name">logDebug</span><span class="params">(<span name="msg">msg: ⇒ <span class="extype" name="scala.Predef.String">String</span></span>, <span name="throwable">throwable: <span class="extype" name="scala.Throwable">Throwable</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
981 </span>
982 </h4><span class="permalink">
983 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@logDebug(msg:=&gt;String,throwable:Throwable):Unit" title="Permalink" target="_top">
984 <img src="../../../../../lib/permalink.png" alt="Permalink" />
985 </a>
986 </span>
987 <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../../internal/Logging.html" class="extype" name="org.apache.spark.internal.Logging">Logging</a></dd></dl></div>
988 </li><li name="org.apache.spark.internal.Logging#logDebug" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
989 <a id="logDebug(msg:=&gt;String):Unit"></a>
990 <a id="logDebug(⇒String):Unit"></a>
991 <h4 class="signature">
992 <span class="modifier_kind">
993 <span class="modifier"></span>
994 <span class="kind">def</span>
995 </span>
996 <span class="symbol">
997 <span class="name">logDebug</span><span class="params">(<span name="msg">msg: ⇒ <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
998 </span>
999 </h4><span class="permalink">
1000 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@logDebug(msg:=&gt;String):Unit" title="Permalink" target="_top">
1001 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1002 </a>
1003 </span>
1004 <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../../internal/Logging.html" class="extype" name="org.apache.spark.internal.Logging">Logging</a></dd></dl></div>
1005 </li><li name="org.apache.spark.internal.Logging#logError" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
1006 <a id="logError(msg:=&gt;String,throwable:Throwable):Unit"></a>
1007 <a id="logError(⇒String,Throwable):Unit"></a>
1008 <h4 class="signature">
1009 <span class="modifier_kind">
1010 <span class="modifier"></span>
1011 <span class="kind">def</span>
1012 </span>
1013 <span class="symbol">
1014 <span class="name">logError</span><span class="params">(<span name="msg">msg: ⇒ <span class="extype" name="scala.Predef.String">String</span></span>, <span name="throwable">throwable: <span class="extype" name="scala.Throwable">Throwable</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
1015 </span>
1016 </h4><span class="permalink">
1017 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@logError(msg:=&gt;String,throwable:Throwable):Unit" title="Permalink" target="_top">
1018 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1019 </a>
1020 </span>
1021 <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../../internal/Logging.html" class="extype" name="org.apache.spark.internal.Logging">Logging</a></dd></dl></div>
1022 </li><li name="org.apache.spark.internal.Logging#logError" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
1023 <a id="logError(msg:=&gt;String):Unit"></a>
1024 <a id="logError(⇒String):Unit"></a>
1025 <h4 class="signature">
1026 <span class="modifier_kind">
1027 <span class="modifier"></span>
1028 <span class="kind">def</span>
1029 </span>
1030 <span class="symbol">
1031 <span class="name">logError</span><span class="params">(<span name="msg">msg: ⇒ <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
1032 </span>
1033 </h4><span class="permalink">
1034 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@logError(msg:=&gt;String):Unit" title="Permalink" target="_top">
1035 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1036 </a>
1037 </span>
1038 <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../../internal/Logging.html" class="extype" name="org.apache.spark.internal.Logging">Logging</a></dd></dl></div>
1039 </li><li name="org.apache.spark.internal.Logging#logInfo" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
1040 <a id="logInfo(msg:=&gt;String,throwable:Throwable):Unit"></a>
1041 <a id="logInfo(⇒String,Throwable):Unit"></a>
1042 <h4 class="signature">
1043 <span class="modifier_kind">
1044 <span class="modifier"></span>
1045 <span class="kind">def</span>
1046 </span>
1047 <span class="symbol">
1048 <span class="name">logInfo</span><span class="params">(<span name="msg">msg: ⇒ <span class="extype" name="scala.Predef.String">String</span></span>, <span name="throwable">throwable: <span class="extype" name="scala.Throwable">Throwable</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
1049 </span>
1050 </h4><span class="permalink">
1051 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@logInfo(msg:=&gt;String,throwable:Throwable):Unit" title="Permalink" target="_top">
1052 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1053 </a>
1054 </span>
1055 <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../../internal/Logging.html" class="extype" name="org.apache.spark.internal.Logging">Logging</a></dd></dl></div>
1056 </li><li name="org.apache.spark.internal.Logging#logInfo" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
1057 <a id="logInfo(msg:=&gt;String):Unit"></a>
1058 <a id="logInfo(⇒String):Unit"></a>
1059 <h4 class="signature">
1060 <span class="modifier_kind">
1061 <span class="modifier"></span>
1062 <span class="kind">def</span>
1063 </span>
1064 <span class="symbol">
1065 <span class="name">logInfo</span><span class="params">(<span name="msg">msg: ⇒ <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
1066 </span>
1067 </h4><span class="permalink">
1068 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@logInfo(msg:=&gt;String):Unit" title="Permalink" target="_top">
1069 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1070 </a>
1071 </span>
1072 <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../../internal/Logging.html" class="extype" name="org.apache.spark.internal.Logging">Logging</a></dd></dl></div>
1073 </li><li name="org.apache.spark.internal.Logging#logName" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
1074 <a id="logName:String"></a>
1075 <a id="logName:String"></a>
1076 <h4 class="signature">
1077 <span class="modifier_kind">
1078 <span class="modifier"></span>
1079 <span class="kind">def</span>
1080 </span>
1081 <span class="symbol">
1082 <span class="name">logName</span><span class="result">: <span class="extype" name="java.lang.String">String</span></span>
1083 </span>
1084 </h4><span class="permalink">
1085 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@logName:String" title="Permalink" target="_top">
1086 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1087 </a>
1088 </span>
1089 <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../../internal/Logging.html" class="extype" name="org.apache.spark.internal.Logging">Logging</a></dd></dl></div>
1090 </li><li name="org.apache.spark.internal.Logging#logTrace" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
1091 <a id="logTrace(msg:=&gt;String,throwable:Throwable):Unit"></a>
1092 <a id="logTrace(⇒String,Throwable):Unit"></a>
1093 <h4 class="signature">
1094 <span class="modifier_kind">
1095 <span class="modifier"></span>
1096 <span class="kind">def</span>
1097 </span>
1098 <span class="symbol">
1099 <span class="name">logTrace</span><span class="params">(<span name="msg">msg: ⇒ <span class="extype" name="scala.Predef.String">String</span></span>, <span name="throwable">throwable: <span class="extype" name="scala.Throwable">Throwable</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
1100 </span>
1101 </h4><span class="permalink">
1102 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@logTrace(msg:=&gt;String,throwable:Throwable):Unit" title="Permalink" target="_top">
1103 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1104 </a>
1105 </span>
1106 <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../../internal/Logging.html" class="extype" name="org.apache.spark.internal.Logging">Logging</a></dd></dl></div>
1107 </li><li name="org.apache.spark.internal.Logging#logTrace" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
1108 <a id="logTrace(msg:=&gt;String):Unit"></a>
1109 <a id="logTrace(⇒String):Unit"></a>
1110 <h4 class="signature">
1111 <span class="modifier_kind">
1112 <span class="modifier"></span>
1113 <span class="kind">def</span>
1114 </span>
1115 <span class="symbol">
1116 <span class="name">logTrace</span><span class="params">(<span name="msg">msg: ⇒ <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
1117 </span>
1118 </h4><span class="permalink">
1119 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@logTrace(msg:=&gt;String):Unit" title="Permalink" target="_top">
1120 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1121 </a>
1122 </span>
1123 <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../../internal/Logging.html" class="extype" name="org.apache.spark.internal.Logging">Logging</a></dd></dl></div>
1124 </li><li name="org.apache.spark.internal.Logging#logWarning" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
1125 <a id="logWarning(msg:=&gt;String,throwable:Throwable):Unit"></a>
1126 <a id="logWarning(⇒String,Throwable):Unit"></a>
1127 <h4 class="signature">
1128 <span class="modifier_kind">
1129 <span class="modifier"></span>
1130 <span class="kind">def</span>
1131 </span>
1132 <span class="symbol">
1133 <span class="name">logWarning</span><span class="params">(<span name="msg">msg: ⇒ <span class="extype" name="scala.Predef.String">String</span></span>, <span name="throwable">throwable: <span class="extype" name="scala.Throwable">Throwable</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
1134 </span>
1135 </h4><span class="permalink">
1136 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@logWarning(msg:=&gt;String,throwable:Throwable):Unit" title="Permalink" target="_top">
1137 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1138 </a>
1139 </span>
1140 <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../../internal/Logging.html" class="extype" name="org.apache.spark.internal.Logging">Logging</a></dd></dl></div>
1141 </li><li name="org.apache.spark.internal.Logging#logWarning" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
1142 <a id="logWarning(msg:=&gt;String):Unit"></a>
1143 <a id="logWarning(⇒String):Unit"></a>
1144 <h4 class="signature">
1145 <span class="modifier_kind">
1146 <span class="modifier"></span>
1147 <span class="kind">def</span>
1148 </span>
1149 <span class="symbol">
1150 <span class="name">logWarning</span><span class="params">(<span name="msg">msg: ⇒ <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
1151 </span>
1152 </h4><span class="permalink">
1153 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@logWarning(msg:=&gt;String):Unit" title="Permalink" target="_top">
1154 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1155 </a>
1156 </span>
1157 <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../../internal/Logging.html" class="extype" name="org.apache.spark.internal.Logging">Logging</a></dd></dl></div>
1158 </li><li name="scala.AnyRef#ne" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
1159 <a id="ne(x$1:AnyRef):Boolean"></a>
1160 <a id="ne(AnyRef):Boolean"></a>
1161 <h4 class="signature">
1162 <span class="modifier_kind">
1163 <span class="modifier">final </span>
1164 <span class="kind">def</span>
1165 </span>
1166 <span class="symbol">
1167 <span class="name">ne</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
1168 </span>
1169 </h4><span class="permalink">
1170 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@ne(x$1:AnyRef):Boolean" title="Permalink" target="_top">
1171 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1172 </a>
1173 </span>
1174 <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
1175 </li><li name="scala.AnyRef#notify" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
1176 <a id="notify():Unit"></a>
1177 <a id="notify():Unit"></a>
1178 <h4 class="signature">
1179 <span class="modifier_kind">
1180 <span class="modifier">final </span>
1181 <span class="kind">def</span>
1182 </span>
1183 <span class="symbol">
1184 <span class="name">notify</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
1185 </span>
1186 </h4><span class="permalink">
1187 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@notify():Unit" title="Permalink" target="_top">
1188 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1189 </a>
1190 </span>
1191 <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
1192 </li><li name="scala.AnyRef#notifyAll" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
1193 <a id="notifyAll():Unit"></a>
1194 <a id="notifyAll():Unit"></a>
1195 <h4 class="signature">
1196 <span class="modifier_kind">
1197 <span class="modifier">final </span>
1198 <span class="kind">def</span>
1199 </span>
1200 <span class="symbol">
1201 <span class="name">notifyAll</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
1202 </span>
1203 </h4><span class="permalink">
1204 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@notifyAll():Unit" title="Permalink" target="_top">
1205 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1206 </a>
1207 </span>
1208 <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
1209 </li><li name="org.apache.spark.ml.param.shared.HasOutputCol#outputCol" visbl="pub" data-isabs="false" fullComment="yes" group="param">
1210 <a id="outputCol:org.apache.spark.ml.param.Param[String]"></a>
1211 <a id="outputCol:Param[String]"></a>
1212 <h4 class="signature">
1213 <span class="modifier_kind">
1214 <span class="modifier">final </span>
1215 <span class="kind">val</span>
1216 </span>
1217 <span class="symbol">
1218 <span class="name">outputCol</span><span class="result">: <a href="../param/Param.html" class="extype" name="org.apache.spark.ml.param.Param">Param</a>[<span class="extype" name="scala.Predef.String">String</span>]</span>
1219 </span>
1220 </h4><span class="permalink">
1221 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@outputCol:org.apache.spark.ml.param.Param[String]" title="Permalink" target="_top">
1222 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1223 </a>
1224 </span>
1225 <p class="shortcomment cmt">Param for output column name.</p><div class="fullcomment"><div class="comment cmt"><p>Param for output column name.</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/shared/HasOutputCol.html" class="extype" name="org.apache.spark.ml.param.shared.HasOutputCol">HasOutputCol</a></dd></dl></div>
1226 </li><li name="org.apache.spark.ml.param.Params#params" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
1227 <a id="params:Array[org.apache.spark.ml.param.Param[_]]"></a>
1228 <a id="params:Array[Param[_]]"></a>
1229 <h4 class="signature">
1230 <span class="modifier_kind">
1231 <span class="modifier"></span>
1232 <span class="kind">lazy val</span>
1233 </span>
1234 <span class="symbol">
1235 <span class="name">params</span><span class="result">: <span class="extype" name="scala.Array">Array</span>[<a href="../param/Param.html" class="extype" name="org.apache.spark.ml.param.Param">Param</a>[_]]</span>
1236 </span>
1237 </h4><span class="permalink">
1238 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@params:Array[org.apache.spark.ml.param.Param[_]]" title="Permalink" target="_top">
1239 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1240 </a>
1241 </span>
1242 <p class="shortcomment cmt">Returns all params sorted by their names.</p><div class="fullcomment"><div class="comment cmt"><p>Returns all params sorted by their names. The default implementation uses Java reflection to
1243 list all public methods that have no arguments and return <a href="../param/Param.html" class="extype" name="org.apache.spark.ml.param.Param">Param</a>.
1244 </p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd><dt>Note</dt><dd><span class="cmt"><p>Developer should not use this method in constructor because we cannot guarantee that
1245 this variable gets initialized before other params.</p></span></dd></dl></div>
1246 </li><li name="org.apache.spark.ml.util.MLWritable#save" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
1247 <a id="save(path:String):Unit"></a>
1248 <a id="save(String):Unit"></a>
1249 <h4 class="signature">
1250 <span class="modifier_kind">
1251 <span class="modifier"></span>
1252 <span class="kind">def</span>
1253 </span>
1254 <span class="symbol">
1255 <span class="name">save</span><span class="params">(<span name="path">path: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
1256 </span>
1257 </h4><span class="permalink">
1258 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@save(path:String):Unit" title="Permalink" target="_top">
1259 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1260 </a>
1261 </span>
1262 <p class="shortcomment cmt">Saves this ML instance to the input path, a shortcut of <code>write.save(path)</code>.</p><div class="fullcomment"><div class="comment cmt"><p>Saves this ML instance to the input path, a shortcut of <code>write.save(path)</code>.
1263 </p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../util/MLWritable.html" class="extype" name="org.apache.spark.ml.util.MLWritable">MLWritable</a></dd><dt>Annotations</dt><dd>
1264 <span class="name">@Since</span><span class="args">(<span>
1265
1266 <span class="symbol">&quot;1.6.0&quot;</span>
1267 </span>)</span>
1268
1269 <span class="name">@throws</span><span class="args">(<span>
1270
1271 <span class="defval" name="&quot;If the input path already exists but overwrite is not enabled.&quot;">...</span>
1272 </span>)</span>
1273
1274 </dd></dl></div>
1275 </li><li name="org.apache.spark.ml.param.Params#set" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
1276 <a id="set(paramPair:org.apache.spark.ml.param.ParamPair[_]):Params.this.type"></a>
1277 <a id="set(ParamPair[_]):StringIndexer.this.type"></a>
1278 <h4 class="signature">
1279 <span class="modifier_kind">
1280 <span class="modifier">final </span>
1281 <span class="kind">def</span>
1282 </span>
1283 <span class="symbol">
1284 <span class="name">set</span><span class="params">(<span name="paramPair">paramPair: <a href="../param/ParamPair.html" class="extype" name="org.apache.spark.ml.param.ParamPair">ParamPair</a>[_]</span>)</span><span class="result">: <a href="" class="extype" name="org.apache.spark.ml.feature.StringIndexer">StringIndexer</a>.this.type</span>
1285 </span>
1286 </h4><span class="permalink">
1287 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@set(paramPair:org.apache.spark.ml.param.ParamPair[_]):Params.this.type" title="Permalink" target="_top">
1288 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1289 </a>
1290 </span>
1291 <p class="shortcomment cmt">Sets a parameter in the embedded param map.</p><div class="fullcomment"><div class="comment cmt"><p>Sets a parameter in the embedded param map.
1292 </p></div><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
1293 </li><li name="org.apache.spark.ml.param.Params#set" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
1294 <a id="set(param:String,value:Any):Params.this.type"></a>
1295 <a id="set(String,Any):StringIndexer.this.type"></a>
1296 <h4 class="signature">
1297 <span class="modifier_kind">
1298 <span class="modifier">final </span>
1299 <span class="kind">def</span>
1300 </span>
1301 <span class="symbol">
1302 <span class="name">set</span><span class="params">(<span name="param">param: <span class="extype" name="scala.Predef.String">String</span></span>, <span name="value">value: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <a href="" class="extype" name="org.apache.spark.ml.feature.StringIndexer">StringIndexer</a>.this.type</span>
1303 </span>
1304 </h4><span class="permalink">
1305 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@set(param:String,value:Any):Params.this.type" title="Permalink" target="_top">
1306 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1307 </a>
1308 </span>
1309 <p class="shortcomment cmt">Sets a parameter (by name) in the embedded param map.</p><div class="fullcomment"><div class="comment cmt"><p>Sets a parameter (by name) in the embedded param map.
1310 </p></div><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
1311 </li><li name="org.apache.spark.ml.param.Params#set" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
1312 <a id="set[T](param:org.apache.spark.ml.param.Param[T],value:T):Params.this.type"></a>
1313 <a id="set[T](Param[T],T):StringIndexer.this.type"></a>
1314 <h4 class="signature">
1315 <span class="modifier_kind">
1316 <span class="modifier">final </span>
1317 <span class="kind">def</span>
1318 </span>
1319 <span class="symbol">
1320 <span class="name">set</span><span class="tparams">[<span name="T">T</span>]</span><span class="params">(<span name="param">param: <a href="../param/Param.html" class="extype" name="org.apache.spark.ml.param.Param">Param</a>[<span class="extype" name="org.apache.spark.ml.param.Params.set.T">T</span>]</span>, <span name="value">value: <span class="extype" name="org.apache.spark.ml.param.Params.set.T">T</span></span>)</span><span class="result">: <a href="" class="extype" name="org.apache.spark.ml.feature.StringIndexer">StringIndexer</a>.this.type</span>
1321 </span>
1322 </h4><span class="permalink">
1323 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@set[T](param:org.apache.spark.ml.param.Param[T],value:T):Params.this.type" title="Permalink" target="_top">
1324 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1325 </a>
1326 </span>
1327 <p class="shortcomment cmt">Sets a parameter in the embedded param map.</p><div class="fullcomment"><div class="comment cmt"><p>Sets a parameter in the embedded param map.
1328 </p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
1329 </li><li name="org.apache.spark.ml.param.Params#setDefault" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
1330 <a id="setDefault(paramPairs:org.apache.spark.ml.param.ParamPair[_]*):Params.this.type"></a>
1331 <a id="setDefault(ParamPair[_]*):StringIndexer.this.type"></a>
1332 <h4 class="signature">
1333 <span class="modifier_kind">
1334 <span class="modifier">final </span>
1335 <span class="kind">def</span>
1336 </span>
1337 <span class="symbol">
1338 <span class="name">setDefault</span><span class="params">(<span name="paramPairs">paramPairs: <a href="../param/ParamPair.html" class="extype" name="org.apache.spark.ml.param.ParamPair">ParamPair</a>[_]*</span>)</span><span class="result">: <a href="" class="extype" name="org.apache.spark.ml.feature.StringIndexer">StringIndexer</a>.this.type</span>
1339 </span>
1340 </h4><span class="permalink">
1341 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@setDefault(paramPairs:org.apache.spark.ml.param.ParamPair[_]*):Params.this.type" title="Permalink" target="_top">
1342 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1343 </a>
1344 </span>
1345 <p class="shortcomment cmt">Sets default values for a list of params.</p><div class="fullcomment"><div class="comment cmt"><p>Sets default values for a list of params.</p><p>Note: Java developers should use the single-parameter <code>setDefault</code>.
1346 Annotating this with varargs can cause compilation failures due to a Scala compiler bug.
1347 See SPARK-9268.
1348 </p></div><dl class="paramcmts block"><dt class="param">paramPairs</dt><dd class="cmt"><p>a list of param pairs that specify params and their default values to set
1349 respectively. Make sure that the params are initialized before this method
1350 gets called.</p></dd></dl><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
1351 </li><li name="org.apache.spark.ml.param.Params#setDefault" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
1352 <a id="setDefault[T](param:org.apache.spark.ml.param.Param[T],value:T):Params.this.type"></a>
1353 <a id="setDefault[T](Param[T],T):StringIndexer.this.type"></a>
1354 <h4 class="signature">
1355 <span class="modifier_kind">
1356 <span class="modifier">final </span>
1357 <span class="kind">def</span>
1358 </span>
1359 <span class="symbol">
1360 <span class="name">setDefault</span><span class="tparams">[<span name="T">T</span>]</span><span class="params">(<span name="param">param: <a href="../param/Param.html" class="extype" name="org.apache.spark.ml.param.Param">Param</a>[<span class="extype" name="org.apache.spark.ml.param.Params.setDefault.T">T</span>]</span>, <span name="value">value: <span class="extype" name="org.apache.spark.ml.param.Params.setDefault.T">T</span></span>)</span><span class="result">: <a href="" class="extype" name="org.apache.spark.ml.feature.StringIndexer">StringIndexer</a>.this.type</span>
1361 </span>
1362 </h4><span class="permalink">
1363 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@setDefault[T](param:org.apache.spark.ml.param.Param[T],value:T):Params.this.type" title="Permalink" target="_top">
1364 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1365 </a>
1366 </span>
1367 <p class="shortcomment cmt">Sets a default value for a param.</p><div class="fullcomment"><div class="comment cmt"><p>Sets a default value for a param.</p></div><dl class="paramcmts block"><dt class="param">param</dt><dd class="cmt"><p>param to set the default value. Make sure that this param is initialized before
1368 this method gets called.</p></dd><dt class="param">value</dt><dd class="cmt"><p>the default value</p></dd></dl><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></dd></dl></div>
1369 </li><li name="org.apache.spark.ml.feature.StringIndexer#setHandleInvalid" visbl="pub" data-isabs="false" fullComment="yes" group="setParam">
1370 <a id="setHandleInvalid(value:String):StringIndexer.this.type"></a>
1371 <a id="setHandleInvalid(String):StringIndexer.this.type"></a>
1372 <h4 class="signature">
1373 <span class="modifier_kind">
1374 <span class="modifier"></span>
1375 <span class="kind">def</span>
1376 </span>
1377 <span class="symbol">
1378 <span class="name">setHandleInvalid</span><span class="params">(<span name="value">value: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <a href="" class="extype" name="org.apache.spark.ml.feature.StringIndexer">StringIndexer</a>.this.type</span>
1379 </span>
1380 </h4><span class="permalink">
1381 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@setHandleInvalid(value:String):StringIndexer.this.type" title="Permalink" target="_top">
1382 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1383 </a>
1384 </span>
1385 <p class="shortcomment cmt"></p><div class="fullcomment"><div class="comment cmt"></div><dl class="attributes block"> <dt>Annotations</dt><dd>
1386 <span class="name">@Since</span><span class="args">(<span>
1387
1388 <span class="symbol">&quot;1.6.0&quot;</span>
1389 </span>)</span>
1390
1391 </dd></dl></div>
1392 </li><li name="org.apache.spark.ml.feature.StringIndexer#setInputCol" visbl="pub" data-isabs="false" fullComment="yes" group="setParam">
1393 <a id="setInputCol(value:String):StringIndexer.this.type"></a>
1394 <a id="setInputCol(String):StringIndexer.this.type"></a>
1395 <h4 class="signature">
1396 <span class="modifier_kind">
1397 <span class="modifier"></span>
1398 <span class="kind">def</span>
1399 </span>
1400 <span class="symbol">
1401 <span class="name">setInputCol</span><span class="params">(<span name="value">value: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <a href="" class="extype" name="org.apache.spark.ml.feature.StringIndexer">StringIndexer</a>.this.type</span>
1402 </span>
1403 </h4><span class="permalink">
1404 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@setInputCol(value:String):StringIndexer.this.type" title="Permalink" target="_top">
1405 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1406 </a>
1407 </span>
1408 <p class="shortcomment cmt"></p><div class="fullcomment"><div class="comment cmt"></div><dl class="attributes block"> <dt>Annotations</dt><dd>
1409 <span class="name">@Since</span><span class="args">(<span>
1410
1411 <span class="symbol">&quot;1.4.0&quot;</span>
1412 </span>)</span>
1413
1414 </dd></dl></div>
1415 </li><li name="org.apache.spark.ml.feature.StringIndexer#setOutputCol" visbl="pub" data-isabs="false" fullComment="yes" group="setParam">
1416 <a id="setOutputCol(value:String):StringIndexer.this.type"></a>
1417 <a id="setOutputCol(String):StringIndexer.this.type"></a>
1418 <h4 class="signature">
1419 <span class="modifier_kind">
1420 <span class="modifier"></span>
1421 <span class="kind">def</span>
1422 </span>
1423 <span class="symbol">
1424 <span class="name">setOutputCol</span><span class="params">(<span name="value">value: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <a href="" class="extype" name="org.apache.spark.ml.feature.StringIndexer">StringIndexer</a>.this.type</span>
1425 </span>
1426 </h4><span class="permalink">
1427 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@setOutputCol(value:String):StringIndexer.this.type" title="Permalink" target="_top">
1428 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1429 </a>
1430 </span>
1431 <p class="shortcomment cmt"></p><div class="fullcomment"><div class="comment cmt"></div><dl class="attributes block"> <dt>Annotations</dt><dd>
1432 <span class="name">@Since</span><span class="args">(<span>
1433
1434 <span class="symbol">&quot;1.4.0&quot;</span>
1435 </span>)</span>
1436
1437 </dd></dl></div>
1438 </li><li name="org.apache.spark.ml.feature.StringIndexer#setStringOrderType" visbl="pub" data-isabs="false" fullComment="yes" group="setParam">
1439 <a id="setStringOrderType(value:String):StringIndexer.this.type"></a>
1440 <a id="setStringOrderType(String):StringIndexer.this.type"></a>
1441 <h4 class="signature">
1442 <span class="modifier_kind">
1443 <span class="modifier"></span>
1444 <span class="kind">def</span>
1445 </span>
1446 <span class="symbol">
1447 <span class="name">setStringOrderType</span><span class="params">(<span name="value">value: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <a href="" class="extype" name="org.apache.spark.ml.feature.StringIndexer">StringIndexer</a>.this.type</span>
1448 </span>
1449 </h4><span class="permalink">
1450 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@setStringOrderType(value:String):StringIndexer.this.type" title="Permalink" target="_top">
1451 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1452 </a>
1453 </span>
1454 <p class="shortcomment cmt"></p><div class="fullcomment"><div class="comment cmt"></div><dl class="attributes block"> <dt>Annotations</dt><dd>
1455 <span class="name">@Since</span><span class="args">(<span>
1456
1457 <span class="symbol">&quot;2.3.0&quot;</span>
1458 </span>)</span>
1459
1460 </dd></dl></div>
1461 </li><li name="org.apache.spark.ml.feature.StringIndexerBase#stringOrderType" visbl="pub" data-isabs="false" fullComment="yes" group="param">
1462 <a id="stringOrderType:org.apache.spark.ml.param.Param[String]"></a>
1463 <a id="stringOrderType:Param[String]"></a>
1464 <h4 class="signature">
1465 <span class="modifier_kind">
1466 <span class="modifier">final </span>
1467 <span class="kind">val</span>
1468 </span>
1469 <span class="symbol">
1470 <span class="name">stringOrderType</span><span class="result">: <a href="../param/Param.html" class="extype" name="org.apache.spark.ml.param.Param">Param</a>[<span class="extype" name="scala.Predef.String">String</span>]</span>
1471 </span>
1472 </h4><span class="permalink">
1473 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@stringOrderType:org.apache.spark.ml.param.Param[String]" title="Permalink" target="_top">
1474 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1475 </a>
1476 </span>
1477 <p class="shortcomment cmt">Param for how to order labels of string column.</p><div class="fullcomment"><div class="comment cmt"><p>Param for how to order labels of string column. The first label after ordering is assigned
1478 an index of 0.
1479 Options are:</p><ul><li>'frequencyDesc': descending order by label frequency (most frequent label assigned 0)</li><li>'frequencyAsc': ascending order by label frequency (least frequent label assigned 0)</li><li>'alphabetDesc': descending alphabetical order</li><li>'alphabetAsc': ascending alphabetical order
1480 Default is 'frequencyDesc'.
1481 </li></ul></div><dl class="attributes block"> <dt>Definition Classes</dt><dd>StringIndexerBase</dd><dt>Annotations</dt><dd>
1482 <span class="name">@Since</span><span class="args">(<span>
1483
1484 <span class="symbol">&quot;2.3.0&quot;</span>
1485 </span>)</span>
1486
1487 </dd></dl></div>
1488 </li><li name="scala.AnyRef#synchronized" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
1489 <a id="synchronized[T0](x$1:=&gt;T0):T0"></a>
1490 <a id="synchronized[T0](⇒T0):T0"></a>
1491 <h4 class="signature">
1492 <span class="modifier_kind">
1493 <span class="modifier">final </span>
1494 <span class="kind">def</span>
1495 </span>
1496 <span class="symbol">
1497 <span class="name">synchronized</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="params">(<span name="arg0">arg0: ⇒ <span class="extype" name="java.lang.AnyRef.synchronized.T0">T0</span></span>)</span><span class="result">: <span class="extype" name="java.lang.AnyRef.synchronized.T0">T0</span></span>
1498 </span>
1499 </h4><span class="permalink">
1500 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@synchronized[T0](x$1:=&gt;T0):T0" title="Permalink" target="_top">
1501 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1502 </a>
1503 </span>
1504 <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
1505 </li><li name="org.apache.spark.ml.util.Identifiable#toString" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
1506 <a id="toString():String"></a>
1507 <a id="toString():String"></a>
1508 <h4 class="signature">
1509 <span class="modifier_kind">
1510 <span class="modifier"></span>
1511 <span class="kind">def</span>
1512 </span>
1513 <span class="symbol">
1514 <span class="name">toString</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span>
1515 </span>
1516 </h4><span class="permalink">
1517 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@toString():String" title="Permalink" target="_top">
1518 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1519 </a>
1520 </span>
1521 <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../util/Identifiable.html" class="extype" name="org.apache.spark.ml.util.Identifiable">Identifiable</a> → AnyRef → Any</dd></dl></div>
1522 </li><li name="org.apache.spark.ml.feature.StringIndexer#transformSchema" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
1523 <a id="transformSchema(schema:org.apache.spark.sql.types.StructType):org.apache.spark.sql.types.StructType"></a>
1524 <a id="transformSchema(StructType):StructType"></a>
1525 <h4 class="signature">
1526 <span class="modifier_kind">
1527 <span class="modifier"></span>
1528 <span class="kind">def</span>
1529 </span>
1530 <span class="symbol">
1531 <span class="name">transformSchema</span><span class="params">(<span name="schema">schema: <a href="../../sql/types/StructType.html" class="extype" name="org.apache.spark.sql.types.StructType">StructType</a></span>)</span><span class="result">: <a href="../../sql/types/StructType.html" class="extype" name="org.apache.spark.sql.types.StructType">StructType</a></span>
1532 </span>
1533 </h4><span class="permalink">
1534 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@transformSchema(schema:org.apache.spark.sql.types.StructType):org.apache.spark.sql.types.StructType" title="Permalink" target="_top">
1535 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1536 </a>
1537 </span>
1538 <p class="shortcomment cmt">:: DeveloperApi ::</p><div class="fullcomment"><div class="comment cmt"><p>:: DeveloperApi ::</p><p>Check transform validity and derive the output schema from the input schema.</p><p>We check validity for interactions between parameters during <code>transformSchema</code> and
1539 raise an exception if any parameter value is invalid. Parameter value checks which
1540 do not depend on other parameters are handled by <code>Param.validate()</code>.</p><p>Typical implementation should first conduct verification on schema change and parameter
1541 validity, including complex parameter interaction checks.
1542 </p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="org.apache.spark.ml.feature.StringIndexer">StringIndexer</a><a href="../PipelineStage.html" class="extype" name="org.apache.spark.ml.PipelineStage">PipelineStage</a></dd><dt>Annotations</dt><dd>
1543 <span class="name">@Since</span><span class="args">(<span>
1544
1545 <span class="symbol">&quot;1.4.0&quot;</span>
1546 </span>)</span>
1547
1548 </dd></dl></div>
1549 </li><li name="org.apache.spark.ml.PipelineStage#transformSchema" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
1550 <a id="transformSchema(schema:org.apache.spark.sql.types.StructType,logging:Boolean):org.apache.spark.sql.types.StructType"></a>
1551 <a id="transformSchema(StructType,Boolean):StructType"></a>
1552 <h4 class="signature">
1553 <span class="modifier_kind">
1554 <span class="modifier"></span>
1555 <span class="kind">def</span>
1556 </span>
1557 <span class="symbol">
1558 <span class="name">transformSchema</span><span class="params">(<span name="schema">schema: <a href="../../sql/types/StructType.html" class="extype" name="org.apache.spark.sql.types.StructType">StructType</a></span>, <span name="logging">logging: <span class="extype" name="scala.Boolean">Boolean</span></span>)</span><span class="result">: <a href="../../sql/types/StructType.html" class="extype" name="org.apache.spark.sql.types.StructType">StructType</a></span>
1559 </span>
1560 </h4><span class="permalink">
1561 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@transformSchema(schema:org.apache.spark.sql.types.StructType,logging:Boolean):org.apache.spark.sql.types.StructType" title="Permalink" target="_top">
1562 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1563 </a>
1564 </span>
1565 <p class="shortcomment cmt">:: DeveloperApi ::</p><div class="fullcomment"><div class="comment cmt"><p>:: DeveloperApi ::</p><p>Derives the output schema from the input schema and parameters, optionally with logging.</p><p>This should be optimistic. If it is unclear whether the schema will be valid, then it should
1566 be assumed valid until proven otherwise.
1567 </p></div><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd><a href="../PipelineStage.html" class="extype" name="org.apache.spark.ml.PipelineStage">PipelineStage</a></dd><dt>Annotations</dt><dd>
1568 <span class="name">@DeveloperApi</span><span class="args">()</span>
1569
1570 </dd></dl></div>
1571 </li><li name="org.apache.spark.ml.feature.StringIndexer#uid" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
1572 <a id="uid:String"></a>
1573 <a id="uid:String"></a>
1574 <h4 class="signature">
1575 <span class="modifier_kind">
1576 <span class="modifier"></span>
1577 <span class="kind">val</span>
1578 </span>
1579 <span class="symbol">
1580 <span class="name">uid</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span>
1581 </span>
1582 </h4><span class="permalink">
1583 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@uid:String" title="Permalink" target="_top">
1584 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1585 </a>
1586 </span>
1587 <p class="shortcomment cmt">An immutable unique ID for the object and its derivatives.</p><div class="fullcomment"><div class="comment cmt"><p>An immutable unique ID for the object and its derivatives.
1588 </p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="org.apache.spark.ml.feature.StringIndexer">StringIndexer</a><a href="../util/Identifiable.html" class="extype" name="org.apache.spark.ml.util.Identifiable">Identifiable</a></dd><dt>Annotations</dt><dd>
1589 <span class="name">@Since</span><span class="args">(<span>
1590
1591 <span class="symbol">&quot;1.4.0&quot;</span>
1592 </span>)</span>
1593
1594 </dd></dl></div>
1595 </li><li name="org.apache.spark.ml.feature.StringIndexerBase#validateAndTransformSchema" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
1596 <a id="validateAndTransformSchema(schema:org.apache.spark.sql.types.StructType):org.apache.spark.sql.types.StructType"></a>
1597 <a id="validateAndTransformSchema(StructType):StructType"></a>
1598 <h4 class="signature">
1599 <span class="modifier_kind">
1600 <span class="modifier"></span>
1601 <span class="kind">def</span>
1602 </span>
1603 <span class="symbol">
1604 <span class="name">validateAndTransformSchema</span><span class="params">(<span name="schema">schema: <a href="../../sql/types/StructType.html" class="extype" name="org.apache.spark.sql.types.StructType">StructType</a></span>)</span><span class="result">: <a href="../../sql/types/StructType.html" class="extype" name="org.apache.spark.sql.types.StructType">StructType</a></span>
1605 </span>
1606 </h4><span class="permalink">
1607 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@validateAndTransformSchema(schema:org.apache.spark.sql.types.StructType):org.apache.spark.sql.types.StructType" title="Permalink" target="_top">
1608 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1609 </a>
1610 </span>
1611 <p class="shortcomment cmt">Validates and transforms the input schema.</p><div class="fullcomment"><div class="comment cmt"><p>Validates and transforms the input schema.</p></div><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd>StringIndexerBase</dd></dl></div>
1612 </li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
1613 <a id="wait():Unit"></a>
1614 <a id="wait():Unit"></a>
1615 <h4 class="signature">
1616 <span class="modifier_kind">
1617 <span class="modifier">final </span>
1618 <span class="kind">def</span>
1619 </span>
1620 <span class="symbol">
1621 <span class="name">wait</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
1622 </span>
1623 </h4><span class="permalink">
1624 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@wait():Unit" title="Permalink" target="_top">
1625 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1626 </a>
1627 </span>
1628 <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
1629 <span class="name">@throws</span><span class="args">(<span>
1630
1631 <span class="defval" name="classOf[java.lang.InterruptedException]">...</span>
1632 </span>)</span>
1633
1634 </dd></dl></div>
1635 </li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
1636 <a id="wait(x$1:Long,x$2:Int):Unit"></a>
1637 <a id="wait(Long,Int):Unit"></a>
1638 <h4 class="signature">
1639 <span class="modifier_kind">
1640 <span class="modifier">final </span>
1641 <span class="kind">def</span>
1642 </span>
1643 <span class="symbol">
1644 <span class="name">wait</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Long">Long</span></span>, <span name="arg1">arg1: <span class="extype" name="scala.Int">Int</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
1645 </span>
1646 </h4><span class="permalink">
1647 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@wait(x$1:Long,x$2:Int):Unit" title="Permalink" target="_top">
1648 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1649 </a>
1650 </span>
1651 <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
1652 <span class="name">@throws</span><span class="args">(<span>
1653
1654 <span class="defval" name="classOf[java.lang.InterruptedException]">...</span>
1655 </span>)</span>
1656
1657 </dd></dl></div>
1658 </li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
1659 <a id="wait(x$1:Long):Unit"></a>
1660 <a id="wait(Long):Unit"></a>
1661 <h4 class="signature">
1662 <span class="modifier_kind">
1663 <span class="modifier">final </span>
1664 <span class="kind">def</span>
1665 </span>
1666 <span class="symbol">
1667 <span class="name">wait</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Long">Long</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
1668 </span>
1669 </h4><span class="permalink">
1670 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@wait(x$1:Long):Unit" title="Permalink" target="_top">
1671 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1672 </a>
1673 </span>
1674 <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
1675 <span class="name">@throws</span><span class="args">(<span>
1676
1677 <span class="defval" name="classOf[java.lang.InterruptedException]">...</span>
1678 </span>)</span>
1679
1680 </dd></dl></div>
1681 </li><li name="org.apache.spark.ml.util.DefaultParamsWritable#write" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
1682 <a id="write:org.apache.spark.ml.util.MLWriter"></a>
1683 <a id="write:MLWriter"></a>
1684 <h4 class="signature">
1685 <span class="modifier_kind">
1686 <span class="modifier"></span>
1687 <span class="kind">def</span>
1688 </span>
1689 <span class="symbol">
1690 <span class="name">write</span><span class="result">: <a href="../util/MLWriter.html" class="extype" name="org.apache.spark.ml.util.MLWriter">MLWriter</a></span>
1691 </span>
1692 </h4><span class="permalink">
1693 <a href="../../../../../index.html#org.apache.spark.ml.feature.StringIndexer@write:org.apache.spark.ml.util.MLWriter" title="Permalink" target="_top">
1694 <img src="../../../../../lib/permalink.png" alt="Permalink" />
1695 </a>
1696 </span>
1697 <p class="shortcomment cmt">Returns an <code>MLWriter</code> instance for this ML instance.</p><div class="fullcomment"><div class="comment cmt"><p>Returns an <code>MLWriter</code> instance for this ML instance.
1698 </p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../util/DefaultParamsWritable.html" class="extype" name="org.apache.spark.ml.util.DefaultParamsWritable">DefaultParamsWritable</a><a href="../util/MLWritable.html" class="extype" name="org.apache.spark.ml.util.MLWritable">MLWritable</a></dd></dl></div>
1699 </li></ol>
1700 </div>
1701
1702
1703
1704
1705 </div>
1706
1707 <div id="inheritedMembers">
1708 <div class="parent" name="org.apache.spark.ml.util.DefaultParamsWritable">
1709 <h3>Inherited from <a href="../util/DefaultParamsWritable.html" class="extype" name="org.apache.spark.ml.util.DefaultParamsWritable">DefaultParamsWritable</a></h3>
1710 </div><div class="parent" name="org.apache.spark.ml.util.MLWritable">
1711 <h3>Inherited from <a href="../util/MLWritable.html" class="extype" name="org.apache.spark.ml.util.MLWritable">MLWritable</a></h3>
1712 </div><div class="parent" name="org.apache.spark.ml.feature.StringIndexerBase">
1713 <h3>Inherited from <span class="extype" name="org.apache.spark.ml.feature.StringIndexerBase">StringIndexerBase</span></h3>
1714 </div><div class="parent" name="org.apache.spark.ml.param.shared.HasOutputCol">
1715 <h3>Inherited from <a href="../param/shared/HasOutputCol.html" class="extype" name="org.apache.spark.ml.param.shared.HasOutputCol">HasOutputCol</a></h3>
1716 </div><div class="parent" name="org.apache.spark.ml.param.shared.HasInputCol">
1717 <h3>Inherited from <a href="../param/shared/HasInputCol.html" class="extype" name="org.apache.spark.ml.param.shared.HasInputCol">HasInputCol</a></h3>
1718 </div><div class="parent" name="org.apache.spark.ml.param.shared.HasHandleInvalid">
1719 <h3>Inherited from <a href="../param/shared/HasHandleInvalid.html" class="extype" name="org.apache.spark.ml.param.shared.HasHandleInvalid">HasHandleInvalid</a></h3>
1720 </div><div class="parent" name="org.apache.spark.ml.Estimator">
1721 <h3>Inherited from <a href="../Estimator.html" class="extype" name="org.apache.spark.ml.Estimator">Estimator</a>[<a href="StringIndexerModel.html" class="extype" name="org.apache.spark.ml.feature.StringIndexerModel">StringIndexerModel</a>]</h3>
1722 </div><div class="parent" name="org.apache.spark.ml.PipelineStage">
1723 <h3>Inherited from <a href="../PipelineStage.html" class="extype" name="org.apache.spark.ml.PipelineStage">PipelineStage</a></h3>
1724 </div><div class="parent" name="org.apache.spark.internal.Logging">
1725 <h3>Inherited from <a href="../../internal/Logging.html" class="extype" name="org.apache.spark.internal.Logging">Logging</a></h3>
1726 </div><div class="parent" name="org.apache.spark.ml.param.Params">
1727 <h3>Inherited from <a href="../param/Params.html" class="extype" name="org.apache.spark.ml.param.Params">Params</a></h3>
1728 </div><div class="parent" name="scala.Serializable">
1729 <h3>Inherited from <span class="extype" name="scala.Serializable">Serializable</span></h3>
1730 </div><div class="parent" name="java.io.Serializable">
1731 <h3>Inherited from <span class="extype" name="java.io.Serializable">Serializable</span></h3>
1732 </div><div class="parent" name="org.apache.spark.ml.util.Identifiable">
1733 <h3>Inherited from <a href="../util/Identifiable.html" class="extype" name="org.apache.spark.ml.util.Identifiable">Identifiable</a></h3>
1734 </div><div class="parent" name="scala.AnyRef">
1735 <h3>Inherited from <span class="extype" name="scala.AnyRef">AnyRef</span></h3>
1736 </div><div class="parent" name="scala.Any">
1737 <h3>Inherited from <span class="extype" name="scala.Any">Any</span></h3>
1738 </div>
1739
1740 </div>
1741
1742 <div id="groupedMembers">
1743 <div class="group" name="param">
1744 <h3>Parameters</h3>
1745 <div class="comment cmt"><p>A list of (hyper-)parameter keys this algorithm can take. Users can set and get
1746 the parameter values through setters and getters, respectively.</p></div>
1747 </div><div class="group" name="Ungrouped">
1748 <h3>Members</h3>
1749
1750 </div><div class="group" name="setParam">
1751 <h3>Parameter setters</h3>
1752
1753 </div><div class="group" name="getParam">
1754 <h3>Parameter getters</h3>
1755
1756 </div>
1757 </div>
1758
1759 </div>
1760
1761 <div id="tooltip"></div>
1762
1763 <div id="footer"> </div>
1764
1765
1766 </body>
1767 </html>