You are here

protected function Recommender::cleanupMemory in Recommender API 6.2

2 calls to Recommender::cleanupMemory()
CorrelationRecommender::computePredictionMemory in ./Recommender.php
CorrelationRecommender::computeSimilarityMemory in ./Recommender.php

File

./Recommender.php, line 255

Class

Recommender
The super class for all other Recommender algorithms.

Code

protected function cleanupMemory() {

  // huge memory waste for large dataset. better unset it after it's done.
  unset($this->directMatrix);
  unset($this->similarityMatrix);
  unset($this->predictionMatrix);
}