when calling OptimizeHyperparameters to optimise my KNN model i am getting an error "out of memory".
조회 수: 3 (최근 30일)
이전 댓글 표시
on using the command
trainedClassifier=fitcknn(trainfeatures,trainlabels,'OptimizeHyperparameters','auto','HyperparameterOptimizationOptions',struct('AcquisitionFunctionName','expected-improvement-plus'))
i am getting the following error "Out of memory." after 5 iteration.
i am using '9.11.0.1873467 (R2021b) Update 3' version of matlab on 64 bit platform with RAM size 16GB.
댓글 수: 0
답변 (1개)
Srija Kethiri
2022년 12월 16일
Hi Preeti,
I understand that you are getting an “Out of Memory” error after 5th iteration while using the “fitcknn” function.
Although the root cause of running out of memory is not clear, there are several ways to avoid this issue again. Here are options you can try which are not exclusive of each other, so feel free to try any combination of these:
1. The best one to start with is to increase swap space (also called virtual memory, which supplements physical RAM). In Windows 10, it is relatively easy to do so, follow the instructions on this link:
2. Close all other unnecessary applications before running your script. Example: desktop applications like Chrome or IE will use a lot of memory when many tabs are open.
3. You can refer to the following documentation to know more about resolving the “out of memory” error issues:
Hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!