@Test public void getOpType(){ FieldName name = FieldName.create("y"); DataField dataField = new DataField(name, OpType.CONTINUOUS, DataType.DOUBLE); MiningField miningField = new MiningField(name) .setOpType(OpType.CATEGORICAL); Target target = new Target() .setField(name) .setOpType(OpType.CONTINUOUS); TargetField targetField = new TargetField(dataField, null, null); assertEquals(OpType.CONTINUOUS, targetField.getOpType()); targetField = new TargetField(dataField, miningField, null); assertEquals(OpType.CATEGORICAL, targetField.getOpType()); targetField = new TargetField(dataField, miningField, target); assertEquals(OpType.CONTINUOUS, targetField.getOpType()); }
@Override public OpType getOpType(){ return FieldUtil.getOpType(getField(), getMiningField(), getTarget()); }
TargetField extends ResultField { @Override public OpType getOpType(){ return FieldUtil.getOpType(getField(), getMiningField(), getTarget()); } }
TargetField extends ResultField { @Override public OpType getOpType(){ return FieldUtil.getOpType(getField(), getMiningField(), getTarget()); } TargetField();  TargetField(DataField dataField, MiningField miningField, Target target); }
TargetField extends ResultField { @Override public OpType getOpType(){ return FieldUtil.getOpType(getField(), getMiningField(), getTarget()); } TargetField();  TargetField(DataField dataField, MiningField miningField, Target target); @Override FieldName getFieldName(); @Override OpType getOpType(); List<Object> getCategories(); boolean isSynthetic(); @Override DataField getField(); MiningField getMiningField(); Target getTarget(); }
TargetField extends ResultField { @Override public OpType getOpType(){ return FieldUtil.getOpType(getField(), getMiningField(), getTarget()); } TargetField();  TargetField(DataField dataField, MiningField miningField, Target target); @Override FieldName getFieldName(); @Override OpType getOpType(); List<Object> getCategories(); boolean isSynthetic(); @Override DataField getField(); MiningField getMiningField(); Target getTarget();  }