forked from SciSharp/TensorFlow.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIExample.cs
More file actions
45 lines (36 loc) · 995 Bytes
/
IExample.cs
File metadata and controls
45 lines (36 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using System.Text;
using Tensorflow;
namespace TensorFlowNET.Examples
{
/// <summary>
/// Interface of Example project
/// All example should implement IExample so the entry program will find it.
/// </summary>
public interface IExample
{
/// <summary>
/// True to run example
/// </summary>
bool Enabled { get; set; }
/// <summary>
/// Set true to import the computation graph instead of building it.
/// </summary>
bool IsImportingGraph { get; set; }
string Name { get; }
bool Run();
/// <summary>
/// Build dataflow graph, train and predict
/// </summary>
/// <returns></returns>
bool Train();
bool Predict();
Graph ImportGraph();
Graph BuildGraph();
/// <summary>
/// Prepare dataset
/// </summary>
void PrepareData();
}
}