@@ -14,111 +14,111 @@ public class ExamplesTest
1414 public void BasicOperations ( )
1515 {
1616 tf . Graph ( ) . as_default ( ) ;
17- new BasicOperations ( ) { Enabled = true } . Train ( ) ;
17+ new BasicOperations ( ) { Enabled = true } . Run ( ) ;
1818 }
1919
2020 [ TestMethod ]
2121 public void HelloWorld ( )
2222 {
2323 tf . Graph ( ) . as_default ( ) ;
24- new HelloWorld ( ) { Enabled = true } . Train ( ) ;
24+ new HelloWorld ( ) { Enabled = true } . Run ( ) ;
2525 }
2626
2727 [ TestMethod ]
2828 public void ImageRecognition ( )
2929 {
3030 tf . Graph ( ) . as_default ( ) ;
31- new HelloWorld ( ) { Enabled = true } . Train ( ) ;
31+ new HelloWorld ( ) { Enabled = true } . Run ( ) ;
3232 }
3333
3434 [ Ignore ]
3535 [ TestMethod ]
3636 public void InceptionArchGoogLeNet ( )
3737 {
3838 tf . Graph ( ) . as_default ( ) ;
39- new InceptionArchGoogLeNet ( ) { Enabled = true } . Train ( ) ;
39+ new InceptionArchGoogLeNet ( ) { Enabled = true } . Run ( ) ;
4040 }
4141
4242 [ TestMethod ]
4343 public void KMeansClustering ( )
4444 {
4545 tf . Graph ( ) . as_default ( ) ;
46- new KMeansClustering ( ) { Enabled = true , IsImportingGraph = true , train_size = 500 , validation_size = 100 , test_size = 100 , batch_size = 100 } . Train ( ) ;
46+ new KMeansClustering ( ) { Enabled = true , IsImportingGraph = true , train_size = 500 , validation_size = 100 , test_size = 100 , batch_size = 100 } . Run ( ) ;
4747 }
4848
4949 [ TestMethod ]
5050 public void LinearRegression ( )
5151 {
5252 tf . Graph ( ) . as_default ( ) ;
53- new LinearRegression ( ) { Enabled = true } . Train ( ) ;
53+ new LinearRegression ( ) { Enabled = true } . Run ( ) ;
5454 }
5555
5656 [ TestMethod ]
5757 public void LogisticRegression ( )
5858 {
5959 tf . Graph ( ) . as_default ( ) ;
60- new LogisticRegression ( ) { Enabled = true , training_epochs = 10 , train_size = 500 , validation_size = 100 , test_size = 100 } . Train ( ) ;
60+ new LogisticRegression ( ) { Enabled = true , training_epochs = 10 , train_size = 500 , validation_size = 100 , test_size = 100 } . Run ( ) ;
6161 }
6262
6363 [ Ignore ]
6464 [ TestMethod ]
6565 public void NaiveBayesClassifier ( )
6666 {
6767 tf . Graph ( ) . as_default ( ) ;
68- new NaiveBayesClassifier ( ) { Enabled = false } . Train ( ) ;
68+ new NaiveBayesClassifier ( ) { Enabled = false } . Run ( ) ;
6969 }
7070
7171 [ Ignore ]
7272 [ TestMethod ]
7373 public void NamedEntityRecognition ( )
7474 {
7575 tf . Graph ( ) . as_default ( ) ;
76- new NamedEntityRecognition ( ) { Enabled = true } . Train ( ) ;
76+ new NamedEntityRecognition ( ) { Enabled = true } . Run ( ) ;
7777 }
7878
7979 [ TestMethod ]
8080 public void NearestNeighbor ( )
8181 {
8282 tf . Graph ( ) . as_default ( ) ;
83- new NearestNeighbor ( ) { Enabled = true , TrainSize = 500 , ValidationSize = 100 , TestSize = 100 } . Train ( ) ;
83+ new NearestNeighbor ( ) { Enabled = true , TrainSize = 500 , ValidationSize = 100 , TestSize = 100 } . Run ( ) ;
8484 }
8585
8686 [ Ignore ]
8787 [ TestMethod ]
8888 public void TextClassificationTrain ( )
8989 {
9090 tf . Graph ( ) . as_default ( ) ;
91- new TextClassificationTrain ( ) { Enabled = true , DataLimit = 100 } . Train ( ) ;
91+ new TextClassificationTrain ( ) { Enabled = true , DataLimit = 100 } . Run ( ) ;
9292 }
9393
9494 [ Ignore ]
9595 [ TestMethod ]
9696 public void TextClassificationWithMovieReviews ( )
9797 {
9898 tf . Graph ( ) . as_default ( ) ;
99- new BinaryTextClassification ( ) { Enabled = true } . Train ( ) ;
99+ new BinaryTextClassification ( ) { Enabled = true } . Run ( ) ;
100100 }
101101
102102 [ TestMethod ]
103103 public void NeuralNetXor ( )
104104 {
105105 tf . Graph ( ) . as_default ( ) ;
106- Assert . IsTrue ( new NeuralNetXor ( ) { Enabled = true , IsImportingGraph = false } . Train ( ) ) ;
106+ Assert . IsTrue ( new NeuralNetXor ( ) { Enabled = true , IsImportingGraph = false } . Run ( ) ) ;
107107 }
108108
109109 [ TestMethod ]
110110 public void NeuralNetXor_ImportedGraph ( )
111111 {
112112 tf . Graph ( ) . as_default ( ) ;
113- Assert . IsTrue ( new NeuralNetXor ( ) { Enabled = true , IsImportingGraph = true } . Train ( ) ) ;
113+ Assert . IsTrue ( new NeuralNetXor ( ) { Enabled = true , IsImportingGraph = true } . Run ( ) ) ;
114114 }
115115
116116
117117 [ TestMethod ]
118118 public void ObjectDetection ( )
119119 {
120120 tf . Graph ( ) . as_default ( ) ;
121- Assert . IsTrue ( new ObjectDetection ( ) { Enabled = true , IsImportingGraph = true } . Train ( ) ) ;
121+ Assert . IsTrue ( new ObjectDetection ( ) { Enabled = true , IsImportingGraph = true } . Run ( ) ) ;
122122 }
123123 }
124124}
0 commit comments