Calling H2O garbage collect from python

To perform on demand garbage collect in H2O from R, try following:

h2o.garbageCollect()

If you want to do GC in H2O from Python, then there is no python specific function however you could invoke H2O GC RESTful API from python as below:

  • import h2o
  • import gc
  • h2o.api(“POST /3/GarbageCollect”)

Leave a comment