serial_monitor/src/serialApplication/MLCorrector.java
/* Uses ML model to test latest parameter in unclassified Arff file.
	 * returns the correct bit for the byte, -1 if classification failed.
	 */
Uses ML model to test latest parameter in unclassified Arff file.
returns the correct bit for the byte, -1 if classification failed.
Uses ML model to test latest parameter in unclassified Arff file . returns the correct bit for the byte - 1 if classification failed .
public int test() {
		try {
			double result = classifier.classifyInstance(sourceDataSet.lastInstance());
			System.out.println(result);
			return (int) result;
		} catch (Exception e) {
			e.printStackTrace();
			return -1;
		}
	}
public int test ( ) { try { double result = classifier . classifyInstance ( sourceDataSet . lastInstance ( ) ) ; System . out . println ( result ) ; return ( int ) result ; } catch ( Exception e ) { e . printStackTrace ( ) ; return - 1 ; } }
Uses ML model to test latest parameter in unclassified Arff file.
Uses ML model to test latest parameter in unclassified Arff file .
// TODO Auto-generated catch block
