Skip to content

Commit

Permalink
docs: Removed some comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
strfx committed Aug 31, 2021
1 parent 2f38aee commit 172dd04
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/clava/generators/logregtf.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
"""
Generate signatures using a Logistic Regression trained on Term Frequencies.
"""
from pathlib import Path
from typing import List
from clava.models import Sample, Instruction

from nltk import ngrams
from joblib import load
from nltk import ngrams

from clava.signatures import Signature, Sample

from clava.models import Instruction, Sample

# TODO: Parent object: Classifier; SignatureGenerator; GenerationStrategy;:q

class LogRegTF(object):
"""
Expand All @@ -30,8 +26,6 @@ def __init__(self, logit, vectorizer, n):
self.n = n

def generate(self, sample: Sample, topk: int) -> List[Instruction]:
"""
"""
ranked = self._rank_instructions(sample.code)
return ranked[:topk]

Expand Down

0 comments on commit 172dd04

Please sign in to comment.