data-science-from-scratch
data-science-from-scratch copied to clipboard
code for Data Science From Scratch book
minor notes for author revision - second edtion. Thanks for the great book.
There is no example for Stochastic Gradient Descent in Chapter 8. I have tried to write one. ``` print("using minimize_stochastic_batch") x = list(range(101)) y = [3*x_i + random.randint(-10, 20) for...
You say: call make_hist(0.75, 100, 10000) but you must mean: call binomial_histogram(0.75, 100, 10000)
Why does the PCA example returns components with the opposite sign of the ones from sklearn PCA? Also, when I try to standardize the data and use the code, the...
# Problem File ".\Friends.py", line 82 print friends_of_friend_ids(users["3"]) # Counter({0: 2, 5: 1})
Hi, I got a problem in Chapter 2 (German version) with example about "Defaultdict" and also "Counter". Whats seems to be left out here is, how the value "document" has...
The number calculating mistakes in introduction.py The length of the `users` list is 11 not 10 so the answer of average user's friends is 2.182 instead of 2.4. ``` num_users...
Hey @joelgrus , I would like to thank you for all the work you are doing here. I would still like to recommend one or two improvements for your new...
Since Python 3 doesn't allow `map` to be iterable, a workaround is to turn the outcome to a list in order to plot.
The example producing Figure 8-3 in the book doesn't work in Python 3, apparently because the iterator returned by `map()` doesn't work with pyplot, so using a list comprehension here...