HTML5 Example
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>

</body>
</html>
Show

Java conditions
if(condition_1) {
   Statement1(s);

   if(condition_2) {
      Statement2(s);
   }
}
Show

Simple python
Print("the paste sucks") 
Show

Softmax with loops
softmax_scores=[]
    for i in range(len(class_scores)):
        currentImage=[]
        for j in range(len(class_scores[i])):
            part1 = np.exp(class_scores[i][j])
            part2 = np.sum(np.exp(class_scores[i]))
            #print("error here?")
            currentImage.append(part1/part2)
            #print("/error here?")
        softmax_scores.append(currentImage)
    return np.array(softmax_scores)
Show

Confusion Matrix 101
def confusionMatrix(X,y,theta):
    num_classes = 10
    probabilities = softmax(np.dot(X,theta))
    prediction = np.argmax(probabilities,axis=1)
    
    prediction = onehot_encode_label(prediction).tolist()
    y_encode = onehot_encode_label(y).tolist()
    
    matrix = np.zeros([num_classes, num_classes])
    for y, p in zip(y_encode, prediction):
        matrix[y.index(1)][p.index(1)] += 1
    return matrix
Show