Closed erickpeirson closed 4 years ago
The modules at services/ should be encapsulated within a module services/classifier/ that exposes a function:
services/
services/classifier/
classify(content: bytes) -> List[ClassifierPrediction]
Where ClassifierPrediction is the domain class from https://github.com/arXiv/arxiv-classifier/issues/3
ClassifierPrediction
Note that in order to generate the log-probability of the prediction, we may need to introduce a new method on this class that uses the predict_log_proba method of the underlying multinomial naive Bayes classifier
predict_log_proba
The modules at
services/
should be encapsulated within a moduleservices/classifier/
that exposes a function:classify(content: bytes) -> List[ClassifierPrediction]
Where
ClassifierPrediction
is the domain class from https://github.com/arXiv/arxiv-classifier/issues/3Note that in order to generate the log-probability of the prediction, we may need to introduce a new method on this class that uses the
predict_log_proba
method of the underlying multinomial naive Bayes classifier