py.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v2.2)"><em>numpy.ndarray</em></a>) – <p>Target vector of shape <cite>(n_samples,)</cite>. Format requirements depend on model_type:</p>
<ul>
<li><p>Classification (<cite>svm</cite>/<cite>logistic</cite>):</p>
<blockquote>
<div><ul class="simple">
<li><p>Binary labels in {-1, +1}</p></li>
<li><p>No missing values allowed</p></li>
</ul>
</div></blockquote>
</li>
<li><p>Regression** (<cite>ols</cite>/<cite>lad</cite>):</