Giter Club home page Giter Club logo

bce-simulation's Introduction

Hello! I'm Wei En, an undergraduate at the National University of Singapore studying Computer Science and Mathematics. I'm currently interested in statistical learning theory and its applications towards robust and efficient machine learning methods, as well as integrating other areas of theoretical computer science into machine learning.

Outside of research, I take an avid interest in open source software engineering and am also passionate in education initiatives targeted at improving access to opportunities for the less privileged. In my free time, I like to brew a fresh cup of coffee/tea, listen to music, and occasionally indulge in other recreational activities!

bce-simulation's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

bce-simulation's Issues

Full code review

A full code review is required.

Looking through the code reveals many problems with the code that have resulted in it being messy.

@D10 I will discuss this with you tomorrow in real life.

Add code examples and have document generation

All functions that need to be documented should have been documented by me; the only thing left is to add some simple examples (which doctest will test) and generate documentation using pydoc.

Add utils/argparser.py

Currently all the *_{cli,graph}.py files are bloated with the get_args function. I suggest you create a new file containing all the argparse stuff and just import what you need. This would also make it a lot easier to solve the issue with the Heroku builds.

Add @d10 as collaborator

I' m doing some epic stuff with the web UI, and I don't want to keep PRing 😉 Add me as collab, also create a Heroku app and enable Travis builds with a .travis.yml, and auto deploys to the heroku app, using the deploy configuration. I will push it over next week.

Heroku deploy

Auto deploy to Heroku after Travis CI builds. Although this is enabled, it doesn't work as we don't have a buildpack for Python, matplotlib, and Node.js yet.

`CoinPhysicsSim` has a slight problem in `predict_prob()`

In the following code:

def predict_prob(self):
    """
    For the variables passed into the simulation,
    predict the probability that the needle will hit
    at least one of the two parallel lines.
    """

    # area of coin / area of rectangle
    area_coin = math.pi * self.radius**2
    area = self.gap_x * self.gap_y
    if area_coin > area:
        return 1.0
    return area_coin / area

There is a small but noticeable difference in the probability that the chi-square test did not catch (as it does not have the following case scenario):

Graph

This happens when the width of the square is smaller than the coin itself and the four quadrants intersect together.

Bug in tests?

In the tests I see stuff like _pass_chi_test(ARGUMENTS) < MAX_STAT. Doesn’t _pass_chi_test account for that?

Rewrite test suite

Test suite does not test the functions properly. The chi-square test should be applied to every case when calculating the probabilities, as only then will passing the chi-square test indicate that the probability calculation is correct.

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.