Skip to content

Stabilize the LR test #4446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 11, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
removed rand to use existing seed.
  • Loading branch information
Brian Stark committed Nov 8, 2019
commit b8d7b23dea8f2a0ebd1fdf98cda05b1d90fb0a2e
4 changes: 2 additions & 2 deletions src/Microsoft.ML.Vision/ImageClassificationTrainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ private void TrainAndEvaluateClassificationLayer(string trainBottleneckFilePath,
metrics.Train.LearningRate = learningRate;
// Update train state.
trainstate.CurrentEpoch = epoch;
using (var cursor = trainingSet.GetRowCursor(trainingSet.Schema.ToArray(), Host.Rand))
using (var cursor = trainingSet.GetRowCursor(trainingSet.Schema.ToArray()))
{
var labelGetter = cursor.GetGetter<long>(trainingSet.Schema[0]);
var featuresGetter = cursor.GetGetter<VBuffer<float>>(featureColumn);
Expand Down Expand Up @@ -1069,7 +1069,7 @@ private void TrainAndEvaluateClassificationLayer(string trainBottleneckFilePath,
metrics.Train.BatchProcessedCount = 0;
metrics.Train.Accuracy = 0;
metrics.Train.CrossEntropy = 0;
using (var cursor = validationSet.GetRowCursor(validationSet.Schema.ToArray(), Host.Rand))
using (var cursor = validationSet.GetRowCursor(validationSet.Schema.ToArray()))
{
var labelGetter = cursor.GetGetter<long>(validationSet.Schema[0]);
var featuresGetter = cursor.GetGetter<VBuffer<float>>(featureColumn);
Expand Down