This line is taking an indicator matrix and extracting only one of the two columns from it because the two columns are inverses of each other in the binary case. The ```shape[1] -1``` index is used to select the 2nd column always unless there is only one column, in which case it chooses the first column.