Skip to content

Commit 683918a

Browse files
Refactoring CreditCardFraudDetection project names, namespaces, ML Task.
1 parent d097a49 commit 683918a

File tree

17 files changed

+98
-35
lines changed

17 files changed

+98
-35
lines changed

.gitattributes

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
using AnomalyDetection.Common.DataModels;
1+
using CreditCardFraudDetection.Common.DataModels;
22
using Microsoft.ML.Runtime.Api;
33
using Microsoft.ML.Runtime.Data;
44
using System;
55
using System.IO;
66
using System.IO.Compression;
77
using System.Linq;
88

9-
namespace AnomalyDetection.Common
9+
namespace CreditCardFraudDetection.Common
1010
{
1111
public static class ConsoleHelpers
1212
{
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.Collections.Generic;
44
using static Microsoft.ML.Runtime.Data.RoleMappedSchema;
55

6-
namespace AnomalyDetection.Common.DataModels
6+
namespace CreditCardFraudDetection.Common.DataModels
77
{
88

99
public interface IModelEntity {

samples/csharp/getting-started/AnomalyDetection_CreditCardFraudDetection/AnomalyDetection.Common/Extensions.cs renamed to samples/csharp/getting-started/BinaryClassification_CreditCardFraudDetection/CreditCardFraudDetection.Common/Extensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Collections.Generic;
55
using System.IO;
66

7-
namespace AnomalyDetection.Common
7+
namespace CreditCardFraudDetection.Common
88
{
99
public static class ConsoleExtensions
1010
{
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
</ItemGroup>
1717

1818
<ItemGroup>
19-
<ProjectReference Include="..\AnomalyDetection.Common\AnomalyDetection.Common.csproj" />
19+
<Folder Include="assets\input\" />
20+
<Folder Include="assets\output\" />
2021
</ItemGroup>
2122

2223
<ItemGroup>
23-
<Folder Include="assets\input\" />
24-
<Folder Include="assets\output\" />
24+
<ProjectReference Include="..\CreditCardFraudDetection.Common\CreditCardFraudDetection.Common.csproj" />
2525
</ItemGroup>
2626

2727
</Project>
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
using AnomalyDetection.Common;
2-
using AnomalyDetection.Common.DataModels;
1+
using CreditCardFraudDetection.Common;
2+
using CreditCardFraudDetection.Common.DataModels;
33
using Microsoft.ML.Core.Data;
44
using Microsoft.ML.Runtime.Api;
55
using Microsoft.ML.Runtime.Data;
66
using Microsoft.ML.Runtime.Data.IO;
77
using System;
88
using System.Linq;
99

10-
namespace AnomalyDetection.Predictor
10+
namespace CreditCardFraudDetection.Predictor
1111
{
1212
public class ModelsEvaluator
1313
{

samples/csharp/getting-started/AnomalyDetection_CreditCardFraudDetection/AnomalyDetection.Predictor/Program.cs renamed to samples/csharp/getting-started/BinaryClassification_CreditCardFraudDetection/CreditCardFraudDetection.Predictor/Program.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
using AnomalyDetection.Common;
1+
using CreditCardFraudDetection.Common;
22
using System.IO;
33

4-
namespace AnomalyDetection.Predictor
4+
namespace CreditCardFraudDetection.Predictor
55
{
66
class Program
77
{
88
static void Main(string[] args)
99
{
1010
var assetsPath = ConsoleHelpers.GetAssetsPath(@"..\..\..\assets");
11-
var trainOutput = ConsoleHelpers.GetAssetsPath(@"..\..\..\..\AnomalyDetection.Train\assets\output");
11+
var trainOutput = ConsoleHelpers.GetAssetsPath(@"..\..\..\..\CreditCardFraudDetection.Trainer\assets\output");
1212

1313

1414
if (!File.Exists(Path.Combine(trainOutput, "testData.idv")) ||
+2-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
</ItemGroup>
1616

1717
<ItemGroup>
18-
<ProjectReference Include="..\AnomalyDetection.Common\AnomalyDetection.Common.csproj" />
18+
<Folder Include="assets\output\" />
1919
</ItemGroup>
2020

2121
<ItemGroup>
22-
<Folder Include="assets\output\" />
22+
<ProjectReference Include="..\CreditCardFraudDetection.Common\CreditCardFraudDetection.Common.csproj" />
2323
</ItemGroup>
2424

2525
</Project>

samples/csharp/getting-started/AnomalyDetection_CreditCardFraudDetection/AnomalyDetection.Train/ModelBuilder.cs renamed to samples/csharp/getting-started/BinaryClassification_CreditCardFraudDetection/CreditCardFraudDetection.Trainer/ModelBuilder.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using AnomalyDetection.Common;
2-
using AnomalyDetection.Common.DataModels;
1+
using CreditCardFraudDetection.Common;
2+
using CreditCardFraudDetection.Common.DataModels;
33

44
using Microsoft.ML;
55
using Microsoft.ML.Runtime.Data;
@@ -11,7 +11,7 @@
1111
using System.IO;
1212
using System.Linq;
1313

14-
namespace AnomalyDetection.Train
14+
namespace CreditCardFraudDetection.Trainer
1515
{
1616
public class ModelBuilder
1717
{

samples/csharp/getting-started/AnomalyDetection_CreditCardFraudDetection/AnomalyDetection.Train/Program.cs renamed to samples/csharp/getting-started/BinaryClassification_CreditCardFraudDetection/CreditCardFraudDetection.Trainer/Program.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
using AnomalyDetection.Common;
1+
using CreditCardFraudDetection.Common;
22
using Microsoft.ML;
33
using Microsoft.ML.Runtime.Data;
44
using Microsoft.ML.Trainers;
55
using System.Linq;
66
using System.IO;
77
using Microsoft.ML.Runtime.Data.IO;
88

9-
namespace AnomalyDetection.Train
9+
namespace CreditCardFraudDetection.Trainer
1010
{
1111
class Program
1212
{

samples/csharp/getting-started/AnomalyDetection_CreditCardFraudDetection/CreditCardFraudDetection.sln renamed to samples/csharp/getting-started/BinaryClassification_CreditCardFraudDetection/CreditCardFraudDetection.sln

+15-15
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
44
VisualStudioVersion = 15.0.26124.0
55
MinimumVisualStudioVersion = 15.0.26124.0
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AnomalyDetection.Train", "AnomalyDetection.Train\AnomalyDetection.Train.csproj", "{F4BF296A-2072-4A89-A865-9FDE8B64DBF2}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CreditCardFraudDetection.Predictor", "CreditCardFraudDetection.Predictor\CreditCardFraudDetection.Predictor.csproj", "{01468C97-0D13-4656-B809-0E80F33EDF7D}"
77
EndProject
8-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AnomalyDetection.Predictor", "AnomalyDetection.Predictor\AnomalyDetection.Predictor.csproj", "{01468C97-0D13-4656-B809-0E80F33EDF7D}"
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CreditCardFraudDetection.Common", "CreditCardFraudDetection.Common\CreditCardFraudDetection.Common.csproj", "{61F7A724-817F-4ED1-8805-5467FDCFA10A}"
99
EndProject
10-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AnomalyDetection.Common", "AnomalyDetection.Common\AnomalyDetection.Common.csproj", "{61F7A724-817F-4ED1-8805-5467FDCFA10A}"
10+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CreditCardFraudDetection.Trainer", "CreditCardFraudDetection.Trainer\CreditCardFraudDetection.Trainer.csproj", "{2618D8DE-8530-4769-9190-D345D2B18311}"
1111
EndProject
1212
Global
1313
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -19,18 +19,6 @@ Global
1919
Release|x86 = Release|x86
2020
EndGlobalSection
2121
GlobalSection(ProjectConfigurationPlatforms) = postSolution
22-
{F4BF296A-2072-4A89-A865-9FDE8B64DBF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23-
{F4BF296A-2072-4A89-A865-9FDE8B64DBF2}.Debug|Any CPU.Build.0 = Debug|Any CPU
24-
{F4BF296A-2072-4A89-A865-9FDE8B64DBF2}.Debug|x64.ActiveCfg = Debug|Any CPU
25-
{F4BF296A-2072-4A89-A865-9FDE8B64DBF2}.Debug|x64.Build.0 = Debug|Any CPU
26-
{F4BF296A-2072-4A89-A865-9FDE8B64DBF2}.Debug|x86.ActiveCfg = Debug|Any CPU
27-
{F4BF296A-2072-4A89-A865-9FDE8B64DBF2}.Debug|x86.Build.0 = Debug|Any CPU
28-
{F4BF296A-2072-4A89-A865-9FDE8B64DBF2}.Release|Any CPU.ActiveCfg = Release|Any CPU
29-
{F4BF296A-2072-4A89-A865-9FDE8B64DBF2}.Release|Any CPU.Build.0 = Release|Any CPU
30-
{F4BF296A-2072-4A89-A865-9FDE8B64DBF2}.Release|x64.ActiveCfg = Release|Any CPU
31-
{F4BF296A-2072-4A89-A865-9FDE8B64DBF2}.Release|x64.Build.0 = Release|Any CPU
32-
{F4BF296A-2072-4A89-A865-9FDE8B64DBF2}.Release|x86.ActiveCfg = Release|Any CPU
33-
{F4BF296A-2072-4A89-A865-9FDE8B64DBF2}.Release|x86.Build.0 = Release|Any CPU
3422
{01468C97-0D13-4656-B809-0E80F33EDF7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
3523
{01468C97-0D13-4656-B809-0E80F33EDF7D}.Debug|Any CPU.Build.0 = Debug|Any CPU
3624
{01468C97-0D13-4656-B809-0E80F33EDF7D}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -55,6 +43,18 @@ Global
5543
{61F7A724-817F-4ED1-8805-5467FDCFA10A}.Release|x64.Build.0 = Release|Any CPU
5644
{61F7A724-817F-4ED1-8805-5467FDCFA10A}.Release|x86.ActiveCfg = Release|Any CPU
5745
{61F7A724-817F-4ED1-8805-5467FDCFA10A}.Release|x86.Build.0 = Release|Any CPU
46+
{2618D8DE-8530-4769-9190-D345D2B18311}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
47+
{2618D8DE-8530-4769-9190-D345D2B18311}.Debug|Any CPU.Build.0 = Debug|Any CPU
48+
{2618D8DE-8530-4769-9190-D345D2B18311}.Debug|x64.ActiveCfg = Debug|Any CPU
49+
{2618D8DE-8530-4769-9190-D345D2B18311}.Debug|x64.Build.0 = Debug|Any CPU
50+
{2618D8DE-8530-4769-9190-D345D2B18311}.Debug|x86.ActiveCfg = Debug|Any CPU
51+
{2618D8DE-8530-4769-9190-D345D2B18311}.Debug|x86.Build.0 = Debug|Any CPU
52+
{2618D8DE-8530-4769-9190-D345D2B18311}.Release|Any CPU.ActiveCfg = Release|Any CPU
53+
{2618D8DE-8530-4769-9190-D345D2B18311}.Release|Any CPU.Build.0 = Release|Any CPU
54+
{2618D8DE-8530-4769-9190-D345D2B18311}.Release|x64.ActiveCfg = Release|Any CPU
55+
{2618D8DE-8530-4769-9190-D345D2B18311}.Release|x64.Build.0 = Release|Any CPU
56+
{2618D8DE-8530-4769-9190-D345D2B18311}.Release|x86.ActiveCfg = Release|Any CPU
57+
{2618D8DE-8530-4769-9190-D345D2B18311}.Release|x86.Build.0 = Release|Any CPU
5858
EndGlobalSection
5959
GlobalSection(SolutionProperties) = preSolution
6060
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)