public Regression(Element model,Instances dataDictionary,MiningSchema miningSchema) throws Exception {
  super(dataDictionary,miningSchema);
  int functionType=RegressionTable.REGRESSION;
  String fName=model.getAttribute("functionName");
  if (fName.equals("regression")) {
    functionType=RegressionTable.REGRESSION;
  }
 else   if (fName.equals("classification")) {
    functionType=RegressionTable.CLASSIFICATION;
  }
 else {
    throw new Exception("[PMML Regression] Function name not defined in pmml!");
  }
  String algName=model.getAttribute("algorithmName");
  if (algName != null && algName.length() > 0) {
    m_algorithmName=algName;
  }
  m_normalizationMethod=determineNormalization(model);
  setUpRegressionTables(model,functionType);
}

public Regression ( Element model , Instances dataDictionary , MiningSchema miningSchema ) throws Exception { super ( dataDictionary , miningSchema ) ; int functionType = RegressionTable . REGRESSION ; String fName = model . getAttribute ( "functionName" ) ; if ( fName . equals ( "regression" ) ) { functionType = RegressionTable . REGRESSION ; } else if ( fName . equals ( "classification" ) ) { functionType = RegressionTable . CLASSIFICATION ; } else { throw new Exception ( "[PMML Regression] Function name not defined in pmml!" ) ; } String algName = model . getAttribute ( "algorithmName" ) ; if ( algName != null && algName . length ( ) > 0 ) { m_algorithmName = algName ; } m_normalizationMethod = determineNormalization ( model ) ; setUpRegressionTables ( model , functionType ) ; }
constructs a new pmml regression .
