-
Notifications
You must be signed in to change notification settings - Fork 52
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
GUI: Connection Probability #841
Comments
Is it an easy addition? The probability should default to If it's straight forward to implement then I would say yes, it's a line of investigation that people haven't gone down because it wasn't possible in the old GUI |
Do all connections and all weights have an associated probability? Or is it conditional? |
Whenever you call Where we need to be careful is that |
Working on the Network configuration export I noticed that the GUI is not using the connection probability in any way.
The connectivity only have a weight widget parameter.
The connectivity widget constructor is shown below. Notice the docstring mentions probability, but it is not in the box construct. It's a bit hard to read but the connectivity box is a vertical box (Vbox) composed of 3 elements:
hnn-core/hnn_core/gui/gui.py
Lines 935 to 951 in a1c94ee
The Problem
A problem arises when initializing the new network from widget values. It tries to assign a probability from a widget that does not exist (see below). The
vbox_key.children[2].value
, is not a probability widget but the html widget that styles the black horizontal bar. So the network actually gets assigned a probability value of"<hr style='margin-bottom:5px'/>"
!hnn-core/hnn_core/gui/gui.py
Lines 1650 to 1653 in a1c94ee
Solution
I suppose the easiest solution is to just add the probability as a widget for all the connections. Does this make sense for all types of connections?
The text was updated successfully, but these errors were encountered: