Giter Club home page Giter Club logo

decisiontree's Issues

Bugs and improvement suggestions

很感谢您分享的代码,

在README提供的例子中您希望通过年龄和压力大小来判断幸福等级,这里幸福等级不止两个,但在程序DecisionTree.h Line71 您定义了bool型的aaa,会使第三类幸福等级出现时产生bug。定义为int型应该更合适。

DecisionTree.h Line 207计算entropy若移到循环外可减少额外计算。

类的函数成员定义写在.h文件中,函数成员不是内联的,一旦文件被两个或以上cpp包含,该函数将被重新定义。似乎影响了其扩展性。

感谢,祝好

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.