Code Monkey home page Code Monkey logo

ml-id3's Introduction

ML-ID3 (machine learning - Iterative Dichotomiser 3)

Compiling and Running

Insure you have the java development kit (JDK) 8 installed (link) installed for your operating system.

linux / unix

Open a terminal and change directory to the ML-ID3 folder. Then do the following to compile and run:

cd src/
javac Main.java
java Main "../resources/dataSet1/train.dat" "../resources/dataSet1/test.dat"

Note that the first parameter is the training data set and the second is the test data set.

Windows

After installing the JDK 8, locate and get the path for the java compiler javac.exe. If you installed jdk-8u101-windows-x64.exe from Oracles website, the the path is likely C:\Program Files\Java\jdk1.8.0_101\bin .

Now, navigate to the ML-ID3 folder in Windows Explorer. To open a command prompt at this location go to File > open command prompt.

Check the java version, this is what my output looks like:

C:\Users\Will\Documents\GitHub\ML-ID3>java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Add the path to the JDK bin so we can run the javac.exe compiler.

C:\Users\Will\Documents\GitHub\ML-ID3>set path=%path%;C:\Program Files\Java\jdk1.8.0_101\bin

Note that setting the path here does not presist. Once you close the command prommpt and open it again, the path variable will need to be set again.

Now compile and run:

C:\Users\Will\Documents\GitHub\ML-ID3>cd ./src
C:\Users\Will\Documents\GitHub\ML-ID3\src>javac Main.java
C:\Users\Will\Documents\GitHub\ML-ID3\src>java Main "../resources/dataSet1/train.dat" "../resources/dataSet1/test.dat"

Again, note that the first parameter is the training data set and the second is the test data set.

ml-id3's People

Contributors

willbush avatar

Watchers

James Cloos avatar  avatar  avatar

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.