Skip to content

Fit Method, The asynchronous operation has not completed. #833

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Aleksey1555 opened this issue Jul 13, 2020 · 2 comments
Closed

Fit Method, The asynchronous operation has not completed. #833

Aleksey1555 opened this issue Jul 13, 2020 · 2 comments

Comments

@Aleksey1555
Copy link

Hello.
Please Help!
I try to compile the code from example
this link

I run it, but on this line:

// 3. Load Images with in-memory type within the IDataView and Transform Labels to Keys (Categorical)
  IDataView shuffledFullImagesDataset = mlContext.Transforms.Conversion.
           MapValueToKey(outputColumnName: "LabelAsKey", inputColumnName: "Label", keyOrdinality: KeyOrdinality.ByValue)
          .Append(mlContext.Transforms.LoadRawImageBytes(outputColumnName: "Image",
                  imageFolder: fullImagesetFolderPath,
                  inputColumnName: "ImagePath"))
           .Fit(shuffledFullImageFilePathsDataset)
           .Transform(shuffledFullImageFilePathsDataset);

i get error: System.InvalidOperationException: 'The asynchronous operation has not completed.'
Please Help!

@XamlBrewer
Copy link
Contributor

XamlBrewer commented Jul 14, 2020

Hi,
after upgrading the NuGet package from v1.5.0 to v1.5.1, the exact same exception happens also in the taxi fare prediction sample (https://github.com/dotnet/machinelearning-samples/tree/master/samples/csharp/getting-started/Regression_TaxiFarePrediction):

var trainedModel = trainingPipeline.Fit(trainingDataView);

Exception thrown: 'System.InvalidOperationException' in System.Threading.Channels.dll
An unhandled exception of type 'System.InvalidOperationException' occurred in System.Threading.Channels.dll
The asynchronous operation has not completed.

@Aleksey1555
Copy link
Author

Aleksey1555 commented Jul 15, 2020

Thanks, work's now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants