Giter VIP home page Giter VIP logo

optimizationgeneric's People

Contributors

parththaker avatar

Watchers

 avatar  avatar

optimizationgeneric's Issues

Comments on functions.py

  • pep8 suggests two lines between the import statement and the class declaration
  • unless you're working with python3 only, it's always better to make the class inherit from object
  • why is the class named regression_function?
  • the __init__ function (or any function for that matter) shouldn't be passed mutable arguments, in this case features and labels.
  • pep8 also suggests limiting the line length to <80. but this is a very contentious issue so you can ignore this.
  • what the function_update method is hard to understand, especially because of the long statement. it might be nice to create a private function that takes self.labels[i] and self.features[i].
  • you might consider using the zip function e.g. for label, feature in zip(self.labels, self.featues)

Comments on `root.py`

  • dataset is a class-level constant, pep suggests that you place the constants right beneath the imports and before any function/class definitions
  • i'd like it if the arg parser code was inside a if __name__ == "__main__":, if i understand the code correctly.
  • convert the print statements into print function calls and import print function from future

Generic comments

  • Add a README with comments on how to use the root and functions modules
  • consider creating a package that contains the two modules
  • consider adding a license to the repository. unless you explicitly add a license, people won't know whether or not they can legally use your code.

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.