You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Setup file updated with sections for test and doc
* circleci config updated wrt updates in setup
* grid2op and lightsim versions updated
* setup package lists updated
* Am accelerated tau transform (#113)
* providing a faster transform_tau method if topologies are given in list
* adding back test for leap_net, accelerated_tau_transform especially
* Delete Test_extract_tau.py
* Update leap_net.py
* adding a warning for a probably very rare case that should later be able to deal with
* Update leap_net.py
* typo in variable name, tau instead of extract_tau
* no need to scale topo_vect as values revolve around 1, that it is about categorical variables, and that it is re-encoded afterwards
Co-authored-by: marota <antoine-marot@live.fr>
"""Transform only the tau vector with respect to LeapNet encodings given a list of predefined topological actions
226
+
Parameters
227
+
----------
228
+
tau : list of raw topology representations (line_status, topo_vect)
229
+
230
+
with_tf : transformation using tensorflow or numpy operations
231
+
232
+
Returns
233
+
-------
234
+
tau
235
+
list of encoded topology representations (line_status, topo_vect_encoded)
236
+
"""
237
+
##############
238
+
#WARNING: TO DO
239
+
# if we find two topology matches at a same substation, the current code attribute one bit for each
240
+
# But only one should be choosen in the end (we are not in a quantum state, or it does not make sense to combine topologies at a same substation in the encoding here
241
+
#This can happen when there are several lines disconnected at a substation on which we changed the topology, probably in benchmark 3, but probably not in benchmark 1 and 2
0 commit comments