当前位置: 首页>>代码示例>>Java>>正文


Java TaskConfigurationOptions类代码示例

本文整理汇总了Java中org.apache.reef.driver.task.TaskConfigurationOptions的典型用法代码示例。如果您正苦于以下问题:Java TaskConfigurationOptions类的具体用法?Java TaskConfigurationOptions怎么用?Java TaskConfigurationOptions使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


TaskConfigurationOptions类属于org.apache.reef.driver.task包,在下文中一共展示了TaskConfigurationOptions类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: AlsTask

import org.apache.reef.driver.task.TaskConfigurationOptions; //导入依赖的package包/类
@Inject
public AlsTask(
    final @Parameter(TaskConfigurationOptions.Identifier.class) String taskId,
    final @Parameter(SharedContextTaskGroup.StartK.class) int startK,
    final @Parameter(SharedContextTaskGroup.EndK.class) int endK,
    final @Parameter(Launch.DimK.class) int dimK,
    final @Parameter(Launch.Rho.class) double rho,
    final GroupCommClient groupCommClient,
    final TaskEnvironment env) {

  this.startK = startK;
  this.endK = endK;
  this.dimK = dimK;
  this.rho = rho;
  this.env = env;

  final CommunicationGroupClient commGroup =
      groupCommClient.getCommunicationGroup(DESCRIPTOR.getCommGroupIdClass());

  this.modelReceiver = commGroup.getBroadcastReceiver(DESCRIPTOR.getBroadcastIdClass());
  this.resultSender = commGroup.getReduceSender(DESCRIPTOR.getReduceIdClass());

  LOG.log(Level.FINEST, "AlsTask {0} created: k = {1} range = {2}..{3}",
      new Object[] { taskId, dimK, startK, endK });
}
 
开发者ID:Microsoft-CISL,项目名称:TensorFactorization-LDA,代码行数:26,代码来源:AlsTask.java

示例2: AlsMasterTask

import org.apache.reef.driver.task.TaskConfigurationOptions; //导入依赖的package包/类
@Inject
public AlsMasterTask(
    final @Parameter(TaskConfigurationOptions.Identifier.class) String taskId,
    final @Parameter(Launch.DimK.class) int dimK,
    final @Parameter(Launch.Tolerance.class) Double tolerance,
    final @Parameter(Launch.MaxIterations.class) Integer maxIterations,
    final GroupCommClient groupCommClient,
    final TaskEnvironment env) {

  this.dimK = dimK;
  this.tolerance = tolerance;
  this.maxIterations = maxIterations;
  this.env = env;

  final CommunicationGroupClient commGroup =
      groupCommClient.getCommunicationGroup(DESCRIPTOR.getCommGroupIdClass());

  this.modelSender = commGroup.getBroadcastSender(DESCRIPTOR.getBroadcastIdClass());
  this.resultReceiver = commGroup.getReduceReceiver(DESCRIPTOR.getReduceIdClass());

  LOG.log(Level.FINEST, "AlsMasterTask {0} created", taskId);
}
 
开发者ID:Microsoft-CISL,项目名称:TensorFactorization-LDA,代码行数:23,代码来源:AlsMasterTask.java

示例3: UnwhitenTask

import org.apache.reef.driver.task.TaskConfigurationOptions; //导入依赖的package包/类
@Inject
public UnwhitenTask(
    final @Parameter(TaskConfigurationOptions.Identifier.class) String taskId,
    final @Parameter(Launch.DimD.class) int dimD,
    final @Parameter(Launch.DimK.class) int dimK,
    final GroupCommClient groupCommClient,
    final TaskEnvironment env) {

  this.dimD = dimD;
  this.dimK = dimK;
  this.env = env;

  final CommunicationGroupClient commGroup =
      groupCommClient.getCommunicationGroup(DESCRIPTOR.getCommGroupIdClass());

  this.modelReceiver = commGroup.getBroadcastReceiver(DESCRIPTOR.getBroadcastIdClass());
  this.resultSender = commGroup.getReduceSender(DESCRIPTOR.getReduceIdClass());

  LOG.log(Level.FINEST,
      "UnwhitenTask {0} created: d*k = {1} * {2}", new Object[] { taskId, dimD, dimK });
}
 
开发者ID:Microsoft-CISL,项目名称:TensorFactorization-LDA,代码行数:22,代码来源:UnwhitenTask.java

示例4: UnwhitenMasterTask

import org.apache.reef.driver.task.TaskConfigurationOptions; //导入依赖的package包/类
@Inject
public UnwhitenMasterTask(
    final @Parameter(TaskConfigurationOptions.Identifier.class) String taskId,
    final @Parameter(Launch.DimK.class) int dimK,
    final @Parameter(Launch.Alpha0.class) double alpha0,
    final @Parameter(Launch.Output.class) String outputPath,
    final GroupCommClient groupCommClient,
    final DoubleMatrixTextIO hdfsIO,
    final TaskEnvironment env) {

  this.dimK = dimK;
  this.alpha0 = alpha0;
  this.outputPath = outputPath;
  this.hdfsIO = hdfsIO;
  this.env = env;

  final CommunicationGroupClient commGroup =
      groupCommClient.getCommunicationGroup(DESCRIPTOR.getCommGroupIdClass());

  this.modelSender = commGroup.getBroadcastSender(DESCRIPTOR.getBroadcastIdClass());
  this.resultReceiver = commGroup.getReduceReceiver(DESCRIPTOR.getReduceIdClass());

  LOG.log(Level.FINEST, "UnwhitenMasterTask {0} created", taskId);
}
 
开发者ID:Microsoft-CISL,项目名称:TensorFactorization-LDA,代码行数:25,代码来源:UnwhitenMasterTask.java

示例5: M3Task

import org.apache.reef.driver.task.TaskConfigurationOptions; //导入依赖的package包/类
@Inject
public M3Task(
    final @Parameter(TaskConfigurationOptions.Identifier.class) String taskId,
    final @Parameter(Launch.Alpha0.class) double alpha0,
    final @Parameter(Launch.DimK.class) int dimK,
    final @Parameter(SharedContextTaskGroup.StartK.class) int startK,
    final @Parameter(SharedContextTaskGroup.EndK.class) int endK,
    final GroupCommClient groupCommClient,
    final TaskEnvironment env) {

  final CommunicationGroupClient commGroup =
      groupCommClient.getCommunicationGroup(DESCRIPTOR.getCommGroupIdClass());

  this.alpha0 = alpha0;
  this.dimK = dimK;
  this.startK = startK;
  this.endK = endK;
  this.env = env;

  this.modelReceiver = commGroup.getBroadcastReceiver(DESCRIPTOR.getBroadcastIdClass());
  this.resultSender = commGroup.getReduceSender(DESCRIPTOR.getReduceIdClass());

  LOG.log(Level.FINEST, "M3Task {0} created: k = {1} range = {2}..{3}",
      new Object[] { taskId, dimK, startK, endK });
}
 
开发者ID:Microsoft-CISL,项目名称:TensorFactorization-LDA,代码行数:26,代码来源:M3Task.java

示例6: M3MasterTask

import org.apache.reef.driver.task.TaskConfigurationOptions; //导入依赖的package包/类
@Inject
public M3MasterTask(
    final @Parameter(TaskConfigurationOptions.Identifier.class) String taskId,
    final GroupCommClient groupCommClient,
    final TaskEnvironment env) {

  this.env = env;

  final CommunicationGroupClient commGroup =
      groupCommClient.getCommunicationGroup(DESCRIPTOR.getCommGroupIdClass());

  this.modelSender = commGroup.getBroadcastSender(DESCRIPTOR.getBroadcastIdClass());
  this.resultReceiver = commGroup.getReduceReceiver(DESCRIPTOR.getReduceIdClass());

  LOG.log(Level.FINEST, "M3MasterTask {0} created", taskId);
}
 
开发者ID:Microsoft-CISL,项目名称:TensorFactorization-LDA,代码行数:17,代码来源:M3MasterTask.java

示例7: WhitenTask

import org.apache.reef.driver.task.TaskConfigurationOptions; //导入依赖的package包/类
@Inject
public WhitenTask(
    final @Parameter(TaskConfigurationOptions.Identifier.class) String taskId,
    final @Parameter(Launch.DimD.class) int dimD,
    final @Parameter(Launch.DimKPrime.class) int dimKprime,
    final GroupCommClient groupCommClient,
    final InputData data,
    final TaskEnvironment env) {

  this.dimD = dimD;
  this.dimKprime = dimKprime;
  this.env = env;

  final CommunicationGroupClient commGroup =
      groupCommClient.getCommunicationGroup(DESCRIPTOR.getCommGroupIdClass());

  this.modelReceiver = commGroup.getBroadcastReceiver(DESCRIPTOR.getBroadcastIdClass());
  this.resultSender = commGroup.getReduceSender(DESCRIPTOR.getReduceIdClass());

  LOG.log(Level.FINEST,
      "WhitenTask {0} created: d*k_prime = {1} * {2}", new Object[] { taskId, dimD, dimKprime });

  env.setDocuments(data.getDocuments());
}
 
开发者ID:Microsoft-CISL,项目名称:TensorFactorization-LDA,代码行数:25,代码来源:WhitenTask.java

示例8: WhitenMasterTask

import org.apache.reef.driver.task.TaskConfigurationOptions; //导入依赖的package包/类
@Inject
public WhitenMasterTask(
    final @Parameter(TaskConfigurationOptions.Identifier.class) String taskId,
    final @Parameter(Launch.Alpha0.class) double alpha0,
    final @Parameter(Launch.DimD.class) int dimD,
    final @Parameter(Launch.DimK.class) int dimK,
    final @Parameter(Launch.DimKPrime.class) int dimKprime,
    final GroupCommClient groupCommClient,
    final TaskEnvironment env) {

  this.dimD = dimD;
  this.dimK = dimK;
  this.dimKprime = dimKprime;
  this.alpha0 = alpha0;
  this.env = env;

  final CommunicationGroupClient commGroup =
      groupCommClient.getCommunicationGroup(DESCRIPTOR.getCommGroupIdClass());

  this.modelSender = commGroup.getBroadcastSender(DESCRIPTOR.getBroadcastIdClass());
  this.resultReceiver = commGroup.getReduceReceiver(DESCRIPTOR.getReduceIdClass());

  LOG.log(Level.FINEST,
      "WhitenMasterTask {0} created: d*k_prime = {1} * {2}",
      new Object[] { taskId, dimD, dimKprime });
}
 
开发者ID:Microsoft-CISL,项目名称:TensorFactorization-LDA,代码行数:27,代码来源:WhitenMasterTask.java

示例9: M1MasterTask

import org.apache.reef.driver.task.TaskConfigurationOptions; //导入依赖的package包/类
@Inject
public M1MasterTask(
    final @Parameter(TaskConfigurationOptions.Identifier.class) String taskId,
    final GroupCommClient groupCommClient,
    final TaskEnvironment env) {

  LOG.log(Level.FINEST, "M1MasterTask {0}", taskId);

  this.env = env;

  final CommunicationGroupClient commGroup =
      groupCommClient.getCommunicationGroup(DESCRIPTOR.getCommGroupIdClass());

  this.modelSender = commGroup.getBroadcastSender(DESCRIPTOR.getBroadcastIdClass());
  this.resultReceiver = commGroup.getReduceReceiver(DESCRIPTOR.getReduceIdClass());

  LOG.log(Level.FINEST, "M1MasterTask {0} created", taskId);
}
 
开发者ID:Microsoft-CISL,项目名称:TensorFactorization-LDA,代码行数:19,代码来源:M1MasterTask.java

示例10: M1Task

import org.apache.reef.driver.task.TaskConfigurationOptions; //导入依赖的package包/类
@Inject
public M1Task(
    final @Parameter(TaskConfigurationOptions.Identifier.class) String taskId,
    final @Parameter(Launch.DimD.class) int dimD,
    final @Parameter(Launch.DimK.class) int dimK,
    final GroupCommClient groupCommClient,
    final TaskEnvironment env) {

  final CommunicationGroupClient commGroup =
      groupCommClient.getCommunicationGroup(DESCRIPTOR.getCommGroupIdClass());

  this.dimD = dimD;
  this.dimK = dimK;
  this.env = env;

  this.modelReceiver = commGroup.getBroadcastReceiver(DESCRIPTOR.getBroadcastIdClass());
  this.resultSender = commGroup.getReduceSender(DESCRIPTOR.getReduceIdClass());

  LOG.log(Level.FINEST, "M1Task {0} created: d*k = {1} * {2}", new Object[]{ taskId, dimD, dimK });
}
 
开发者ID:Microsoft-CISL,项目名称:TensorFactorization-LDA,代码行数:21,代码来源:M1Task.java

示例11: ScatterSender

import org.apache.reef.driver.task.TaskConfigurationOptions; //导入依赖的package包/类
@Inject
public ScatterSender(@Parameter(CommunicationGroupName.class) final String groupName,
                     @Parameter(OperatorName.class) final String operName,
                     @Parameter(TaskConfigurationOptions.Identifier.class) final String selfId,
                     @Parameter(DataCodec.class) final Codec<T> dataCodec,
                     @Parameter(DriverIdentifierGroupComm.class) final String driverId,
                     @Parameter(TaskVersion.class) final int version,
                     final CommGroupNetworkHandler commGroupNetworkHandler,
                     final NetworkService<GroupCommunicationMessage> netService,
                     final CommunicationGroupServiceClient commGroupClient,
                     final ScatterEncoder scatterEncoder) {
  LOG.finest(operName + "has CommGroupHandler-" + commGroupNetworkHandler.toString());
  this.version = version;
  this.groupName = Utils.getClass(groupName);
  this.operName = Utils.getClass(operName);
  this.dataCodec = dataCodec;
  this.scatterEncoder = scatterEncoder;
  this.topology = new OperatorTopologyImpl(this.groupName, this.operName,
                                           selfId, driverId, new Sender(netService), version);
  this.commGroupClient = commGroupClient;
  commGroupNetworkHandler.register(this.operName, this);
}
 
开发者ID:apache,项目名称:reef,代码行数:23,代码来源:ScatterSender.java

示例12: BroadcastReceiver

import org.apache.reef.driver.task.TaskConfigurationOptions; //导入依赖的package包/类
@Inject
public BroadcastReceiver(@Parameter(CommunicationGroupName.class) final String groupName,
                         @Parameter(OperatorName.class) final String operName,
                         @Parameter(TaskConfigurationOptions.Identifier.class) final String selfId,
                         @Parameter(DataCodec.class) final Codec<T> dataCodec,
                         @Parameter(DriverIdentifierGroupComm.class) final String driverId,
                         @Parameter(TaskVersion.class) final int version,
                         final CommGroupNetworkHandler commGroupNetworkHandler,
                         final NetworkService<GroupCommunicationMessage> netService,
                         final CommunicationGroupServiceClient commGroupClient) {
  super();
  this.version = version;
  LOG.finest(operName + " has CommGroupHandler-" + commGroupNetworkHandler.toString());
  this.groupName = Utils.getClass(groupName);
  this.operName = Utils.getClass(operName);
  this.dataCodec = dataCodec;
  this.commGroupNetworkHandler = commGroupNetworkHandler;
  this.netService = netService;
  this.sender = new Sender(this.netService);
  this.topology = new OperatorTopologyImpl(this.groupName, this.operName, selfId, driverId, sender, version);
  this.commGroupNetworkHandler.register(this.operName, this);
  this.commGroupClient = commGroupClient;
}
 
开发者ID:apache,项目名称:reef,代码行数:24,代码来源:BroadcastReceiver.java

示例13: GatherSender

import org.apache.reef.driver.task.TaskConfigurationOptions; //导入依赖的package包/类
@Inject
public GatherSender(@Parameter(CommunicationGroupName.class) final String groupName,
                    @Parameter(OperatorName.class) final String operName,
                    @Parameter(TaskConfigurationOptions.Identifier.class) final String selfId,
                    @Parameter(DataCodec.class) final Codec<T> dataCodec,
                    @Parameter(DriverIdentifierGroupComm.class) final String driverId,
                    @Parameter(TaskVersion.class) final int version,
                    final CommGroupNetworkHandler commGroupNetworkHandler,
                    final NetworkService<GroupCommunicationMessage> netService,
                    final CommunicationGroupServiceClient commGroupClient) {
  LOG.finest(operName + "has CommGroupHandler-" + commGroupNetworkHandler.toString());
  this.version = version;
  this.groupName = Utils.getClass(groupName);
  this.operName = Utils.getClass(operName);
  this.dataCodec = dataCodec;
  this.netService = netService;
  this.topology = new OperatorTopologyImpl(this.groupName, this.operName,
                                           selfId, driverId, new Sender(netService), version);
  this.commGroupClient = commGroupClient;
  commGroupNetworkHandler.register(this.operName, this);
}
 
开发者ID:apache,项目名称:reef,代码行数:22,代码来源:GatherSender.java

示例14: ReduceReceiver

import org.apache.reef.driver.task.TaskConfigurationOptions; //导入依赖的package包/类
@Inject
public ReduceReceiver(@Parameter(CommunicationGroupName.class) final String groupName,
                      @Parameter(OperatorName.class) final String operName,
                      @Parameter(TaskConfigurationOptions.Identifier.class) final String selfId,
                      @Parameter(DataCodec.class) final Codec<T> dataCodec,
                      @Parameter(ReduceFunctionParam.class) final ReduceFunction<T> reduceFunction,
                      @Parameter(DriverIdentifierGroupComm.class) final String driverId,
                      @Parameter(TaskVersion.class) final int version,
                      final CommGroupNetworkHandler commGroupNetworkHandler,
                      final NetworkService<GroupCommunicationMessage> netService,
                      final CommunicationGroupServiceClient commGroupClient) {
  super();
  this.version = version;
  LOG.finest(operName + " has CommGroupHandler-" + commGroupNetworkHandler.toString());
  this.groupName = Utils.getClass(groupName);
  this.operName = Utils.getClass(operName);
  this.dataCodec = dataCodec;
  this.reduceFunction = reduceFunction;
  this.commGroupNetworkHandler = commGroupNetworkHandler;
  this.netService = netService;
  this.sender = new Sender(this.netService);
  this.topology = new OperatorTopologyImpl(this.groupName, this.operName, selfId, driverId, sender, version);
  this.commGroupNetworkHandler.register(this.operName, this);
  this.commGroupClient = commGroupClient;
}
 
开发者ID:apache,项目名称:reef,代码行数:26,代码来源:ReduceReceiver.java

示例15: GatherReceiver

import org.apache.reef.driver.task.TaskConfigurationOptions; //导入依赖的package包/类
@Inject
public GatherReceiver(@Parameter(CommunicationGroupName.class) final String groupName,
                      @Parameter(OperatorName.class) final String operName,
                      @Parameter(TaskConfigurationOptions.Identifier.class) final String selfId,
                      @Parameter(DataCodec.class) final Codec<T> dataCodec,
                      @Parameter(DriverIdentifierGroupComm.class) final String driverId,
                      @Parameter(TaskVersion.class) final int version,
                      final CommGroupNetworkHandler commGroupNetworkHandler,
                      final NetworkService<GroupCommunicationMessage> netService,
                      final CommunicationGroupServiceClient commGroupClient) {
  LOG.finest(operName + " has CommGroupHandler-" + commGroupNetworkHandler.toString());
  this.version = version;
  this.groupName = Utils.getClass(groupName);
  this.operName = Utils.getClass(operName);
  this.dataCodec = dataCodec;
  this.topology = new OperatorTopologyImpl(this.groupName, this.operName,
                                           selfId, driverId, new Sender(netService), version);
  this.commGroupClient = commGroupClient;
  commGroupNetworkHandler.register(this.operName, this);
}
 
开发者ID:apache,项目名称:reef,代码行数:21,代码来源:GatherReceiver.java


注:本文中的org.apache.reef.driver.task.TaskConfigurationOptions类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。