locked
getting best model out of autoML RRS feed

  • Question

  •  Dim experiment As RegressionExperiment = mlContext.Auto().CreateRegressionExperiment(AutoMLSettings)

     Dim result As ExperimentResult(Of RegressionMetrics) = experiment.Execute(trainData,                                                                                                                              CurrentProject.DependentVariable.Tagname, progressHandler:=progressHandler)

     Dim model As ITransformer = result.BestRun.Model

     Dim model As ITransformer = model.Transform(trainData)

     castedModel = TryCast(model, RegressionPredictionTransformer(Of Trainers.FastTree.FastTreeRegressionModelParameters))

    i dont understand why this cast isn't working in a situation that returns "FastTreeRegression" for model.BestRun.TrainerName

    i have a situation where I cant write a class for the data ahead of time which are the only examples I can find

    thanks for any help!

    Monday, December 23, 2019 1:34 PM

Answers

  • Hi nbeule,

    Thank you for posting here.

    According to your description, your issue is more related to ML.NET, I will move the thread to Where is the Forum For…? forum to help you find the correct forum to go ask questions.

    Thank you for your understanding.

    Best Regards,

    Xingyu Zhao


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by nbeule Thursday, December 26, 2019 5:08 PM
    Tuesday, December 24, 2019 5:51 AM
  • Might try asking for help over here.

    https://social.msdn.microsoft.com/forums/azure/en-US/home?forum=machinelearning

    https://github.com/dotnet/machinelearning

    https://stackoverflow.com/questions/tagged/ml.net

     

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    • Proposed as answer by Richard MuellerMVP Tuesday, December 24, 2019 11:16 AM
    • Marked as answer by nbeule Thursday, December 26, 2019 5:08 PM
    Tuesday, December 24, 2019 10:45 AM

All replies

  • fixing typo: 

    Dim transformed_DataView As IDataView= model.Transform(trainData)

    Monday, December 23, 2019 1:43 PM
  • Hi nbeule,

    Thank you for posting here.

    According to your description, your issue is more related to ML.NET, I will move the thread to Where is the Forum For…? forum to help you find the correct forum to go ask questions.

    Thank you for your understanding.

    Best Regards,

    Xingyu Zhao


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by nbeule Thursday, December 26, 2019 5:08 PM
    Tuesday, December 24, 2019 5:51 AM
  • Might try asking for help over here.

    https://social.msdn.microsoft.com/forums/azure/en-US/home?forum=machinelearning

    https://github.com/dotnet/machinelearning

    https://stackoverflow.com/questions/tagged/ml.net

     

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    • Proposed as answer by Richard MuellerMVP Tuesday, December 24, 2019 11:16 AM
    • Marked as answer by nbeule Thursday, December 26, 2019 5:08 PM
    Tuesday, December 24, 2019 10:45 AM