Comments (8)
also, although probably obvious, to make the code run import matplotlib.pyplot as plt
should be added to page xix
code as well.
from bookcode_edition1.
also, Code 1.5
on page 9 has an extra trailing parenthesis.
from bookcode_edition1.
hey @aaelony the code is not meant to be runnable if copy and pasted just from the code blocks in the book itself. This is because if we included all the code needed to run every code block throughout the book most of the book would be boilerplate code!
To run the code use the notebooks included, here for example. All these notebooks run end to end with the environment file. Let me know if this makes sense!
https://bayesiancomputationbook.com/notebooks/chp_01.html
Appreciate you opening up these issues, it helps a lot with us understanding how folks are interacting with the text :)
from bookcode_edition1.
also,
Code 1.5
on page 9 has an extra trailing parenthesis.
I took a look but couldn't find it, is it this code block?
https://bayesiancomputationbook.com/notebooks/chp_01.html
from bookcode_edition1.
I have the printed edition and am typing the code as I read. I am finding many things that cause runtime errors (all easily fixable). If it isn't helpful to report these issues, I can refrain but it might make the book stronger in the next edition to fix these.
@canyon289, from what you posted above, it looks like the online edition already has fixed the typo in the printed edition.
from bookcode_edition1.
I'll check with the online edition before reporting further issues in the printed edition, should I find any. Thanks for an excellent textbook read so far. :)
from bookcode_edition1.
Its definitely helpful! Our goal is to help you learn the concepts as best as possible, you sharing how youre doing that is very insightful for us. We only have had priors as to how folks would interact with the text, and you're providing the data!
Some acknowledgements and suggestions
- The printed version has typos (unfortunately), we can't fix them there but we will fix them online!
- Typing out the code is the best way to retain it so I don't want to discourage you from doing that at all. However note once you get to later chapters that strategy won't work because the code blocks in the book will just show the relevant bits of code, and not importing packages, data loading, etc etc. We figured after seeing the data load once folks would get it, and itd be a bad idea to then show it another 200 times for each example.
- The notebooks though all run end to end. You can find them in the published book site and the repository!
- If I may ask again please give us feedback! We want to make the second edition 4 times as good as this one, and knowing what is useful for readers helps us out a lot! Feel free to open issue tickets and let us know what you think, and if you mark them as "suggestion" that will help us know what to do with them.
Most of all thank you so much for purchasing and reading the book. We truly appreciate it and I personally hope that you find that the skills and knowledge you gain from this book help you in your own life and work!
from bookcode_edition1.
Great! I'm actually a longtime R user mostly reading the book to see how these same things are done in Python.
Thanks for the responses.
from bookcode_edition1.
Related Issues (20)
- Missing dataset: 8M10 HOT 8
- More documentation for run_mcmc_simple
- Missing p in equation
- Manuscript Error: Code 1.7 doesn't work in PyMC version 5 HOT 2
- Manuscript Error:
- No install file
- Bayesian Structural Time Series - Code adjusments
- Manuscript Error: Mismatch - Chapter 8 book code to notebook code in rvs function
- Manuscript Error: Code 6.15 vs Equation 6.7 HOT 1
- Issue on page /markdown/chp_11.html (imprecise example of 0 probability)
- Problem to reproduce Figure 1.5 HOT 4
- Type Error on import of Tensorflow Code Block 3.7 Chapter 03 HOT 1
- Manuscript Error: HOT 3
- Manuscript Error:
- Code for Figure 2.7 not working with PYMC5
- Are solutions available to exercises?
- Fix TFP Code
- Solution of question 5M16 BMCP
- Better reference to scientific citation data in Problem 8M9
- Manuscript Error: HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bookcode_edition1.