Closed johnrickabe closed 4 years ago
Hi @JohnWasTakenWasTaken,
It seems like you're missing that nuget package. Can you make sure you add it? What does your .csproj file look like? Do you have something like <PackageReference Include="Microsoft.ML" Version=1.0.0.0 />
in there?
Yep. I added the Microsoft.ML Nuget Package.
Is ML.NET compatible with Blazor Wasm? I heard Wasm is not 86x or 64x but I can't be so sure.
As soon as you upgrade blazer wasm to .net5 ml.net will not work. https://github.com/dotnet/machinelearning/issues/5375
@andersson09 @JohnWasTakenWasTaken .NET 5 RC1 just released. Do you run into the same issues with that version?
https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-5-release-candidate-1/
@luisquintanilla Sweet. Looks like there's a lot of things for Blazor. I'm gonna try it out.
@JohnWasTakenWasTaken @andersson09 you can take a look at this project for reference that uses a regression model (SDCAMaximumEntropy). Looks like things work with .NET 5 RC1! ๐
Hey @luisquintanilla thanks will take a look!
@luisquintanilla
I made a sentiment analysis model using Imdb dataset with Model Builder and added a reference to it on wasm. Apparently, String doesn't exist now or I'm doing something wrong. ๐
It also has errors with types on the generated console app.
EDIT: Fixed by restarting. Might have just bugged.
๐ might help if I would've included the project I was referencing.
I'll close this issue since it seems the problem has been resolved. Thanks, @luisquintanilla for your help ๐
Feel free to reopen if you're still facing this problem.
I have a problem with Blazor. I tried to do what's said in the documentation about loading existing model from remote source. (https://docs.microsoft.com/en-us/dotnet/machine-learning/how-to-guides/save-load-machine-learning-models-ml-net)
This is what I came up with:
When I initialize the page, there was an error, and the only thing I understood is there is an error in line 32:
_predictionEngine = mlContext.Model.CreatePredictionEngine<ModelInput, ModelOutput>(trainedModel);
Here's the error message:
It seems like the real problem is:
System.IO.FileNotFoundException: Could not load the file 'Microsoft.ML.Transforms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
What workaround can I do to fix this?
I tried getting the model from a cloud host and from wwwroot using GetStreamAsync. Both of their errors has to do with that line.