Skip to content

Instantly share code, notes, and snippets.

@mdfarragher
Created November 8, 2019 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdfarragher/32751809253c6d475db99a1269edd482 to your computer and use it in GitHub Desktop.
Save mdfarragher/32751809253c6d475db99a1269edd482 to your computer and use it in GitHub Desktop.
using System;
using System.IO;
using System.Linq;
using Microsoft.ML;
using Microsoft.ML.Data;
using CNTK;
using CNTKUtil;
using XPlot.Plotly;
namespace SpamDetection
{
/// <summary>
/// The SpamData class contains one single message which may be spam or ham.
/// </summary>
public class SpamData
{
[LoadColumn(0)] public string Label { get; set; }
[LoadColumn(1)] public string Message { get; set; }
}
// the rest of the code goes here...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment