You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/csharp/end-to-end-apps/AnomalyDetection-Sales/SpikeDetectionE2EApp/SpikeDetection.ModelTrainer/Program.cs
+23-23
Original file line number
Diff line number
Diff line change
@@ -22,21 +22,21 @@ internal static class Program
22
22
privatestaticMLContextmlContext;
23
23
staticvoidMain()
24
24
{
25
-
// Create MLContext to be shared across the model creation workflow objects
25
+
// Create MLContext to be shared across the model creation workflow objects.
26
26
mlContext=newMLContext();
27
27
28
-
// Assign the Number of records in dataset file to constant variable
28
+
// Assign the Number of records in dataset file to constant variable.
29
29
constintsize=36;
30
30
31
-
//Load the data into IDataView.
32
-
//This dataset is used for detecting spikes or changes not for training.
31
+
//Load the data into IDataView.
32
+
//This dataset is used for detecting spikes or changes not for training.
Copy file name to clipboardExpand all lines: samples/csharp/end-to-end-apps/AnomalyDetection-Sales/SpikeDetectionE2EApp/SpikeDetection.WinForms/Form1.cs
+29-29
Original file line number
Diff line number
Diff line change
@@ -29,43 +29,43 @@ public Form1()
29
29
InitializeComponent();
30
30
}
31
31
32
-
// Find file button
32
+
// Find file button.
33
33
privatevoidbutton1_Click(objectsender,EventArgse)
34
34
{
35
-
// Open File Explorer
35
+
// Open File Explorer.
36
36
DialogResultresult=openFileExplorer.ShowDialog();
37
37
38
-
// Set text in file path textbox to file path from file explorer
38
+
// Set text in file path textbox to file path from file explorer.
39
39
if(result==DialogResult.OK)
40
40
{
41
41
filePathTextbox.Text=openFileExplorer.FileName;
42
42
}
43
43
}
44
44
45
-
// Go button
45
+
// Go button.
46
46
privatevoidbutton2_Click(objectsender,EventArgse)
47
47
{
48
-
// Set filepath from text from filepath textbox
48
+
// Set filepath from text from filepath textbox.
49
49
filePath=filePathTextbox.Text;
50
50
51
-
// Checkk if file exists
51
+
// Check if file exists.
52
52
if(File.Exists(filePath))
53
53
{
54
54
dict=newDictionary<int,Tuple<string,string>>();
55
55
56
56
if(filePath!="")
57
57
{
58
-
// Reset text in anomaly textbox
58
+
// Reset text in anomaly textbox.
59
59
anomalyText.Text="";
60
60
61
-
// Display preview of dataset and graph
61
+
// Display preview of dataset and graph.
62
62
displayDataTableAndGraph();
63
63
64
-
// Load a trained model to detect anomalies and then mark them on the graph
64
+
// Load a trained model to detect anomalies and then mark them on the graph.
65
65
detectAnomalies();
66
66
67
67
}
68
-
// If file path textbox is empty, prompt user to input file path
68
+
// If file path textbox is empty, prompt user to input file path.
Copy file name to clipboardExpand all lines: samples/csharp/end-to-end-apps/DeepLearning_ImageClassification_TensorFlow/TensorFlowImageClassification/Controllers/ImageClassificationController.cs
+16-16
Original file line number
Diff line number
Diff line change
@@ -25,13 +25,13 @@ public class ImageClassificationController : ControllerBase
25
25
26
26
publicImageClassificationController(PredictionEnginePool<ImageInputData,ImageLabelPredictions>predictionEnginePool,IConfigurationconfiguration,ILogger<ImageClassificationController>logger)//When using DI/IoC
0 commit comments