From 97702316f866d8b63e7b2e695b7e28ac84dbe319 Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Wed, 27 Mar 2019 17:28:01 -0500 Subject: [PATCH] implementing NB classifier --- test/TensorFlowNET.Examples/NaiveBayesClassifier.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/TensorFlowNET.Examples/NaiveBayesClassifier.cs b/test/TensorFlowNET.Examples/NaiveBayesClassifier.cs index d3cca828..d0a841e4 100644 --- a/test/TensorFlowNET.Examples/NaiveBayesClassifier.cs +++ b/test/TensorFlowNET.Examples/NaiveBayesClassifier.cs @@ -13,7 +13,7 @@ namespace TensorFlowNET.Examples public class NaiveBayesClassifier : Python, IExample { public int Priority => 100; - public bool Enabled => false; + public bool Enabled => true; public string Name => "Naive Bayes Classifier"; public Normal dist { get; set; } @@ -89,6 +89,8 @@ namespace TensorFlowNET.Examples var samples = np.vstack(xx.ravel(), yy.ravel()); var Z = s.run(predict(samples)); + + return true; } public void fit(NDArray X, NDArray y)