/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/machine-learning/tutorials/snippets/sentiment-analysis/csharp/SentimentData.cs
28 строк
588 B
Genevieve Warren
Fix nullability warnings (/machine-learning and /standard) (#35124)
01 май 2023, 23:59
Не верифицирован
01 май 2023, 23:59
20f4c58
Код
Авторство
О чём код?
// <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> }