boosting-tree-model-meta.proto 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. syntax = "proto3";
  2. package com.webank.ai.fate.core.mlmodel.buffer;
  3. option java_outer_classname = "BoostTreeModelMetaProto";
  4. message ObjectiveMeta {
  5. string objective = 1;
  6. repeated double param = 2;
  7. }
  8. message CriterionMeta {
  9. string criterion_method = 1;
  10. repeated double criterion_param = 2;
  11. }
  12. message DecisionTreeModelMeta {
  13. CriterionMeta criterion_meta = 1;
  14. int32 max_depth = 2;
  15. int32 min_sample_split = 3;
  16. double min_impurity_split = 4;
  17. int32 min_leaf_node = 5;
  18. bool use_missing = 6;
  19. bool zero_as_missing = 7;
  20. }
  21. message QuantileMeta {
  22. string quantile_method = 1;
  23. int32 bin_num = 2;
  24. }
  25. message BoostingTreeModelMeta {
  26. DecisionTreeModelMeta tree_meta = 1;
  27. double learning_rate = 2;
  28. int32 num_trees = 3;
  29. QuantileMeta quantile_meta = 4;
  30. ObjectiveMeta objective_meta = 5;
  31. string task_type = 6;
  32. bool n_iter_no_change = 7;
  33. double tol = 8;
  34. bool use_missing = 9;
  35. bool zero_as_missing = 10;
  36. string work_mode = 11;
  37. string module = 12;
  38. string boosting_strategy = 13;
  39. }
  40. message TransformerMeta{
  41. BoostingTreeModelMeta tree_meta=1;
  42. string model_name=2;
  43. }