(x, y, weights)
| 104 | |
| 105 | |
| 106 | def log_likelihood(x, y, weights): |
| 107 | scores = np.dot(x, weights) |
| 108 | return np.sum(y * scores - np.log(1 + np.exp(scores))) |
| 109 | |
| 110 | |
| 111 | # here alpha is the learning rate, X is the feature matrix,y is the target matrix |
nothing calls this directly
no outgoing calls
no test coverage detected