#!/usr/bin/env python
# -*- coding: utf-8 -*-

#
#  Copyright 2019 The FATE Authors. All Rights Reserved.
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#

################################################################################
#
# AUTO GENERATED TRANSFER VARIABLE CLASS. DO NOT MODIFY
#
################################################################################

from federatedml.transfer_variable.base_transfer_variable import BaseTransferVariables


# noinspection PyAttributeOutsideInit
class HeteroSecureBoostTransferVariable(BaseTransferVariables):
    def __init__(self, flowid=0):
        super().__init__(flowid)
        self.predict_stop_flag = self._create_variable(name='predict_stop_flag', src=['guest'], dst=['host'])
        self.guest_predict_data = self._create_variable(name='guest_predict_data', src=['guest'], dst=['host'])
        self.host_predict_data = self._create_variable(name='host_predict_data', src=['host'], dst=['guest'])
        self.inter_host_data = self._create_variable(name='inter_host_data', src=['host'], dst=['host'])
        self.host_feature_importance = self._create_variable(name='host_feature_importance', src=['host'], dst=['guest'])

#!/usr/bin/env python
# -*- coding: utf-8 -*-

#
#  Copyright 2019 The FATE Authors. All Rights Reserved.
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#

################################################################################
#
# AUTO GENERATED TRANSFER VARIABLE CLASS. DO NOT MODIFY
#
################################################################################

from federatedml.transfer_variable.base_transfer_variable import BaseTransferVariables


# noinspection PyAttributeOutsideInit
class HeteroSecureBoostTransferVariable(BaseTransferVariables):
    def __init__(self, flowid=0):
        super().__init__(flowid)
        self.predict_stop_flag = self._create_variable(name='predict_stop_flag', src=['guest'], dst=['host'])
        self.guest_predict_data = self._create_variable(name='guest_predict_data', src=['guest'], dst=['host'])
        self.host_predict_data = self._create_variable(name='host_predict_data', src=['host'], dst=['guest'])
        self.inter_host_data = self._create_variable(name='inter_host_data', src=['host'], dst=['host'])
        self.host_feature_importance = self._create_variable(
            name='host_feature_importance', src=['host'], dst=['guest'])

Update python/federatedml/transfer_variable/transfer_class/hetero_secure_boosting_predict_transfer_variable.py