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
@@ -46,6 +49,12 @@ public ITransformer LoadModelFromZipFile(string modelPath)
46
49
47
50
returnTrainedModel;
48
51
}
52
+
53
+
privatevoidCheckTrainedModelIsLoaded()
54
+
{
55
+
if(TrainedModel==null)
56
+
thrownewInvalidOperationException("Need to have a model before scoring. Call LoadModelFromZipFile(modelPath) first or provided a model through the constructor.");
Copy file name to clipboardExpand all lines: samples/csharp/end-to-end-apps/MulticlassClassification-GitHubLabeler/GitHubLabeler/GitHubLabelerConsoleApp/DataStructures/GitHubIssue.cs
+2-1
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,9 @@
2
2
3
3
#pragma warning disable 649// We don't care about unsused fields here, because they are mapped with the input file.
4
4
5
-
namespaceGitHubLabeler
5
+
namespaceGitHubLabeler.DataStructures
6
6
{
7
+
//The only purpose of this class is for peek data after transforming it with the pipeline
Copy file name to clipboardExpand all lines: samples/csharp/end-to-end-apps/MulticlassClassification-GitHubLabeler/GitHubLabeler/GitHubLabelerConsoleApp/DataStructures/GitHubIssuePrediction.cs
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
#pragma warning disable 649// We don't care about unsused fields here, because they are mapped with the input file.
Copy file name to clipboardExpand all lines: samples/csharp/end-to-end-apps/MulticlassClassification-GitHubLabeler/GitHubLabeler/GitHubLabelerConsoleApp/Labeler.cs
+29-21
Original file line number
Diff line number
Diff line change
@@ -7,47 +7,56 @@
7
7
usingOctokit;
8
8
usingSystem.IO;
9
9
usingMicrosoft.ML.Runtime.Data;
10
+
usingGitHubLabeler.DataStructures;
11
+
usingCommon;
10
12
11
13
namespaceGitHubLabeler
12
14
{
15
+
//This "Labeler" class could be used in a different End-User application (Web app, other console app, desktop app, etc.)
0 commit comments