feature-binning-param.proto 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * Copyright 2019 The FATE Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. syntax = "proto3";
  17. package com.webank.ai.fate.core.mlmodel.buffer;
  18. option java_outer_classname = "FeatureBinningParamProto";
  19. //message SplitPointList {
  20. // repeated double split_points = 1;
  21. //}
  22. message IVParam {
  23. repeated double woe_array = 1;
  24. repeated double iv_array = 2;
  25. repeated int64 event_count_array = 3;
  26. repeated int64 non_event_count_array = 4;
  27. repeated double event_rate_array = 5;
  28. repeated double non_event_rate_array = 6;
  29. // map<string, SplitPointList> split_points = 7;
  30. repeated double split_points = 7;
  31. double iv = 8;
  32. bool is_woe_monotonic = 9;
  33. int64 bin_nums = 10;
  34. repeated string bin_anonymous = 11;
  35. repeated double optimal_metric_array = 12;
  36. }
  37. message FeatureBinningResult {
  38. map<string, IVParam> binning_result = 1;
  39. string role = 2;
  40. string party_id = 3;
  41. }
  42. message MultiClassResult {
  43. repeated FeatureBinningResult results = 1;
  44. repeated string labels = 2;
  45. repeated FeatureBinningResult host_results = 3;
  46. repeated string host_party_ids = 4;
  47. bool has_host_result = 5;
  48. }
  49. message BinningSingleFeatureValue {
  50. repeated double values = 1;
  51. repeated string col_names = 2;
  52. string value_name = 3;
  53. }
  54. message FeatureBinningParam {
  55. FeatureBinningResult binning_result = 1;
  56. repeated FeatureBinningResult host_results = 2;
  57. repeated string header = 3;
  58. repeated string header_anonymous = 4;
  59. string model_name = 5;
  60. MultiClassResult multi_class_result = 6;
  61. FeatureBinningResult transform_binning_result = 7;
  62. repeated FeatureBinningResult transform_host_results = 8;
  63. MultiClassResult transform_multi_class_result = 9;
  64. }