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

Parameters and meta data #21

Open
nudles opened this issue Apr 2, 2020 · 3 comments
Open

Parameters and meta data #21

nudles opened this issue Apr 2, 2020 · 3 comments

Comments

@nudles
Copy link
Contributor

nudles commented Apr 2, 2020

During training, the model may generate some meta data;
The training dataset may have some meta data, e.g., the mapping from the index to the label name;
These meta data is used during inference.
How to pass them to the predict function?

@NLGithubWP
Copy link
Collaborator

Each model have two methods called dump_parameters and load_parameters, which defined by user and store whatever user want. So after training, the dump_parameters will be called and the parameter will be stored under file "params". When we build an inference job 2 services will start, one is predictor, another one is called inference service. Predictor is a http server, getting images from user, and produce those images to kafka, inference service serve as consumer, which will load the model class from DB(postgresql) and then call the load_parameters method to load parameters we stored in "params".

@nudles
Copy link
Contributor Author

nudles commented Apr 4, 2020

  1. Are the parameters dumped into a database or a file/folder? can the the meta data be dumped together?
  2. We may consider to use a pipeline like Apache Airlow to replace the current implementation of the predictor, which is a bit ad-hoc. Pipeline is more general. We can put the models into a pipeline in different way.

@NLGithubWP
Copy link
Collaborator

1, The parameters dumped into file name as aaa.model for example, we can dump all meta-data together, no matter what we dump, we must load them in load_parameters methods with the same data structure.
2. ok

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

2 participants