011235813 / discrete_mean_field_game

Experiments on a discrete mean field game model of population dynamics with reinforcement learning
29 stars 10 forks source link

Input Data Formatting #1

Open danpechi opened 4 years ago

danpechi commented 4 years ago

Hi,

Could you provide some sample data (train_round2, etc)? I am not sure what the expected format is of the input data, but an example input would be incredibly helpful to modify my data to work with the infrastructure in place.

011235813 commented 4 years ago

Hi Dan,

I'm attaching two example files, one is the distribution over topics (i.e. discrete states) and the other is the action (i.e., transition matrix). The function "read_demonstrations" in ac_irl.py is used to parse the data.

Thanks, Jiachen Yang trend_distribution_day1.txt action_day1.txt

011235813 commented 3 years ago

Hi Steven,

  1. You should provide an argument to path_to_dir that points to the location where you store the training data.
  2. Please use mfg_ac2.py instead of mfg_ac.py. The former should solve the int/float issue.
  3. Attached is a test file, i.e. distributions across one test day.

Jiachen

On Thu, Sep 24, 2020 at 7:54 PM stevenmailca notifications@github.com wrote:

Hi Jiachen, Thank you very much for providing two example files. I encountered an issue in mfg_ac.py: 1. seems path_to_dir='/home/t3500/devdata/mfg/distribution/train_reordered' currently is unavailable. 2. list_pi0.append( list(map(int, list_lines[0].strip().split(',')))[1:1+self.d] ) needs the data to be integer while data is with scientific notation in example files. May you kindly help to provide the test example for mfg_ac as well? Thank you so much in advance! Steven

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/011235813/discrete_mean_field_game/issues/1#issuecomment-698645396, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEKK7INN4KB5ELTBCYTCPHTSHPL4HANCNFSM4JK5Y7BA .

stevenmailca commented 3 years ago

Hi Jiachen,

Thank you so much for your kind help and indication! Have a very nice weekend!

Best, Steven