@Override public InstancesHeader getHeader() { return new InstancesHeader(this.instances); }
@Override public InstancesHeader getHeader() { return new InstancesHeader(this.instances); }
@Override public void setDataset(Instances dataset) { this.instanceInformation = new InstancesHeader(dataset); }
@Override public InstancesHeader getHeader() { return new InstancesHeader(this.dataset); }
@Override public InstancesHeader getHeader() { return new InstancesHeader(this.instances); }
/** * Sets the dataset. * * @param dataset the new dataset */ @Override public void setDataset(Instances dataset) { if(dataset instanceof InstancesHeader) { this.instanceHeader = (InstancesHeader) dataset; }else { this.instanceHeader = new InstancesHeader(dataset); } }
@Override public InstancesHeader getHeader() { return new InstancesHeader(this.instances); }
@Override public InstancesHeader getHeader() { return new InstancesHeader(this.toStream); }
@Override public InstancesHeader getHeader() { return new InstancesHeader(this.instances); }
@Override public InstancesHeader getHeader() { return new InstancesHeader(this.instances); }
public InstancesHeader getHeader() { return new InstancesHeader(this.filteredDataset); }
private ModelAggregatorProcessor(Builder builder){ this.dataset = builder.dataset; this.splitCriterion = builder.splitCriterion; this.splitConfidence = builder.splitConfidence; this.tieThreshold = builder.tieThreshold; this.gracePeriod = builder.gracePeriod; this.parallelismHint = builder.parallelismHint; this.timeOut = builder.timeOut; this.changeDetector = builder.changeDetector; InstancesHeader ih = new InstancesHeader(dataset); this.setModelContext(ih); }
private ModelAggregatorProcessor(Builder builder){ this.dataset = builder.dataset; this.splitCriterion = builder.splitCriterion; this.splitConfidence = builder.splitConfidence; this.tieThreshold = builder.tieThreshold; this.gracePeriod = builder.gracePeriod; this.parallelismHint = builder.parallelismHint; this.timeOut = builder.timeOut; this.changeDetector = builder.changeDetector; InstancesHeader ih = new InstancesHeader(dataset); this.setModelContext(ih); }
public SingleLabelInstance(int numAttributes) { this.instanceData = new DenseInstanceData(new double[numAttributes]); // m_AttValues = new double[numAttributes]; /* * for (int i = 0; i < m_AttValues.length; i++) { m_AttValues[i] = * Utils.missingValue(); } */ this.weight = 1; this.classData = new SingleClassInstanceData(); this.instanceInformation = new InstancesHeader(); }
protected void generateHeader() { // 2013/06/02: Noise label ArrayList<Attribute> attributes = new ArrayList<Attribute>(); for (int i = 0; i < this.numAttsOption.getValue(); i++) { attributes.add(new Attribute("att" + (i + 1))); } ArrayList<String> classLabels = new ArrayList<String>(); for (int i = 0; i < this.numClusterOption.getValue(); i++) { classLabels.add("class" + (i + 1)); } if (noiseLevelOption.getValue() > 0) classLabels.add("noise"); // The last label = "noise" attributes.add(new Attribute("class", classLabels)); streamHeader = new InstancesHeader(new Instances(getCLICreationString(InstanceStream.class), attributes, 0)); streamHeader.setClassIndex(streamHeader.numAttributes() - 1); }
protected void generateHeader() { // 2013/06/02: Noise label ArrayList<Attribute> attributes = new ArrayList<Attribute>(); for (int i = 0; i < this.numAttsOption.getValue(); i++) { attributes.add(new Attribute("att" + (i + 1))); } ArrayList<String> classLabels = new ArrayList<String>(); for (int i = 0; i < this.numClusterOption.getValue(); i++) { classLabels.add("class" + (i + 1)); } if (noiseLevelOption.getValue() > 0) classLabels.add("noise"); // The last label = "noise" attributes.add(new Attribute("class", classLabels)); streamHeader = new InstancesHeader(new Instances(getCLICreationString(InstanceStream.class), attributes, 0)); streamHeader.setClassIndex(streamHeader.numAttributes() - 1); }
protected void generateHeader() { // 2013/06/02: Noise label ArrayList<Attribute> attributes = new ArrayList<Attribute>(); for (int i = 0; i < this.numAttsOption.getValue(); i++) { attributes.add(new Attribute("att" + (i + 1))); } ArrayList<String> classLabels = new ArrayList<String>(); for (int i = 0; i < this.numClusterOption.getValue(); i++) { classLabels.add("class" + (i + 1)); } if (noiseLevelOption.getValue() > 0) classLabels.add("noise"); // The last label = "noise" attributes.add(new Attribute("class", classLabels)); streamHeader = new InstancesHeader(new Instances(getCLICreationString(InstanceStream.class), attributes, 0)); streamHeader.setClassIndex(streamHeader.numAttributes() - 1); }
@SuppressWarnings({ "rawtypes", "unchecked" }) protected void generateHeader() { FastVector attributes = new FastVector(); for (int i = 0; i < this.numAttsOption.getValue(); i++) { attributes.addElement(new Attribute("att" + (i + 1))); } FastVector classLabels = new FastVector(); for (int i = 0; i < this.numClassesOption.getValue(); i++) { classLabels.addElement("class" + (i + 1)); } attributes.addElement(new Attribute("class", classLabels)); this.streamHeader = new InstancesHeader(new Instances(getCLICreationString(InstanceStream.class), attributes, 0)); this.streamHeader.setClassIndex(this.streamHeader.numAttributes() - 1); }
@SuppressWarnings({ "rawtypes", "unchecked" }) protected void generateHeader() { FastVector attributes = new FastVector(); for (int i = 0; i < this.numAttsOption.getValue(); i++) { attributes.addElement(new Attribute("att" + (i + 1))); } FastVector classLabels = new FastVector(); for (int i = 0; i < this.numClassesOption.getValue(); i++) { classLabels.addElement("class" + (i + 1)); } attributes.addElement(new Attribute("class", classLabels)); this.streamHeader = new InstancesHeader(new Instances(getCLICreationString(InstanceStream.class), attributes, 0)); this.streamHeader.setClassIndex(this.streamHeader.numAttributes() - 1); }
protected void generateHeader() { FastVector attributes = new FastVector(); for (int i = 0; i < this.numAttsOption.getValue(); i++) { attributes.addElement(new Attribute("att" + (i + 1))); } FastVector classLabels = new FastVector(); for (int i = 0; i < this.numClassesOption.getValue(); i++) { classLabels.addElement("class" + (i + 1)); } attributes.addElement(new Attribute("class", classLabels)); this.streamHeader = new InstancesHeader(new Instances( getCLICreationString(InstanceStream.class), attributes, 0)); this.streamHeader.setClassIndex(this.streamHeader.numAttributes() - 1); }