/** * Sets the format of the input instances. * * @param instanceInfo an Instances object containing the input instance * structure (any instances contained in the object are ignored - * only the structure is required). * @return true if the outputFormat can be collected immediately * @throws UnsupportedAttributeTypeException if the specified attribute is not * nominal. */ @Override public boolean setInputFormat(Instances instanceInfo) throws Exception { super.setInputFormat(instanceInfo); m_AttIndex.setUpper(instanceInfo.numAttributes() - 1); if (!isNominal()) { throw new UnsupportedAttributeTypeException( "Can only handle nominal attributes."); } m_Values = null; return false; }
/** * Sets the format of the input instances. * * @param instanceInfo an Instances object containing the input instance * structure (any instances contained in the object are ignored - * only the structure is required). * @return true if the outputFormat can be collected immediately * @throws UnsupportedAttributeTypeException if the specified attribute is not * nominal. */ @Override public boolean setInputFormat(Instances instanceInfo) throws Exception { super.setInputFormat(instanceInfo); m_AttIndex.setUpper(instanceInfo.numAttributes() - 1); if (!isNominal()) { throw new UnsupportedAttributeTypeException( "Can only handle nominal attributes."); } m_Values = null; return false; }