Skip to content

NullReferenceException when training data #6470

Description

@ivan-pelly

System Information (please complete the following information):

  • OS & Version: Windows 10
  • ML.NET Version: Microsoft.ML 2.0.0, Microsoft.ML.AutoML 0.20.0
  • .NET Version: NET 6.0

Describe the bug
Training following the example at https://github.com/jwood803/MLNetExamples/tree/master/MLNetExamples/AutoML throws a System.AggregateException

To Reproduce
Steps to reproduce the behavior:

  1. Load the attached project
  2. Edit line 6 in Program.cs to point to the path of the provided data file on your system
  3. Run the code
  4. See error

Expected behavior
The code executes to completion.

NDML.zip

Activity

  1. ghost added
    untriagedNew issue has not been triaged
    on Nov 24, 2022
  2. ivan-pelly commented on Nov 25, 2022

    @ivan-pelly
    Author

    Additional error info attached.
    mlerror

  3. michaelgsharp commented on Nov 28, 2022

    @michaelgsharp
    Contributor

    @LittleLittleCloud looks like this is using AutoML. Any ideas?

    @luisquintanilla are you familiar with that sample by Jon?

  4. ivan-pelly commented on Nov 28, 2022

    @ivan-pelly
    Author

    Thanks for giving this a look. Happy to provide any additional info as needed.

  5. luisquintanilla commented on Nov 29, 2022

    @luisquintanilla
    Contributor

    Hi @ivan-pelly,

    Thanks for your question. This looks like it's using the old AutoML API. We recommend you use the new AutoML API. Check out this guide for more information. You can also find accompanying samples.

    Closing this issue for now. If you run into issues with the new AutoML API, please feel free to open a new issue.

  6. ghost removed
    untriagedNew issue has not been triaged
    on Nov 29, 2022
  7. ivan-pelly commented on Nov 29, 2022

    @ivan-pelly
    Author

    Hi @luisquintanilla - thanks for the info. My project is using Microsoft.ML.AutoML version 0.20.0, which it reports as the latest stable version. Is there a more recent version I'm not seeing, or are you referring to a different package? Any guidance appreciated. Thank you!

  8. ivan-pelly commented on Nov 29, 2022

    @ivan-pelly
    Author

    0 20 0

  9. luisquintanilla commented on Nov 29, 2022

    @luisquintanilla
    Contributor

    @ivan-pelly 0.20.0 is the latest version. However, the old APIs are still part of that package. For example, your call to CreateRegressionExperiment and Progress<T> are the old APIs. I would recommend looking at the how-to guide and samples which show the new API.

  10. ivan-pelly commented on Nov 29, 2022

    @ivan-pelly
    Author

    Got it - thanks @luisquintanilla ! So the old and new api's are in the same package? Is there a way to distinguish which is which, or would just need to follow the docs and hope I don't call something old? Cheers.

  11. luisquintanilla commented on Nov 29, 2022

    @luisquintanilla
    Contributor

    @ivan-pelly

    So the old and new api's are in the same package

    Correct. If you were using the APIs prior to 0.20.0, your solutions should still work. However, we recommend you use the versions in 0.20.0 and later.

    Is there a way to distinguish which is which, or would just need to follow the docs and hope I don't call something old?

    Unfortunately not at this time and the best way is to consult the docs and samples.

  12. ghost locked as resolved and limited conversation to collaborators on Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions