(self)
return summary
Returns a string containing basic summary information
        of this multi-order model instance.
Returns a string containing basic summary information
        of this multi-order model instance.
Returns a string containing basic summary information of this multi - order model instance .
def summary(self):
        """
        Returns a string containing basic summary information
        of this multi-order model instance.
        """
        summary = 'Multi-order model (max. order = ' + str(self.maxOrder) + ', DoF (paths/ngrams) = ' + str(self.getDegreesOfFreedom(assumption='paths')) + '/' + str(self.getDegreesOfFreedom(assumption='ngrams')) + ')\n'
        summary += '===========================================================================\n'
        for k in range(self.maxOrder+1):
            summary += 'Layer k = ' + str(k) + '\t' + str(self.layers[k].vcount()) + ' nodes, ' + str(self.layers[k].ecount()) + ' links, ' + str(self.layers[k].totalEdgeWeight().sum()) + ' paths, DoF (paths/ngrams) = ' + str(int(self.layers[k].getDoF('paths'))) + '/' + str(int(self.layers[k].getDoF('ngrams'))) + '\n'
        return summary
def summary ( self ) : summary = 'Multi-order model (max. order = ' + str ( self . maxOrder ) + ', DoF (paths/ngrams) = ' + str ( self . getDegreesOfFreedom ( assumption = 'paths' ) ) + '/' + str ( self . getDegreesOfFreedom ( assumption = 'ngrams' ) ) + ')\n' summary += '===========================================================================\n' for k in range ( self . maxOrder + 1 ) : summary += 'Layer k = ' + str ( k ) + '\t' + str ( self . layers [ k ] . vcount ( ) ) + ' nodes, ' + str ( self . layers [ k ] . ecount ( ) ) + ' links, ' + str ( self . layers [ k ] . totalEdgeWeight ( ) . sum ( ) ) + ' paths, DoF (paths/ngrams) = ' + str ( int ( self . layers [ k ] . getDoF ( 'paths' ) ) ) + '/' + str ( int ( self . layers [ k ] . getDoF ( 'ngrams' ) ) ) + '\n' return summary