Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Compile Remove="Assets\**" />
<EmbeddedResource Remove="Assets\**" />
<None Remove="Assets\**" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\..\ML2SQL\ML2SQL\ML2SQL.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using Microsoft.ML.Data;
using ML2SQL;
using MySql.Data.MySqlClient;
//using static Microsoft.ML.Runtime.Data.RoleMappedSchema;

namespace CreditCardFraudDetection.Common.DataModels
{
public class TransactionFraudPrediction :SQLData
{
public bool Label;
public bool PredictedLabel;
public float Score;
public float Probability;

public string getData(string separator)
{
return this.Score + "";
}

public string GetHeader(string separator)
{
return "Score";
}

public string getId()
{
throw new NotImplementedException();
}

public string getMySQLData(string separator)
{
return getData(separator);
}

public string getScores(string separator)
{
return this.Score+"";
}

public string getSQLServerData(string separator)
{
return getData(separator);
}

public void PrintToConsole()
{
Console.WriteLine($"Predicted Label: {PredictedLabel}");
Console.WriteLine($"Probability: {Probability} ({Score})");
}

public void ReadDataFromMYSQL(MySqlDataReader reader)
{
throw new NotImplementedException();
}

public void ReadDataFromSQLServer(SqlDataReader reader)
{
throw new NotImplementedException();
}
}
}
Loading