data-science-from-scratch
data-science-from-scratch copied to clipboard
code for Data Science From Scratch book
plotting axis along which data best varies
The current version of nlp.py breaks on line 32 returning TypeError: 'NoneType' object is not callable. I'm not sure if this is caused by a change in bs4 or something...
I am not able to location the image used in this example. Am I not looking in the right place or is its just not posted on here. Also... some...
I have looked over the code in the repository and still have not found a difference in my code that would cause it to break. I have reworked the entire...
Hi Joel and thank you for a really great and outstanding book. In the beginning of chapter 16 you build `xs` and `ys` based on `data`. However, the book does...
I can't get the counts value.  `#TESTANDO O MODELO def get_subject_data(path): path = r"C:\Users\mauro\Google Drive\Análise de Dados\Python\Livro_DS_Zero\Spam\20021010_spam" data = [] # regex for stripping out the leading "Subject:" and...
Hi, Should the code: for i, j in friendships: # this works because users[i] is the user whose id is i users[i]["friends"].append(users[j]) # add i as a friend of j...
I think that: > def most_common_interests_with(user_id): > return Counter(interested_user_id > for interest in interests_by_user_id["user_id"] > for interested_user_id in user_ids_by_interest[interest] > if interested_user_id != user_id) Should be: > def most_common_interests_with(user_id): >...
File ".\Friends.py", line 219 key=lambda (user_id, num_friends): num_friends, # by number of friends ^ SyntaxError: invalid syntax
Hi Joel, from my point of view your implementation of the simplified PageRank algorithm does not follow the protocol outlined in the book. I only have the first edition at...