You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

IExample.cs 995 B

6 years ago
6 years ago
6 years ago
6 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using Tensorflow;
  5. namespace TensorFlowNET.Examples
  6. {
  7. /// <summary>
  8. /// Interface of Example project
  9. /// All example should implement IExample so the entry program will find it.
  10. /// </summary>
  11. public interface IExample
  12. {
  13. /// <summary>
  14. /// True to run example
  15. /// </summary>
  16. bool Enabled { get; set; }
  17. /// <summary>
  18. /// Set true to import the computation graph instead of building it.
  19. /// </summary>
  20. bool IsImportingGraph { get; set; }
  21. string Name { get; }
  22. bool Run();
  23. /// <summary>
  24. /// Build dataflow graph, train and predict
  25. /// </summary>
  26. /// <returns></returns>
  27. bool Train();
  28. bool Predict();
  29. Graph ImportGraph();
  30. Graph BuildGraph();
  31. /// <summary>
  32. /// Prepare dataset
  33. /// </summary>
  34. void PrepareData();
  35. }
  36. }