Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/m/g/mgtaxa-HEAD/MGT/FeatIOTxt.py   mgtaxa(Download)
    def write(self,label,feature,id=None):
        kmersx.SvmSparseFeatureWriterTxt.write(self,int(label),feature['val'],feature['ind'])
        if id is None:
            id = label
        self.outId.write("%s\n" % id)