Git Product home page Git Product logo

Comments (5)

rashidhk avatar rashidhk commented on July 28, 2024

Thank you very much for the follow up. I really appreciate your concerns. Please read below what are the changes I have done to compile this program under Visual Studio 2013.

Errors:
-------

Error 12 error C2057: expected constant expression
Error 13 error C2466: cannot allocate an array of constant size 0

Modification:
--------------

I did the following modification to compile it successfully.
//int Count[Unique_Values.size()] = {0}; (change it)
vector < int > Count(Unique_Values.size());

Errors:
--------

Error 17 error C2057: expected constant expression
Error 18 error C2466: cannot allocate an array of constant size 0

Modification:
--------------

I did the following modification to compile it successfully.
//int Count[Score_Range.size()] = {0};
vector< int > Count(Score_Range.size());


After the above mentioned modifications when I compiled the program in Visual Studio 2013 there was the following error.

Error 37 error C4700: uninitialized local variable 'Tree' used
Error 38 error LNK1257: code generation failed
Tree = Tree->BuildTree(Tree, Matrix); //Error 37

I did the following modifications to compile it successfully.
//TreeCls * Tree; (change it)
TreeCls * Tree = NULL;

Though the program was compiled successfully. But I do not how the executable file build from the program would provide results of C4.5 on the input line (can see in the main() function) MatrixCls Matrix("C:\Golf.dat");

Can you please check the changes that I have done. Also how I can get the output results in viewing the situation that I am working on visual studio 2013.

from decisiontree_c4.5.

zgyao avatar zgyao commented on July 28, 2024

OK, I will find some windows machine and compile this for you, I don't have any experience with VS, compile this source code should be trivial in a Linux machine. Just read your email this night, I will response in this week. ๐Ÿ˜ƒ

from decisiontree_c4.5.

zgyao avatar zgyao commented on July 28, 2024

Sorry, I still cannot get a windows pc with vs, you can compile it in Linux terminal with command
g++ -std=c++11 DecisionTree_C4.5.cpp
and then there should be an a.out executable file, you can run it with typing ./a.out in the terminal

from decisiontree_c4.5.

rashidhk avatar rashidhk commented on July 28, 2024

from decisiontree_c4.5.

dnettlet avatar dnettlet commented on July 28, 2024

Hi zgyao,

I have implemented your code and got it executing, but with the golf example it only shows the outcome as "Play", "Don't Play". How can I see the associated confidence factor for each outcome ?

Thanks !

David (dnettlet)

from decisiontree_c4.5.

Related Issues (3)

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.