Python list notation, Numpy array notation: predictions[predictions < 1e-10] = 1e-10
<p>I am trying to find out operation applied on list. I have list/array name predictions and and executing following set of instruction.</p>

<pre><code>predictions[predictions &lt; 1e-10] = 1e-10
</code></pre>

<p>This code snippet is from a Udacity Machine Learning assignment that uses Numpy. </p>

<p>It was used in the following manner: </p>

<pre><code>def logprob(predictions, labels):
    """Log-probability of the true labels in a predicted batch."""
    predictions[predictions &lt; 1e-10] = 1e-10
    return np.sum(np.multiply(labels, -np.log(predictions))) / labels.shape[0]
</code></pre>

<p>As pointed out by @MosesKoledoye and various others, it is actually a Numpy array. (Numpy is a Python library)</p>

<p>What does this line do?</p>