kohpangwei / influence-release

MIT License
776 stars 175 forks source link

Need help: what does `set_params_op` do? #13

Closed tengerye closed 5 years ago

tengerye commented 5 years ago

When I read the code at line 190 of file logisticRegressionWithLBFGS.py as follows:

self.sess.run(self.set_params_op, feed_dict=params_feed_dict).

I am curious what exactly does it do? It does not return a value. If I commented it, the log message printed by self.print_model_eval() changed. Would someone please explain?

tengerye commented 5 years ago

My conclusion is the code assign the values of weights from logistic regression classifier to networks which will be used in inference() from the file logisticRegressionWithLBFGS.py

Kunlun-Zhu commented 5 years ago

Sounds true