本文整理汇总了Python中mvpa2.base.dochelpers._str函数的典型用法代码示例。如果您正苦于以下问题:Python _str函数的具体用法?Python _str怎么用?Python _str使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_str函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __str__
def __str__(self):
samplesstr = 'x'.join(["%s" % x for x in self.shape])
samplesstr += '@%s' % self.samples.dtype
cols = [str(col).replace(col.__class__.__name__, label)
for col, label in [(self.sa, 'sa'),
(self.fa, 'fa'),
(self.a, 'a')] if len(col)]
# include only collections that have content
return _str(self, samplesstr, *cols)
示例2: __str__
def __str__(self):
return _str(self, fx=self.__fx.__name__)
示例3: __str__
def __str__(self):
return _str(self, str(self._amount), n=self._attr, count=self.count,
apply_selection=self._apply_selection)
示例4: __str__
def __str__(self):
# with slicearg it can quickly get very unreadable
#return _str(self, str(self._slicearg))
return _str(self)
示例5: __str__
def __str__(self):
return _str(self, ord=self.params.polyord)
示例6: __str__
def __str__(self):
return _str(self, '-'.join([str(n) for n in self]))
示例8: __str__
def __str__(self):
return _str(self, ', '.join("%s=%s" % x for x in self._includes))
示例9: __str__
def __str__(self):
return _str(self, chunks_attr=self.__chunks_attr)
示例10: __str__
def __str__(self, *args, **kwargs):
return _str(self, *args, **kwargs)
示例11: __str__
def __str__(self):
return _str(self, str(self.nruns))
示例12: __str__
def __str__(self):
return _str(self, ord=self.__polyord)
示例13: __str__
def __str__(self):
return _str(self, ','.join([str(k) for k in sorted(self.keys())]))
示例14: __str__
def __str__(self, *args, **kwargs):
if __debug__ and 'CLF_' in debug.active:
return "%s / %s" % (repr(self), super(Classifier, self).__str__())
else:
return _str(self, *args, **kwargs)
示例15: __str__
def __str__(self):
return _str(self, self._pattr, n=self.count, limit=self._limit,
assure=self._assure_permute)