131 references to MessageSensitivity
Microsoft.ML.AutoML (3)
AutoMLExperiment\IMLContextManager.cs (1)
46
_channel.Send(new ChannelMessage(e.Kind,
MessageSensitivity
.Unknown, e.Message));
Utils\Logger.cs (2)
22
_channel.Trace(
MessageSensitivity
.None, message);
27
_channel.Error(
MessageSensitivity
.None, message);
Microsoft.ML.Core (78)
ComponentModel\ComponentCatalog.cs (1)
982
throw Contracts.Except("Unknown loadable class: {0}", name).MarkSensitive(
MessageSensitivity
.None);
Data\IHostEnvironment.cs (35)
213
public readonly
MessageSensitivity
Sensitivity;
223
internal ChannelMessage(ChannelMessageKind kind,
MessageSensitivity
sensitivity, string message)
233
internal ChannelMessage(ChannelMessageKind kind,
MessageSensitivity
sensitivity, string fmt, params object[] args)
249
void Trace(
MessageSensitivity
sensitivity, string fmt);
250
void Trace(
MessageSensitivity
sensitivity, string fmt, params object[] args);
251
void Error(
MessageSensitivity
sensitivity, string fmt);
252
void Error(
MessageSensitivity
sensitivity, string fmt, params object[] args);
253
void Warning(
MessageSensitivity
sensitivity, string fmt);
254
void Warning(
MessageSensitivity
sensitivity, string fmt, params object[] args);
255
void Info(
MessageSensitivity
sensitivity, string fmt);
256
void Info(
MessageSensitivity
sensitivity, string fmt, params object[] args);
279
/// Convenience variant of <see cref="IChannel.Trace(
MessageSensitivity
, string)"/>
280
/// setting <see cref="
MessageSensitivity
.Unknown"/>.
283
=> ch.Trace(
MessageSensitivity
.Unknown, fmt);
286
/// Convenience variant of <see cref="IChannel.Trace(
MessageSensitivity
, string, object[])"/>
287
/// setting <see cref="
MessageSensitivity
.Unknown"/>.
290
=> ch.Trace(
MessageSensitivity
.Unknown, fmt, args);
293
/// Convenience variant of <see cref="IChannel.Error(
MessageSensitivity
, string)"/>
294
/// setting <see cref="
MessageSensitivity
.Unknown"/>.
297
=> ch.Error(
MessageSensitivity
.Unknown, fmt);
300
/// Convenience variant of <see cref="IChannel.Error(
MessageSensitivity
, string, object[])"/>
301
/// setting <see cref="
MessageSensitivity
.Unknown"/>.
304
=> ch.Error(
MessageSensitivity
.Unknown, fmt, args);
307
/// Convenience variant of <see cref="IChannel.Warning(
MessageSensitivity
, string)"/>
308
/// setting <see cref="
MessageSensitivity
.Unknown"/>.
311
=> ch.Warning(
MessageSensitivity
.Unknown, fmt);
314
/// Convenience variant of <see cref="IChannel.Warning(
MessageSensitivity
, string, object[])"/>
315
/// setting <see cref="
MessageSensitivity
.Unknown"/>.
318
=> ch.Warning(
MessageSensitivity
.Unknown, fmt, args);
321
/// Convenience variant of <see cref="IChannel.Info(
MessageSensitivity
, string)"/>
322
/// setting <see cref="
MessageSensitivity
.Unknown"/>.
325
=> ch.Info(
MessageSensitivity
.Unknown, fmt);
328
/// Convenience variant of <see cref="IChannel.Info(
MessageSensitivity
, string, object[])"/>
329
/// setting <see cref="
MessageSensitivity
.Unknown"/>.
332
=> ch.Info(
MessageSensitivity
.Unknown, fmt, args);
Environment\ConsoleEnvironment.cs (12)
109
private string LinePrefix(
MessageSensitivity
sensitivity)
111
if (_parent._sensitivityFlags ==
MessageSensitivity
.All || ((_parent._sensitivityFlags & sensitivity) !=
MessageSensitivity
.None))
116
private string WriteAndReturnLinePrefix(
MessageSensitivity
sensitivity, TextWriter writer)
148
WriteAndReturnLinePrefix(
MessageSensitivity
.None, _out);
162
WriteAndReturnLinePrefix(
MessageSensitivity
.None, _out);
166
WriteAndReturnLinePrefix(
MessageSensitivity
.None, _out);
202
WriteAndReturnLinePrefix(
MessageSensitivity
.None, _out);
235
WriteAndReturnLinePrefix(
MessageSensitivity
.None, _out);
352
private readonly
MessageSensitivity
_sensitivityFlags;
367
MessageSensitivity
sensitivity =
MessageSensitivity
.All,
Environment\HostEnvironmentBase.cs (8)
224
public void Trace(
MessageSensitivity
sensitivity, string msg)
229
public void Trace(
MessageSensitivity
sensitivity, string fmt, params object[] args)
234
public void Error(
MessageSensitivity
sensitivity, string msg)
239
public void Error(
MessageSensitivity
sensitivity, string fmt, params object[] args)
244
public void Warning(
MessageSensitivity
sensitivity, string msg)
249
public void Warning(
MessageSensitivity
sensitivity, string fmt, params object[] args)
254
public void Info(
MessageSensitivity
sensitivity, string msg)
259
public void Info(
MessageSensitivity
sensitivity, string fmt, params object[] args)
Utilities\Contracts.cs (22)
124
public static TException MarkSensitive<TException>(this TException ex,
MessageSensitivity
sensitivity)
128
MessageSensitivity
innerSensitivity;
130
innerSensitivity =
MessageSensitivity
.None;
132
innerSensitivity = (ex.Data[SensitivityKey] as
MessageSensitivity
?) ??
MessageSensitivity
.None;
145
/// a <see cref="
MessageSensitivity
"/> value. If neither of these conditions
146
/// hold then <see cref="
MessageSensitivity
.Unknown"/> is returned.</returns>
147
public static
MessageSensitivity
Sensitivity(this Exception ex)
151
return
MessageSensitivity
.Unknown;
152
return (ex.Data[SensitivityKey] as
MessageSensitivity
?) ??
MessageSensitivity
.Unknown;
178
public readonly
MessageSensitivity
ToMark;
182
public SensitiveExceptionContext(IExceptionContext inner,
MessageSensitivity
toMark)
198
/// A convenience context for marking exceptions from checks and excepts with <see cref="
MessageSensitivity
.None"/>.
206
/// A convenience context for marking exceptions from checks and excepts with <see cref="
MessageSensitivity
.None"/>.
209
=> new SensitiveExceptionContext(ctx,
MessageSensitivity
.None);
212
/// A convenience context for marking exceptions from checks and excepts with <see cref="
MessageSensitivity
.UserData"/>.
217
/// A convenience context for marking exceptions from checks and excepts with <see cref="
MessageSensitivity
.UserData"/>.
220
=> new SensitiveExceptionContext(ctx,
MessageSensitivity
.UserData);
223
/// A convenience context for marking exceptions from checks and excepts with <see cref="
MessageSensitivity
.Schema"/>.
228
/// A convenience context for marking exceptions from checks and excepts with <see cref="
MessageSensitivity
.Schema"/>.
231
=> new SensitiveExceptionContext(ctx,
MessageSensitivity
.Schema);
Microsoft.ML.Core.Tests (13)
UnitTests\TestContracts.cs (13)
19
private void Helper(IExceptionContext ectx,
MessageSensitivity
expected)
53
Helper(null,
MessageSensitivity
.Unknown);
56
Helper(Contracts.NotSensitive(),
MessageSensitivity
.None);
57
Helper(Contracts.UserSensitive(),
MessageSensitivity
.UserData);
58
Helper(Contracts.SchemaSensitive(),
MessageSensitivity
.Schema);
59
Helper(Contracts.UserSensitive().SchemaSensitive(),
MessageSensitivity
.UserData |
MessageSensitivity
.Schema);
62
Helper(env,
MessageSensitivity
.Unknown);
63
Helper(env.NotSensitive(),
MessageSensitivity
.None);
64
Helper(env.UserSensitive(),
MessageSensitivity
.UserData);
65
Helper(env.SchemaSensitive(),
MessageSensitivity
.Schema);
66
Helper(env.UserSensitive().SchemaSensitive(),
MessageSensitivity
.UserData |
MessageSensitivity
.Schema);
Microsoft.ML.Data (23)
Commands\SaveDataCommand.cs (4)
154
ch.Info(
MessageSensitivity
.Schema, "The column '{0}' will not be written as it has unsavable column type.", data.Schema[i].Name);
178
ch.Info(
MessageSensitivity
.UserData |
MessageSensitivity
.Schema, result);
216
ch.Info(
MessageSensitivity
.Schema, "The column '{0}' will not be written as it has unsavable column type.", view.Schema[i].Name);
DataLoadSave\Binary\BinaryLoader.cs (1)
2197
ch.Info(
MessageSensitivity
.Schema, "Column {0} '{1}'{2} of {3} in {4} blocks of {5}", col.ColumnIndex, col.Name,
DataLoadSave\Text\TextLoaderParser.cs (2)
188
_ch.Info(
MessageSensitivity
.Schema, " Bad value at line {0} in column {1} at slot {2}", line, colName, slot);
199
_ch.Info(
MessageSensitivity
.Schema, " Bad value at line {0} in column {1}", line, colName);
DataLoadSave\Text\TextSaver.cs (5)
371
ch.Info(
MessageSensitivity
.UserData |
MessageSensitivity
.Schema, writer.ToString());
382
ch.Warning(
MessageSensitivity
.None, "Wrote zero rows of data!");
384
ch.Info(
MessageSensitivity
.None, "Wrote {0} rows of length {1}", count, min);
386
ch.Info(
MessageSensitivity
.None, "Wrote {0} rows of lengths between {1} and {2}", count, min, max);
Evaluators\AnomalyDetectionEvaluator.cs (1)
709
ch.Info(
MessageSensitivity
.UserData, sb.ToString());
Evaluators\BinaryClassifierEvaluator.cs (5)
1401
ch.Info(
MessageSensitivity
.None, weightedConf);
1402
ch.Info(
MessageSensitivity
.None, weightedFold);
1404
ch.Info(
MessageSensitivity
.None, unweightedConf);
1405
ch.Info(
MessageSensitivity
.None, unweightedFold);
1423
ch.Trace(
MessageSensitivity
.None, "Saving p/r data view");
Model\Pfa\SavePfaCommand.cs (1)
203
ch.Info(
MessageSensitivity
.Schema, pfaDoc.ToString(_formatting));
Transforms\ColumnConcatenatingTransformer.cs (1)
720
.MarkSensitive(
MessageSensitivity
.Schema);
Utilities\LocalEnvironment.cs (3)
25
Dispatch(this, new ChannelMessage(ChannelMessageKind.Trace,
MessageSensitivity
.None, "Channel started"));
29
=> Dispatch(this, new ChannelMessage(ChannelMessageKind.Trace,
MessageSensitivity
.None, "Channel finished. Elapsed {0:c}.", Watch.Elapsed));
38
Dispatch(this, new ChannelMessage(ChannelMessageKind.Trace,
MessageSensitivity
.None, "Channel disposed"));
Microsoft.ML.Maml (8)
MAML.cs (8)
85
MessageSensitivity
sensitivity =
MessageSensitivity
.All;
178
ch.Error(
MessageSensitivity
.None, "***** Unexpected failure. Please refer to https://aka.ms/MLNetIssue to file an issue with details *****");
181
ch.Error(
MessageSensitivity
.None, "***** Error log has been saved to '{0}', please refer to https://aka.ms/MLNetIssue to file an issue with details *****",
187
ch.Error(
MessageSensitivity
.None, "Error log has been saved to '{0}'. Please refer to https://aka.ms/MLNetIssue if you need assistance.",
193
ch.Error(
MessageSensitivity
.None, "===== Begin detailed dump =====");
195
ch.Error(
MessageSensitivity
.None, "====== End detailed dump =====");
269
ch.Error(
MessageSensitivity
.None, e.StackTrace);
Microsoft.ML.Mkl.Components (2)
VectorWhitening.cs (2)
318
ch.Info(
MessageSensitivity
.Schema, "Only {0:N0} rows of column '{1}' will be used for whitening transform.", ex.MaximumNumberOfRows, columns[i].Name);
327
ch.Info(
MessageSensitivity
.Schema, "Only {0:N0} rows of column '{1}' will be used for whitening transform.", actualRowCounts[i], columns[i].Name);
Microsoft.ML.Parquet (1)
PartitionedFileLoader.cs (1)
492
Ch.Warning(
MessageSensitivity
.Schema, e.Message);
Microsoft.ML.TestFramework (1)
SubComponent.cs (1)
254
throw Contracts.Except("Unknown loadable class: {0}", Kind).MarkSensitive(
MessageSensitivity
.None);
Microsoft.ML.Transforms (2)
CountFeatureSelection.cs (1)
207
ch.Info(
MessageSensitivity
.Schema, "Selected {0} slots out of {1} in column '{2}'", selectedCount[i], colSizes[i], _columns[i].InputColumnName);
LearnerFeatureSelection.cs (1)
109
ch.Info(
MessageSensitivity
.Schema, "Selected {0} slots out of {1} in column '{2}'", selectedCount, scores.Length, options.FeatureColumn);