Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, I Am Trying To Save A Trained Xgbclassifier Model As Outputmodel, Is There An Example Somewhere Of How To Do That? It Has No Weights To Save, Should I Just Pickle It And Save The Results?

Hi, I am trying to save a trained XGBClassifier model as OutputModel, is there an example somewhere of how to do that? it has no weights to save, should I just pickle it and save the results?

  
  
Posted 2 years ago
Votes Newest

Answers 6


Ok it works, but I don't see the labels in the model output, is there a way for me to use OutputModel to update those labels?

  
  
Posted 2 years ago

I'll try, thanks!

  
  
Posted 2 years ago

yep, will try, thanks!

  
  
Posted 2 years ago

Hi! So I looked at the example code and you don't have to use joblib 😄
If you do:
model.save_model('xgb.02.model')It will work 🙂 Sorry for the confusion!
To upload labels, after task.init call
task.set_model_label_enumeration({'label':0,'another_label':1})The models will inherit this enumeration 🙂
Makes sense?

  
  
Posted 2 years ago

If you save it with joblib it should be automatically captured

  
  
Posted 2 years ago

https://github.com/allegroai/clearml/blob/master/examples/frameworks/scikit-learn/sklearn_joblib_example.py

This is an sklearn example, but AFAIK it should work also with XGB. Makes sense?

  
  
Posted 2 years ago
1K Views
6 Answers
2 years ago
one year ago
Tags