Browse Source

implementing NB classifier

tags/v0.9
Bo Peng 6 years ago
parent
commit
97702316f8
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      test/TensorFlowNET.Examples/NaiveBayesClassifier.cs

+ 3
- 1
test/TensorFlowNET.Examples/NaiveBayesClassifier.cs View File

@@ -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)


Loading…
Cancel
Save