Bugmark-Simulator / bugmark_simulation

A simulator for Bugmark to run experiments
Mozilla Public License 2.0
2 stars 1 forks source link

User generation script #5

Closed GeorgLink closed 6 years ago

GeorgLink commented 6 years ago
vinodkahuja commented 6 years ago

@GeorgLink user generation script done. Please review at https://github.com/vinodahujauno/bugmark_simulation/blob/master/exercise/simulation/script/user_gen_scr

GeorgLink commented 6 years ago

Looks good. Can you please make the following changes?

vinodkahuja commented 6 years ago

@GeorgLink which setting file you are talking about. can you point out that file so that I can look at it "Read the following from a settings file: (lines 30-32)"

vinodkahuja commented 6 years ago

@GeorgLink as per your suggestion I have added section "Modify your input for users to be generated"

Please review and guide.

GeorgLink commented 6 years ago

The lines were referring to the script. You would have to create the settings file. The settings should be in a dedicated file, and not require changing the script for creating different number and types of users. The settings file can be located in the same folder as the script.

I'm not set on a particular format, but this is what a YAML settings file might look like:

---
create_users:
  - treatment: "no-metrics"
    group: "funder"
    budget: 100000
    number_of_new_users: 2
  - treatment: no-metrics
    group: "worker"
    budget: 100
    number_of_new_users: 10
  - treatment: "health-metrics"
    group: "funder"
    budget: 100000
    number_of_new_users: 2
  - treatment: "health-metrics"
    group: "worker"
    budget: 100
    number_of_new_users: 10
  - treatment: "market-metrics"
    group: "funder"
    budget: 100000
    number_of_new_users: 2
  - treatment: "market-metrics"
    group: "worker"
    budget: 100
    number_of_new_users: 10
  - treatment: "both-metrics"
    group: "funder"
    budget: 100000
    number_of_new_users: 2
  - treatment: "both-metrics"
    group: "funder"
    budget: 100
    number_of_new_users: 10
  - treatment: "admin"
    group: ""
    budget: 10000000
    number_of_new_users: 1
vinodkahuja commented 6 years ago

@GeorgLink I have created a separate setting file where you can define user generation requirement bugmark_simulation/exercise/simulation/script/user_gen_scr_setting.rb