using System; using System.Collections.Generic; using System.Text; using Tensorflow; namespace TensorFlowNET.Examples { /// /// Interface of Example project /// All example should implement IExample so the entry program will find it. /// public interface IExample { /// /// True to run example /// bool Enabled { get; set; } /// /// Set true to import the computation graph instead of building it. /// bool IsImportingGraph { get; set; } string Name { get; } bool Run(); /// /// Build dataflow graph, train and predict /// /// bool Train(); bool Predict(); Graph ImportGraph(); Graph BuildGraph(); /// /// Prepare dataset /// void PrepareData(); } }