This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
2020 update: | |
- More iterators, fewer lists | |
- Python 3 compatible | |
- Processes files in parallel | |
(one thread per CPU, but that's not really how it works) | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Appends a message to every comit. Usefull for linking issues back | |
# from bug track systems. | |
# | |
# This way you can customize which branches should be skipped when | |
# apending commit message. | |
if [ -z "$BRANCHES_TO_SKIP" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def logistic_regression(feature_matrix, sentiment, initial_coefficients, step_size, max_iter): | |
coefficients = np.array(initial_coefficients) # make sure it's a numpy array | |
for itr in xrange(max_iter): | |
# Predict P(y_i = +1|x_i,w) using your predict_probability() function | |
# YOUR CODE HERE | |
predictions = predict_probability(feature_matrix, coefficients) | |
# Compute indicator value for (y_i = +1) | |
indicator = (sentiment==+1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = David Moises Paz Reyes | |
email = [email protected] | |
[core] | |
editor = vim | |
autocrlf = input | |
[log] | |
date = relative |