This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!---demo for traditional BOX MODEL layout styling----> | |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>IEEE HTML5 training </title> | |
<link rel="stylesheet" href="layout.css"></link> | |
</head> | |
<body> | |
<div id="big_wrapper"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%train the model to get the value of K | |
function k = KNNtrain(pointDistance,t,point) | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
%{ | |
Done using Octave | |
Input : | |
%%%%%%%% | |
pointDistance: distancePoints(point,point) where point is the input traning data | |
t: target of the training data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function acc = KNNtestdata (trainpointDistance, trainPointsTarget, pointDistance,k, testPointsTarget,point) | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
%{ | |
Done using Octave | |
Input : | |
%%%%%%%% | |
trainpointDistance: distancePoints(point,point) where point are the input training data dimensions | |
trainPointsTarget : target of training data |