Forum Discussion

DaleC975's avatar
DaleC975
Copper Contributor
Apr 20, 2023

ML.Net CLI Example Fails

On following the instructions here:

https://learn.microsoft.com/en-us/dotnet/machine-learning/tutorials/sentiment-analysis-cli

at this step

mlnet classification --dataset "yelp_labelled.txt" --label-col 1 --has-header false --train-time 10

I get this error:

System.InvalidOperationException: Unable to resolve service for type 'Microsoft.ML.AutoML.IDatasetManager' while attempting to activate 'Microsoft.ML.AutoML.SweepablePipelineRunner'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, Type serviceType, Type implementationType, CallSiteChain callSiteChain)
...

...

 

mlnet --version says 16.15.0

Anyone know what's wrong?

 

1 Reply

  • micdev42's avatar
    micdev42
    Copper Contributor

    DaleC975 Hi. Not sure if you solved this but my setup works OK.

    I'm using VS 2022 Preview and ML.NET Model Builder 17.17.0.2332602 - which is later than the version you mentioned.

    HTH

     

Resources