MCPcopy Create free account
hub / github.com/Persper/code-analytics / transform

Method transform

persper/classifier.py:138–143  ·  view source on GitHub ↗
(self, counts)

Source from the content-addressed store, hash-verified

136 return self
137
138 def transform(self, counts):
139 tfs = self.tf_trans.transform(counts)
140 if self.use_bns:
141 return normalize(tfbns(tfs, self.bns_values))
142 else:
143 return tfs
144
145# Extract the title/descrption/comments/priority/type for jira issues and 'text'/'frc' for fs patches
146class FeatureLabelExtractor(BaseEstimator, TransformerMixin):

Callers

nothing calls this directly

Calls 3

normalizeFunction · 0.85
tfbnsFunction · 0.85
transformMethod · 0.45

Tested by

no test coverage detected