Package org.cspoker.ai.opponentmodels.weka.instances

Source Code of org.cspoker.ai.opponentmodels.weka.instances.EmptyInstance

package org.cspoker.ai.opponentmodels.weka.instances;

import org.cspoker.ai.opponentmodels.weka.Propositionalizer;

import weka.core.Instance;

public class EmptyInstance extends InstancesBuilder {

  private static final String attributes =
    "@attribute round {preflop,flop,turn,river}"+nl;
 
  public EmptyInstance(String name, String targets) {
    super(name, attributes, targets);
  }

  @Override
  public Instance getUnclassifiedInstance(Propositionalizer prop, Object actorId) {
    Instance instance = new Instance(length);
    instance.setDataset(dataset);
    instance.setValue(0, prop.getRound()+"");
    return instance;
  }
}
TOP

Related Classes of org.cspoker.ai.opponentmodels.weka.instances.EmptyInstance

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.