feature-selection-meta.proto 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 = "FeatureSelectionMetaProto";
  19. message FeatureSelectionMeta {
  20. repeated string filter_methods = 1;
  21. repeated string cols = 3;
  22. UniqueValueMeta unique_meta = 4;
  23. IVValueSelectionMeta iv_value_meta = 5;
  24. IVPercentileSelectionMeta iv_percentile_meta = 6;
  25. VarianceOfCoeSelectionMeta variance_coe_meta = 7;
  26. OutlierColsSelectionMeta outlier_meta = 8;
  27. ManuallyFilterMeta manually_meta = 9;
  28. bool need_run = 10;
  29. PercentageValueFilterMeta pencentage_value_meta = 11;
  30. IVTopKSelectionMeta iv_top_k_meta = 12;
  31. repeated FilterMeta filter_metas = 13;
  32. }
  33. message FilterMeta {
  34. string metrics = 1;
  35. string filter_type = 2;
  36. bool take_high = 3;
  37. double threshold = 4;
  38. bool select_federated = 5;
  39. string filter_out_names = 6;
  40. }
  41. message UniqueValueMeta {
  42. double eps = 1;
  43. }
  44. message IVValueSelectionMeta{
  45. double value_threshold = 1;
  46. bool local_only = 2;
  47. }
  48. message IVPercentileSelectionMeta{
  49. double percentile_threshold = 1;
  50. bool local_only = 2;
  51. }
  52. message IVTopKSelectionMeta{
  53. int64 k = 1;
  54. bool local_only = 2;
  55. }
  56. message VarianceOfCoeSelectionMeta {
  57. double value_threshold = 1;
  58. }
  59. message OutlierColsSelectionMeta {
  60. double percentile = 1;
  61. double upper_threshold = 2;
  62. }
  63. message ManuallyFilterMeta {
  64. repeated string filter_out_names = 1;
  65. }
  66. message PercentageValueFilterMeta {
  67. double upper_pct = 1;
  68. }