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”)
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s