FATE-Serving
FATE-Serving copied to clipboard
CustomAdapter 如何编辑,有没有具体的示例?
训练数据集为breast_hetero_host.csv和breast_hetero_guest.csv,按照官方示例上传,namespace为experiment,table_name分别为breast_hetero_host和breast_hetero_guest。如何具体的使用host方数据做预测?
public class CustomAdapter extends AbstractSingleFeatureDataAdaptor {
@Override
public void init() {
// init() 方法中可以直接使用environment对象
// environment.getProperty("port");
}
@Override
public ReturnResult getData(Context context, Map<String, Object> featureIds) {
// context内容包含什么参数?featurIds该如何使用,如何获取host方的数据集?
}
}
Context为上下文信息,用于传递请求所需参数,featureIds用于传递数据提供方传递过来的特征ID(eg:手机号、设备号)
感觉不怎么活跃了,帮助文档也不是特别清楚
这是来自QQ邮箱的假期自动回复邮件。 您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
same question