Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CustomAdapter 如何编辑,有没有具体的示例? #149

Open
bitdaocao opened this issue Jun 16, 2022 · 3 comments
Open

CustomAdapter 如何编辑,有没有具体的示例? #149

bitdaocao opened this issue Jun 16, 2022 · 3 comments

Comments

@bitdaocao
Copy link

训练数据集为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:手机号、设备号)
@NookLook2014
Copy link

感觉不怎么活跃了,帮助文档也不是特别清楚

@bitdaocao
Copy link
Author

bitdaocao commented Jul 11, 2022 via email

@Timo9Madrid7
Copy link

same question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants