boosting-tree-model-param.proto 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. syntax = "proto3";
  2. package com.webank.ai.fate.core.mlmodel.buffer;
  3. option java_outer_classname = "BoostTreeModelParamProto";
  4. message NodeParam {
  5. int32 id = 1;
  6. string sitename = 2;
  7. int32 fid = 3;
  8. double bid = 4;
  9. double weight = 5;
  10. bool is_leaf = 6;
  11. int32 left_nodeid = 7;
  12. int32 right_nodeid = 8;
  13. int32 missing_dir = 9;
  14. repeated double mo_weight = 10;
  15. }
  16. message DecisionTreeModelParam {
  17. repeated NodeParam tree_ = 1;
  18. map<int32, double> split_maskdict = 2;
  19. map<int32, int32> missing_dir_maskdict = 3;
  20. map<int32, int32> leaf_count = 4;
  21. }
  22. message FeatureImportanceInfo {
  23. string sitename = 1;
  24. int32 fid = 2;
  25. double importance = 3;
  26. string fullname = 4;
  27. double importance2 = 5;
  28. string main = 6;
  29. }
  30. message BoostingTreeModelParam {
  31. int32 tree_num = 1;
  32. repeated DecisionTreeModelParam trees_ = 2;
  33. repeated double init_score = 3;
  34. repeated double losses = 4;
  35. int32 tree_dim = 5;
  36. int32 num_classes = 6;
  37. repeated string classes_ = 7;
  38. repeated FeatureImportanceInfo feature_importances = 8;
  39. map<int32, string> feature_name_fid_mapping = 9;
  40. int32 best_iteration = 10;
  41. repeated string tree_plan = 11;
  42. string model_name = 12;
  43. map<string, string> anonymous_name_mapping = 13;
  44. }
  45. message TransformerParam {
  46. BoostingTreeModelParam tree_param=1;
  47. string model_name=2;
  48. }