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
Filter observed values by ParameterProperties. #4678
Filter observed values by ParameterProperties. #4678
Conversation
2b7b795
to
b8cf6e0
Compare
hard to see the diff now with all these commits |
a51f9b1
to
b5e0690
Compare
It should be much more readable now ;) |
db0ec6d
to
dfbba0c
Compare
const std::string& filename, std::vector<std::string>& parameters); | ||
~CParameterObserverScalar(); | ||
|
||
CParameterObserverScalar(std::vector<std::string> ¶meters); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we even still need this class now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class is still needed atm since it is used to serialize an observation into the Tensorboard format (which can be read by tensorboard --logdir lala
).
Please check this: if we filter and use |
dfbba0c
to
e871313
Compare
updates here? :) |
Currently, I'm trying to rebase it and to finish it up! :) |
@geektoni goodluckhavefun... sorry man but i didn't want to do a 4th rebase of the shared_ptr stuff :P |
💃 💃 💃 |
e871313
to
2832fac
Compare
This behaviour is also respected by the ParameterObservers now. |
@karlnapf This should be mostly done now. |
Cool! What's next with this? Examples :) ? |
Yup, at least one meta example to show how these things can be used in practice. |
Would it be possible to extend a notebook with this? I think there is a tensorboard extension for notebooks. |
Yes, it could be possible to extend a notebook with visualizations taken from the observers. As long as the underlying model used is observable of course. |
This is ready to be merged once the CI approves. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice that you picked this up! :)
* Add more constructors to the various ParameterObservers; * Improve SGObject's subscribe() method to check also for properties; * Refactor ParameterObserver unit tests; * Change ParameterObservers class naming;
* Remove m_verbose from the ParameterObserverCV since we have a new logging facility now;
* Fix license header; * Fix again code style;
If we are filtering the various values with a the ALL property, then we explicity consider also the observations which have the NONE property.
* Use std::any_of() and empty(); * Run clang-format again;
This naming was preferred since filter() is assumed to return some kind of subset of the given elements. This was not the case since the method was returning a boolean.
5defecf
to
dcfc43e
Compare
No description provided.