feature-selection-param.proto 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 = "FeatureSelectionParamProto";
  19. message FeatureValue {
  20. map<string, double> feature_values = 1;
  21. }
  22. message LeftCols {
  23. repeated string original_cols = 1;
  24. map<string, bool> left_cols = 2;
  25. }
  26. message FeatureSelectionFilterParam{
  27. map<string, double> feature_values = 1;
  28. repeated FeatureValue host_feature_values = 2;
  29. LeftCols left_cols = 3;
  30. repeated LeftCols host_left_cols = 4;
  31. string filter_name = 5;
  32. }
  33. message FeatureSelectionParam{
  34. repeated FeatureSelectionFilterParam results = 1;
  35. LeftCols final_left_cols = 2;
  36. repeated string col_names = 3;
  37. repeated HostColNames host_col_names = 4;
  38. repeated string header = 5;
  39. map<string, string> col_name_to_anonym_dict = 6;
  40. }
  41. message HostColNames{
  42. repeated string col_names = 1;
  43. string party_id = 2;
  44. }