Coder Social home page Coder Social logo

bootcamp2018's People

Contributors

cc7768 avatar janertl avatar jdebacker avatar jstac avatar rickecon avatar scottcondie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootcamp2018's Issues

error with attribute of TasmanianSparseGrid()

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

Computation assignment- Numerical Integration- Niederreiter sequence

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.:-)

Bug in pandas_datareader

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?

Error in Numerical Integration Lab: Simpson's Rule?

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)).

Hydrogen package for atom

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.

https://atom.io/packages/hydrogen

Error running py.test

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.

pytest_error

Unit testing versus validation testing

@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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.