rdkit.ML.ModelPackage.PackageUtils

Package rdkit :: Package ML :: Package ModelPackage :: Module PackageUtils |
[hide private]
[frames] | no frames]

# Module PackageUtils

source code

Functions | [hide private]
_ConvertModelPerformance(perf, modelPerf) | source code
PackageToXml(pkg, summary="N/A", trainingDataId='N/A', dataPerformance=[], recommendedThreshold=None, classDescriptions=[], modelType=None, modelOrganism=None) generates XML for a package that follows the RD_Model.dtd | source code

Imports: ElementTree, Element, SubElement, time

Function Details | [hide private]

### PackageToXml(pkg, summary="N/A", trainingDataId='N/A', dataPerformance=[], recommendedThreshold=None, classDescriptions=[], modelType=None, modelOrganism=None) | source code
    generates XML for a package that follows the RD_Model.dtd

    If provided, dataPerformance should be a sequence of 2-tuples:
      ( note, performance )
    where performance is of the form:
      ( accuracy, avgCorrectConf, avgIncorrectConf, confusionMatrix, thresh, avgSkipConf, nSkipped )
      the last four elements are optional