Class PMML4UnitImpl

    • Constructor Detail

      • PMML4UnitImpl

        public PMML4UnitImpl​(org.dmg.pmml.pmml_4_2.descr.PMML rawPmml)
      • PMML4UnitImpl

        public PMML4UnitImpl​(String pmmlSourcePath)
    • Method Detail

      • getRawPMML

        public org.dmg.pmml.pmml_4_2.descr.PMML getRawPMML()
        Specified by:
        getRawPMML in interface PMML4Unit
      • getMiningFieldsForModel

        public List<org.dmg.pmml.pmml_4_2.descr.MiningField> getMiningFieldsForModel​(String modelId)
        Retrieves a List of the raw MiningField objects for a given model
        Parameters:
        modelId - The identifier of the model for which the list of MiningField objects is retrieved
        Returns:
        The list of MiningField objects belonging to the identified model
      • getMiningFields

        public Map<String,​List<org.dmg.pmml.pmml_4_2.descr.MiningField>> getMiningFields()
        Retrieves a Map with entries that consist of key -> a model identifier value -> the List of raw MiningField objects belonging to the model referenced by the key
        Returns:
        The Map of model identifiers and their corresponding list of raw MiningField objects
      • getRootModels

        public Map<String,​PMML4Model> getRootModels()
        Retrieves a Map with entries that consist of key -> a model identifier value -> the PMML4Model object that the key refers to where the PMML4Model does not indicate a parent model (i.e. the model is not a child model)
        Specified by:
        getRootModels in interface PMML4Unit
        Returns:
        The Map of model identifiers and their corresponding PMML4Model objects
      • getChildModels

        public Map<String,​PMML4Model> getChildModels​(String parentModelId)
        Retrieves a Map whose entries consist of key -> a model identifier value -> the PMML4Model object that the key refers to where the PMML4Model indicates that it
        Parameters:
        parentModelId -
        Returns:
      • getModelPackageNames

        public Map<String,​String> getModelPackageNames()