rename model_id

750 views
Skip to first unread message

farhad...@gmail.com

unread,
Mar 2, 2016, 7:08:29 PM3/2/16
to H2O Open Source Scalable Machine Learning - h2ostream
Is there any way from any of the APIs ( preferably R, but any api is OK ) to change the model unique id ? 

I have bunch of models stored in different folders, unfortunately with same model key. When I import them they override each other. ideally I am looking for something like which is not working:

model  = h2o.getModel("model1");
attr(model, "model_id" ) = "model2"; 
h2o.saveModel(model2, "..."); 




Scott Stanfield

unread,
Mar 8, 2016, 3:54:11 PM3/8/16
to H2O Open Source Scalable Machine Learning - h2ostream
+1 for this feature. I'd like to see this too.

Spencer Aiello

unread,
Mar 8, 2016, 3:54:50 PM3/8/16
to Scott Stanfield, H2O Open Source Scalable Machine Learning - h2ostream
model.model_id = "asieurta8w4a"

Erin LeDell

unread,
Mar 8, 2016, 4:09:52 PM3/8/16
to Spencer Aiello, Scott Stanfield, H2O Open Source Scalable Machine Learning - h2ostream
Spencer,
Is there an R / Flow equivalent of renaming a model? 

-Erin

On 3/8/16 12:54 PM, Spencer Aiello wrote:
model.model_id = "asieurta8w4a"
--
You received this message because you are subscribed to the Google Groups "H2O Open Source Scalable Machine Learning - h2ostream" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2ostream+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Erin LeDell Ph.D.
Statistician & Machine Learning Scientist | H2O.ai

Spencer Aiello

unread,
Mar 8, 2016, 7:23:11 PM3/8/16
to Erin LeDell, Scott Stanfield, H2O Open Source Scalable Machine Learning - h2ostream
oh nope doesn't look like it -- i thought h2o assign did this for R.

let's addit!

aw3...@gmail.com

unread,
Jan 18, 2017, 6:00:52 AM1/18/17
to H2O Open Source Scalable Machine Learning - h2ostream, er...@h2o.ai, scottst...@gmail.com
On Wednesday, 9 March 2016 00:23:11 UTC, Spencer Aiello wrote:
> oh nope doesn't look like it -- i thought h2o assign did this for R.
>
>
> let's addit!

Was this ever added? Would be fantastic to have this ability in R.

aw3...@gmail.com

unread,
Jan 18, 2017, 6:06:57 AM1/18/17
to H2O Open Source Scalable Machine Learning - h2ostream, er...@h2o.ai, scottst...@gmail.com, aw3...@gmail.com

I realise you could specify it on the fly when building a single model, but that option isn't available during a grid search as far as I can see. Manually changing the name of any/all of the model_id slots in the model also doesn't work. When you try and save the model again (in this case with model_id set to "test"), you get the following error:

Object 'test' not found for argument: model_id

james.m...@gmail.com

unread,
Feb 15, 2017, 12:42:19 PM2/15/17
to H2O Open Source Scalable Machine Learning - h2ostream, er...@h2o.ai, scottst...@gmail.com
On Tuesday, March 8, 2016 at 5:23:11 PM UTC-7, Spencer Aiello wrote:
> oh nope doesn't look like it -- i thought h2o assign did this for R.
>
>
> let's addit!

Further request for confirmation this feature was added. I haven't been able to find it in the documentation anywhere.

james.m...@gmail.com

unread,
Feb 15, 2017, 12:53:01 PM2/15/17
to H2O Open Source Scalable Machine Learning - h2ostream, er...@h2o.ai, scottst...@gmail.com, james.m...@gmail.com


I checked to see if it could be changed simply by assigning a different value for model_id using "my_model@model_id <- "new_name"" and while that changed the model_id associated with the object in R, when I tried to save the model it threw an error for failing to locate a model with the new assigned name.

Scott Stanfield

unread,
Feb 15, 2017, 1:58:17 PM2/15/17
to james.m...@gmail.com, H2O Open Source Scalable Machine Learning - h2ostream, Erin LeDell
I’d be happy to just have the support to rename frames and models in Flow.

So much of the meta data about our frames (which comes from CSV files) are embedded in the name itself. Same with the model name, so having the ability to change would be nice.

Erin LeDell

unread,
Feb 22, 2017, 12:54:42 AM2/22/17
to Scott Stanfield, james.m...@gmail.com, H2O Open Source Scalable Machine Learning - h2ostream
Scott,

I remember that you asked me about this a while ago... did you create a
JIRA ticket for this? If not, please do! I think it would be useful to
be able to rename frames and models in Flow.

-Erin

Scott Stanfield

unread,
Feb 22, 2017, 1:41:47 AM2/22/17
to Erin LeDell, james.m...@gmail.com, H2O Open Source Scalable Machine Learning - h2ostream
I did and I will!

Also found a potential bug in GBM, hopefully reproducible on your end. We found a case, where after around 1000 trees chugging along at 5 seconds per tree, suddenly switches to 0.5 seconds per tree. Weird. I have a screenshot for you. Will send tomorrow.

---
Scott Stanfield
scottst...@gmail.com
Reply all
Reply to author
Forward
0 new messages