ns3-gym icon indicating copy to clipboard operation
ns3-gym copied to clipboard

Nested Dict Spaces or Multidimensional arrays

Open prototact opened this issue 2 years ago • 12 comments

Hi,

  • Is it possible to nest Dict Spaces?
  • Is it possible for boxes to be multi-dimensional arrays? Matrices would be good enough.

prototact avatar May 25 '22 09:05 prototact

hi @prototact did manage to make it with multi-dimensional ?

Abdelkader-gnichi avatar Jul 13 '23 21:07 Abdelkader-gnichi

I had to modify the python code but it worked yes. I can share later if you'd like.

prototact avatar Jul 15 '23 12:07 prototact

Hi @prototact, could you provide a patch for the ns3gym?

pgawlowicz avatar Jul 18 '23 07:07 pgawlowicz

@prototact yes please can you share your modification cos i need it this period to complete my master project and thank you a lot for your response

Abdelkader-gnichi avatar Jul 18 '23 08:07 Abdelkader-gnichi

Hi @pgawlowicz i hope that you doing well,

Did you have any implementations or small complet exemple of multi agent learning in ns3-gym, and if you have an example about ns3-gym with ofswitch13 package cos my project is about configure a bunch of switches that receiving udp traffic to make it reach its final destination based on DRL agent decisions (the decisions is an output port for each switch that have an incoming traffic on its ports)

Again i want to thank you about your massive work on the ns3-gym package so god bless you man.

Abdelkader-gnichi avatar Jul 18 '23 08:07 Abdelkader-gnichi

Hi @prototact, could you provide a patch for the ns3gym?

I made a #88 request, I hope it is okay with you. I should specify that my patch is about supporting nested dicts and not multidimensional arrays, but a similar solution may work (recursively call _pack_data)

prototact avatar Jul 18 '23 09:07 prototact

@prototact thank you a lot i really appreciate your response and your work. Can you tell me please about your project that you use ns3-gym to make it.

Abdelkader-gnichi avatar Jul 18 '23 09:07 Abdelkader-gnichi

I use 5g-Lena with ns3-gym to simulate 5g network slicing. However, ns3 is still lacking Edge and Core Network support, and it does not look like it will be done any time soon, so I am uncertain if I will proceed with the project.

prototact avatar Jul 18 '23 10:07 prototact

Nice project and ns3 it is huge and need time and effort to work with it, my project is a self aware sdn topology that that configure ofswitch13 switches in order to make the traffic reach it's final destination through this switches based on DRL agent decisions (the decisions are the outgoing output port that will be used by the switche\s )

Abdelkader-gnichi avatar Jul 18 '23 10:07 Abdelkader-gnichi

@prototact I want to ask about feeding the agent with the observation, so did you use OpenGymBoxContainer or OpenGymDict And for the actionspace what did you use cos my action space must be discrete ( i need to get 3 value from the agent and use np.argmax to take the the biggest one) so if you have some ideas i will so thankful if you share them with and thanks in advance.

Abdelkader-gnichi avatar Jul 18 '23 18:07 Abdelkader-gnichi

Hi @prototact, could you provide a patch for the ns3gym?

Hi @pgawlowicz did you merge the patch of multidimensional arrays in ns3gym?

Abdelkader-gnichi avatar Jul 29 '23 01:07 Abdelkader-gnichi

Hi @prototact does your patch of ns3-gym sends multiple actions to the simulation part as multi-dict space ?

Abdelkader-gnichi avatar Jul 30 '23 22:07 Abdelkader-gnichi