0

Architecture problem

So, I write code in Java for binary classification and use KNN method.the program must using Apache POI library. you have 90000 data trainings with 10 dimesions and 90000 data testing. the program run correctly for 100 data testing and 100 data trainings, but it's error wih memory leak when I use all my data testings and trainings, so can someone help me to solve this solution without increasing java heap size and use preprocessing. the program i write have O(n*m) complexity.

14th Feb 2017, 7:16 PM
Dr.roo
Dr.roo - avatar
1 ответ
- 1
not really sure whats going on here. but if your reading from a file. keep an array of like 100 objects. once its filled up. start at the front and rewrite the array. so you will only every have 100 elements at once. hope this helps :/
19th Feb 2017, 7:39 PM
Michael Szczepanski
Michael Szczepanski - avatar