Skip to content

Can't load type Microsoft.ML.IPredictorProducing`1[System.Single] #4964

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
infiniteloopltd opened this issue Mar 24, 2020 · 2 comments
Closed

Comments

@infiniteloopltd
Copy link

System information

  • Windows 10 Home
  • .NET : .NET Core 2.1
  • ML.NET : 1.5-preview2
  • ML.FastTree : 1.5-preview2

Issue:

The following error occurs when reading from disk:

Can't load type Microsoft.ML.IPredictorProducing`1[System.Single], because it has both create and constructor methods with the same visibility. Please indicate which one should be used by changing either the signature or the visibility of one of them.

Model is available here: https://github.com/infiniteloopltd/ML-Problem

May be related to PR4385

Source code / logs

var mlContext = new MLContext();
var modelPath = @"MLModel.zip";
var mlModel = mlContext.Model.Load(modelPath, out var modelInputSchema);
@infiniteloopltd
Copy link
Author

Found the solution 👍

Install-Package Microsoft.ML.LightGbm -Version 1.5.0-preview2

(On the ML.Model project)

@harishsk
Copy link
Contributor

Thank you for updating the issue with your resolution. :-)

@ghost ghost locked as resolved and limited conversation to collaborators Mar 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants