Skip to content
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

How to get ComponentCatalog from MLContext? #1949

Closed
montebhoover opened this issue Dec 20, 2018 · 4 comments
Closed

How to get ComponentCatalog from MLContext? #1949

montebhoover opened this issue Dec 20, 2018 · 4 comments
Labels
API Issues pertaining the friendly API

Comments

@montebhoover
Copy link
Contributor

For NimbusML we have a "ManifestGenerator" that creates the EntryPoint manifest.json from a given set of ML.NET assemblies. Currently we implement this the same way it is implemented in TestEntryPoints.cs, but ConsoleEnvironment has been made internal, and ML.Context doesn't have a ComponentCatalog. What are ways I could get access to a ComponentCatalog and use JsonManifestUtils to build a new manifest.json?

@Ivanidzo4ka @yaeldekel @ganik

@montebhoover
Copy link
Contributor Author

Probably more importantly is figuring out how to load the assemblies in NimbusML's bridge to ML.NET now that the items in the ComponentCatalog have been internalized:

https://github.com/Microsoft/NimbusML/blob/80ce48f0505eba1564dafd2dfd249905ee7b6143/src/DotNetBridge/Bridge.cs#L309

@justinormont justinormont added the API Issues pertaining the friendly API label Dec 22, 2018
@montebhoover
Copy link
Contributor Author

#2063 addresses this.

@eerhardt
Copy link
Member

eerhardt commented Jan 8, 2019

How to get ComponentCatalog from MLContext?

Cast it to an IHostEnvironment and use the ComponentCatalog property:

((IHostEnvironment)new MLContext()).ComponentCatalog

@montebhoover
Copy link
Contributor Author

Thanks Eric!

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

No branches or pull requests

3 participants