Skip to content

Updates to Unit Test cases for the TensorFlowTransform - #790

Merged
abgoswam merged 3 commits into
dotnet:masterfrom
abgoswam:abgoswam/unitestfixes
Sep 1, 2018
Merged

Updates to Unit Test cases for the TensorFlowTransform#790
abgoswam merged 3 commits into
dotnet:masterfrom
abgoswam:abgoswam/unitestfixes

Conversation

@abgoswam

Copy link
Copy Markdown
Member

Fixes #779

(1) address the additional comments on the original TensorFlowTransform PR

(2) added an additional unit test to verify invalid shapes are being handled correctly

@zeahmed

zeahmed commented Aug 31, 2018

Copy link
Copy Markdown
Contributor
            Assert.Equal(0.99, metrics.AccuracyMicro, 2);

Can you please fix this too? this was my typo. Eric E. had comment on this. One of them is AccuracyMacro. #Closed


Refers to: test/Microsoft.ML.Tests/ScenariosWithDirectInstantiation/TensorflowTests.cs:122 in 88db7be. [](commit_id = 88db7be, deletion_comment = False)

@zeahmed zeahmed left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

var thrown = false;
try
{
IDataView trans = TensorFlowTransform.Create(env, pixels, model_location, "Output", "Input");

@eerhardt eerhardt Aug 31, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can use Assert.Throws instead of manually try catching. #Pending

@abgoswam abgoswam Sep 1, 2018

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for now i am keeping this as-is. will consider using Assert.Throws in future


In reply to: 214481486 [](ancestors = 214481486)

@eerhardt eerhardt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@eerhardt

eerhardt commented Aug 31, 2018

Copy link
Copy Markdown
Member

Thanks for fixing these up. #Resolved

@abgoswam
abgoswam merged commit a3b67d3 into dotnet:master Sep 1, 2018
@abgoswam
abgoswam deleted the abgoswam/unitestfixes branch September 24, 2018 15:03
@ghost ghost locked as resolved and limited conversation to collaborators Mar 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants