Skip to content

Conversation

@yaeldekel
Copy link

Fixes #1643 .

@yaeldekel yaeldekel requested review from Zruty0 and codemzs November 16, 2018 19:21
new Dictionary<string, string>
{
{ "EXAMPLE_CLASS_DECL", loaderSb.ToString() },
{ "SCORED_EXAMPLE_CLASS_DECL", nonScoreSb.ToString() },
Copy link
Contributor

@Ivanidzo4ka Ivanidzo4ka Nov 16, 2018

Choose a reason for hiding this comment

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

SCORED_EXAMPLE_CLASS_DECL [](start = 27, length = 25)

In our internal repo we actually have this thing

      // These are all remaining available columns, either supplied as the input, or intermediate
        // columns generated by the transforms. Materializing these columns has a performance cost,
        // so they are commented out. Feel free to uncomment any column that is useful for your scenario.

#if false
/#SCORED_EXAMPLE_CLASS_DECL#/
/#/SCORED_EXAMPLE_CLASS_DECL#/
#endif

Are you sure you want to delete it?
#Resolved

Copy link
Contributor

@Zruty0 Zruty0 Nov 19, 2018

Choose a reason for hiding this comment

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

Yep, that's strange. #Resolved

if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
return;

// REVIEW petelu: this tests that the generated output matches the baseline. This does NOT baseline
Copy link
Contributor

@Zruty0 Zruty0 Nov 19, 2018

Choose a reason for hiding this comment

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

who is petelu?.. #Resolved

new Dictionary<string, string>
{
{ "EXAMPLE_CLASS_DECL", loaderSb.ToString() },
{ "SCORED_EXAMPLE_CLASS_DECL", nonScoreSb.ToString() },
Copy link
Contributor

@Zruty0 Zruty0 Nov 19, 2018

Choose a reason for hiding this comment

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

Yep, that's strange. #Resolved

///
///</summary>
public static void Predict(string modelPath)
public static void PredictAsync(string modelPath)
Copy link
Contributor

@Zruty0 Zruty0 Nov 20, 2018

Choose a reason for hiding this comment

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

PredictAsync [](start = 19, length = 12)

Did you try running this code now? I think the return type now should be Task? #Resolved

public static void Predict(string modelPath)
public static void PredictAsync(string modelPath)
{
var model = await PredictionModel.ReadAsync<InputData, ScoredOutput>(modelPath);
Copy link
Contributor

Choose a reason for hiding this comment

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

PredictionModel [](start = 22, length = 15)

PredictionModel is in Microsoft.ML.Legacy which we don't reference in usings.
I doubt this code would compile.
Also do we actually want it to generate Legacy things or we should switch to new api?

Copy link
Author

Choose a reason for hiding this comment

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

I opened issue #1738 to convert the command to use the new api.

Copy link
Contributor

@Ivanidzo4ka Ivanidzo4ka left a comment

Choose a reason for hiding this comment

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

:shipit:

@Ivanidzo4ka Ivanidzo4ka requested a review from abgoswam November 28, 2018 18:51
}

[Fact]
[Fact(Skip = "'checker' is not a valid value for the 'parag' argument in FastTree")]
Copy link
Member

Choose a reason for hiding this comment

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

should we provide a valid value instead of skipping the test ?

Copy link
Member

Choose a reason for hiding this comment

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

If we do skip the test, should there be an issue filed on how to fix?


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

public void CommandShowSchemaModel()
{
string trainDataPath = GetDataPath(@"..\UCI", "adult.test.tiny");
string trainDataPath = GetDataPath("adult.tiny.with-schema.txt");
Copy link
Member

Choose a reason for hiding this comment

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

Can this be TestDataset.adult.testFilename?

// will be in order.

// First, train a model on breast-cancer.
var dataPath = GetDataPath("breast-cancer.txt");
Copy link
Member

Choose a reason for hiding this comment

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

TestDatasets.breastCancer.testFilename?

Copy link
Member

@singlis singlis left a comment

Choose a reason for hiding this comment

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

:shipit:

@singlis
Copy link
Member

singlis commented Nov 30, 2018

posted a couple of comments, but overall looks good.

@yaeldekel yaeldekel merged commit 05284d6 into dotnet:master Dec 1, 2018
@yaeldekel yaeldekel deleted the generatecode branch December 1, 2018 22:57
@ghost ghost locked as resolved and limited conversation to collaborators Mar 26, 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.

6 participants