diff --git a/Classification/MultinomialNaiveBayes/src/main/java/org/tribuo/classification/mnb/MultinomialNaiveBayesModel.java b/Classification/MultinomialNaiveBayes/src/main/java/org/tribuo/classification/mnb/MultinomialNaiveBayesModel.java index 5e8192da8..2e7cfde27 100644 --- a/Classification/MultinomialNaiveBayes/src/main/java/org/tribuo/classification/mnb/MultinomialNaiveBayesModel.java +++ b/Classification/MultinomialNaiveBayes/src/main/java/org/tribuo/classification/mnb/MultinomialNaiveBayesModel.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,8 @@ package org.tribuo.classification.mnb; +import com.google.protobuf.Any; +import com.google.protobuf.InvalidProtocolBufferException; import com.oracle.labs.mlrg.olcut.util.Pair; import org.tribuo.Example; import org.tribuo.Excuse; @@ -25,12 +27,16 @@ import org.tribuo.Model; import org.tribuo.Prediction; import org.tribuo.classification.Label; +import org.tribuo.classification.mnb.protos.MultinomialNaiveBayesProto; +import org.tribuo.impl.ModelDataCarrier; import org.tribuo.math.la.DenseSparseMatrix; import org.tribuo.math.la.DenseVector; import org.tribuo.math.la.SparseVector; +import org.tribuo.math.la.Tensor; import org.tribuo.math.la.VectorTuple; import org.tribuo.math.util.ExpNormalizer; import org.tribuo.math.util.VectorNormalizer; +import org.tribuo.protos.core.ModelProto; import org.tribuo.provenance.ModelProvenance; import java.util.ArrayList; @@ -56,6 +62,11 @@ public class MultinomialNaiveBayesModel extends Model