hetero-nn-model-meta.proto 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 = "HeteroNNModelMetaProto";
  19. message OptimizerParam {
  20. string optimizer = 1;
  21. string kwargs = 2;
  22. }
  23. message PredictParam {
  24. double threshold = 1;
  25. }
  26. message HeteroNNModelMeta {
  27. string config_type = 1;
  28. repeated string bottom_nn_define = 2;
  29. string interactive_layer_define = 3;
  30. repeated string top_nn_define = 4;
  31. repeated string metrics = 5;
  32. OptimizerParam optimizer_param = 6;
  33. string loss = 7;
  34. double interactive_layer_lr = 8;
  35. }
  36. message HeteroNNMeta {
  37. HeteroNNModelMeta hetero_nn_model_meta = 1;
  38. string task_type = 2;
  39. int32 batch_size = 3;
  40. int32 epochs = 4;
  41. string early_stop = 5;
  42. double tol = 6;
  43. string module = 7;
  44. }