Skip to content

Commit

Permalink
Added String method to meet Classifier interface
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinJudd committed Jul 17, 2019
1 parent bffc4a5 commit fadd963
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions naive/bernoulli_nb.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ type BernoulliNBClassifier struct {
fitOn base.FixedDataGrid
}

func (nb *BernoulliNBClassifier) String() string {
return "BernoulliNBBClassifier"
}

func (nb *BernoulliNBClassifier) GetMetadata() base.ClassifierMetadataV1 {
return base.ClassifierMetadataV1{
FormatVersion: 1,
Expand Down

0 comments on commit fadd963

Please sign in to comment.