Uh oh!
There was an error while loading. Please reload this page.
Reformatting TensorFlow and AnomalyDetection samples to width 85 - #3922
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
wschin
left a comment
There was a problem hiding this comment.
Just left some minor comments. Overall LGTM.
| // ML.NET Pipeline | ||
| Action<IMDBSentiment, IntermediateFeatures> ResizeFeaturesAction = (i, j) => | ||
| Action<IMDBSentiment, IntermediateFeatures> ResizeFeaturesAction = (i, |
There was a problem hiding this comment.
This would be clearer if the (i, j) was on the same line
| .Append(mlContext.Transforms.CopyColumns("Prediction", "Prediction/Softmax")) | ||
| .Fit(dataView); | ||
| var engine = mlContext.Model.CreatePredictionEngine<IMDBSentiment, OutputScores>(model); | ||
| var model = mlContext.Transforms.Text.TokenizeIntoWords( |
There was a problem hiding this comment.
It would be better to try and align the Append methods, as well as keep the transform strings together. Something like:
var model =
mlContext.Transforms.Text.TokenizeIntoWords(
"TokenizedWords",
"Sentiment_Text")
.Append(mlContext.Transforms.Conversion.MapValue(
"VariableLengthFeatures",
lookupMap,
lookupMap.Schema["Words"],
lookupMap.Schema["Ids"],
"TokenizedWords"))
.Append(mlContext.Transforms.CustomMapping(
ResizeFeaturesAction,
"Resize"))
.Append(tensorFlowModel.ScoreTensorFlowModel(
"Prediction/Softmax",
"Features"))
.Append(mlContext.Transforms.CopyColumns(
"Prediction",
"Prediction/Softmax"))
.Fit(dataView);
| var image1 = Enumerable.Range(0, inputSize).Select( | ||
| x => (float)x / inputSize).ToArray(); | ||
| var image2 = Enumerable.Range(0, inputSize).Select( | ||
| x => (float)(x + 10000) / inputSize).ToArray(); |
There was a problem hiding this comment.
As discussed new line between any two lines that were broken into multiple lines.
…net#3922) * Testing * Reformatted TensorFlow samples to width 85 * Reformatted AnomalyDetection samples to width 85 * Fixed formatting errors * Made a few edits to TensorFlow samples format * Fixed syntax errors * Spacing changes
Guidelines followed:
Fix for Issue #3478