applying k-nn algorithm in excel

sozib

New Member
Joined
Mar 16, 2017
Messages
7
Hi i have two set of data,one for training and another set is testing. Can i use this data for k-nn algorithm on this?If yes , can u let me know how to do this??


training data

[TABLE="width: 448"]
<colgroup><col width="64" span="7" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]timestamp[/TD]
[TD="width: 64"]c1[/TD]
[TD="width: 64"]c2[/TD]
[TD="width: 64"]c3[/TD]
[TD="width: 64"]c4[/TD]
[TD="width: 64"]c5[/TD]
[TD="width: 64"]c6[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-35[/TD]
[TD="align: right"]-37[/TD]
[TD="align: right"]-36[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-28[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-37[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-35[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-37[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-38[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-29[/TD]
[TD="align: right"]-38
[/TD]
[/TR]
</tbody>[/TABLE]


testing data
[TABLE="width: 448"]
<colgroup><col width="64" span="7" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]timestamp [/TD]
[TD="width: 64"]c1[/TD]
[TD="width: 64"]c2[/TD]
[TD="width: 64"]c3[/TD]
[TD="width: 64"]c4[/TD]
[TD="width: 64"]c5[/TD]
[TD="width: 64"]c6[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-34[/TD]
[TD="align: right"]-37[/TD]
[TD="align: right"]-36[/TD]
[TD="align: right"]-27[/TD]
[TD="align: right"]-32[/TD]
[TD="align: right"]-37[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-32[/TD]
[TD="align: right"]-37[/TD]
[TD="align: right"]-36[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-32[/TD]
[TD="align: right"]-39[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-32[/TD]
[TD="align: right"]-37[/TD]
[TD="align: right"]-36[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-32[/TD]
[TD="align: right"]-39[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-32[/TD]
[TD="align: right"]-37[/TD]
[TD="align: right"]-36[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-32[/TD]
[TD="align: right"]-39[/TD]
[/TR]
[TR]
[TD="align: right"]1.52E+12[/TD]
[TD="align: right"]-32[/TD]
[TD="align: right"]-37[/TD]
[TD="align: right"]-36[/TD]
[TD="align: right"]-26[/TD]
[TD="align: right"]-32[/TD]
[TD="align: right"]-39[/TD]
[/TR]
</tbody>[/TABLE]

any helps will be really appreciated..

Thanks
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Last edited:
Upvote 0
As i have post here earlier , buthave not received any reply from anyone, then i post in different forum, but do i need to put the link in bot forum
 
Upvote 0
As i have post here earlier , buthave not received any reply from anyone, then i post in different forum, but do i need to put the link in bot forum
Yes, normally all forums prefer you post links to cross-posts. To understand why, follow the link at the end of our rule #13 and read that page.

You do not need to do it in this thread though as I have done it for you. :)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top