Search code examples
javapythonmachine-learningpojoh2o

How to rename h2o POJO?


Using the following code in python v2.7 on UBUNTU 16.04 machine

model1=h2o.load_model('home/administrator/DeepLearning_model_python_1497342069792_59')
b=model1.download_pojo('.')

I can successfully create a POJO with name: DeepLearning_model_python_1497342069792_59.java

I want to change the name of the POJO,simply renaming the POJO will break the code.
How can I give a custom name while downloading the POJO itself?


Solution

  • You have to replace DeepLearning_model_python_1497342069792_59 with your new name in current file text also, because java use same class name and file name together