opensourceecon / bootcamp2018 Goto Github PK
View Code? Open in Web Editor NEWRepository of syllabi, lecture notes, Jupyter notebooks, code, and problem sets for OSM Lab Boot Camp 2018
Repository of syllabi, lecture notes, Jupyter notebooks, code, and problem sets for OSM Lab Boot Camp 2018
Has anyone run into the following error by any chance? Thanks!
File "OSM_example.py", line 52, in
grid = TasmanianSG.TasmanianSparseGrid()
File "/home/jfan3/Desktop/OSM2018/day1_SparseGrid/SparseGridCode/analytical_examples/TASMANIAN_Python/TasmanianSG.py", line 107, in init
self.pLibTSG = cdll.LoadLibrary("../../TasmanianSparseGrids/libtasmaniansparsegrid.so")
File "/software/python-2.7-2015q2-el6-x86_64/lib/python2.7/ctypes/init.py", line 443, in LoadLibrary
return self._dlltype(name)
File "/software/python-2.7-2015q2-el6-x86_64/lib/python2.7/ctypes/init.py", line 365, in init
self._handle = _dlopen(self._name, mode)
OSError: /lib64/libm.so.6: version `GLIBC_2.15' not found (required by ../../TasmanianSparseGrids/libtasmaniansparsegrid.so)
Exception AttributeError: "TasmanianSparseGrid instance has no attribute 'pLibTSG'" in <bound method TasmanianSparseGrid.del of <TasmanianSG.TasmanianSparseGrid instance at 0x7f56ac8cc170>> ignored
Niederreiter sequence is a generalization of the Sobol sequence for any natural number base. Sobol Sequence is defined only for base 2. This is the Wikipedia reference:
[https://en.wikipedia.org/wiki/Sobol_sequence]
This is the relevant excerpt from the Wikipedia page:-
"In his article, Sobol described Πτ-meshes and LPτ sequences, which are (t,m,s)-nets and (t,s)-sequences in base 2 respectively. The terms (t,m,s)-nets and (t,s)-sequences in base b (also called Niederreiter sequences) were coined in 1988 by Harald Niederreiter.[2] The term Sobol sequences was introduced in late English-speaking papers in comparison with Halton, Faure and other low-discrepancy sequences."
We(@rebekahanne, @mattdbrown17,@navneeraj) were also able to find the paper, which has Figure 14.2 of the Numerical Integration problem set. This is the link:
https://cseweb.ucsd.edu/~dstefan/pubs/dalal:2008:low.pdf
I think for both Baker and Niederreiter sequences, we have to use something known as Gray Code to implement them. The reference on the Gray Code is here:
https://en.wikipedia.org/wiki/Gray_code
Someone has implemented the Sobol sequence in Python. The link is here:-
https://github.com/naught101/sobol_seq/blob/master/sobol_seq/sobol_seq.py
I am still trying to understand it and may try to implement it for calculating pi for nth time.:-)
To get the FRED dataset I used
pip install pandas_datareader
which has a bug. This thread recommended using the dev version.
It worked well for me but is this the best solution?
I'm wondering if the scaling factor in equation 14.9 in the Numerical integration lab (the section on Simpson's rule) is incorrect? I think equation 14.9 should be multiplied by (b-a)/(3(2N+1)) rather than (b-a)/(3(N+1)).
For anyone that wants to use Atom and python scripts there is a really handy package in Atom called hydrogen that lets you run code inline like a notebook. However, as far as I can tell there isn't a way to incorporate markdown/latex like in a traditional jupyter notebook.
I get the following error when running py.test in the anaconda prompt (using windows machine). It's telling me I have access denied to this specific folder, but I have admin privileges turned on. Does anyone have any ideas about how to fix this? I'm unable to do any of the unit testing homework with this error.
@quainialberto asked the following with regard to Problem 1 in the Object Oriented Programming lab:
I am approaching Problem 1 of OOP and we are required to test our object. Since we leant how to do unit testing, can we create a unit test to test our object or we need to write the test like in the example given inside the problem formulation?
Thanks,
Albi
You should do the testing as is stated in Problem 1 of the OOP lab. The testing requested and shown in Problem 1 of OOP is called validation testing and is different from unit testing. Both are important.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.