question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Capability to define output key for Importer

See original GitHub issue

Describe the feature and the current behavior/state. Currently, the output dict of the importer defaults to result. It will be good to let the user specify the output dict.

Will this change the current API? How? Adding a new arg, output_key='result' to the Importer API.

Who will benefit with this feature? This will enable reusing the existing code snippet. e.g. Current behavior requires the output dict to be updated everywhere:

schema_gen = Importer(...)
# schame_gen = SchemaGen(...)

trainer = Trainer(..., schema=schema_gen['result'], ...)
# trainer = Trainer(..., schema=schema_gen['schema_gen'], ...)

evalutor = Evaluator(..., schema=schema_gen['result'], ...)
# evalutor = Evaluator(..., schema=schema_gen['schema_gen'], ...)

Do you have a workaround or are completely blocked by this? : Refactor the code

Name of your Organization (Optional) Twitter, Inc.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sumitbinnanicommented, Sep 16, 2021

In addition to SchemaGen, also ExampleGen. Reusing a transformed training dataset is also a common use case. Similarly, if one have multiple trained models that they would like to use for evaluation, one might want to also import channel of type Model. etc.

0reactions
UsharaniPagadalacommented, Sep 20, 2021

@sumitbinnani

Could you please move this to closed status if it is resolved.Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

18 Exporting and Importing
This chapter describes how to manage export and import operations in Oracle Data Integrator. An introduction to the import and export concepts is...
Read more >
Import a key version into Cloud KMS - Google Cloud
An import job defines the characteristics of the keys it imports, including properties that cannot be changed after the key is imported.
Read more >
GPG Cheat Sheet
Basically if you want one key-pair for all of your computers (assuming you have multiple computers), then this allows you export that key-pair...
Read more >
Exporting stack output values - AWS CloudFormation
To share information between stacks, export a stack's output values. Other stacks that are in the same AWS account and region can import...
Read more >
Reading: Importing and Exporting, and Global Sourcing
Understand what importing and exporting are. Learn why companies export. Explain the main contractual and investment entry modes. What Do We Mean by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found