Skip to content

Fix a bug in Tree leaf featurizer entry point, and add a test for it. #131

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 6 commits into from
May 16, 2018
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
Update unit test
  • Loading branch information
yaeldMS committed May 15, 2018
commit 431ca8e3de9bb7c58c04d4ac92c8612d74482817
10 changes: 5 additions & 5 deletions test/Microsoft.ML.Core.Tests/UnitTests/TestEntryPoints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2576,11 +2576,11 @@ public void EntryPointTreeLeafFeaturizer()
treesGetter(ref treeValues);
leavesGetter(ref leafIndicators);
pathsGetter(ref pathIndicators);
Assert.True(treeValues.Length == 100);
Assert.True(treeValues.Count == 100);
Assert.True(leafIndicators.Length == 3955);
Assert.True(leafIndicators.Count == 100);
Assert.True(pathIndicators.Length == 3855);
Assert.Equal(100, treeValues.Length);
Assert.Equal(100, treeValues.Count);
Assert.Equal(3955, leafIndicators.Length);
Assert.Equal(100, leafIndicators.Count);
Assert.Equal(3855, pathIndicators.Length);
}
}
}
Expand Down