Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
3 contributors

Users who have contributed to this file

@JRAlexander @BillWagner @mairaw
29 lines (22 sloc) 587 Bytes
// <SnippetAddUsings>
using Microsoft.ML.Data;
// </SnippetAddUsings>
namespace SentimentAnalysis
{
// <SnippetDeclareTypes>
public class SentimentData
{
[LoadColumn(0)]
public string SentimentText;
[LoadColumn(1), ColumnName("Label")]
public bool Sentiment;
}
public class SentimentPrediction : SentimentData
{
[ColumnName("PredictedLabel")]
public bool Prediction { get; set; }
public float Probability { get; set; }
public float Score { get; set; }
}
// </SnippetDeclareTypes>
}
You can’t perform that action at this time.