{"id":21063992,"url":"https://github.com/davidenunes/jexperiment","last_synced_at":"2025-03-14T01:24:48.982Z","repository":{"id":12645527,"uuid":"15317091","full_name":"davidenunes/jexperiment","owner":"davidenunes","description":"A Java framework to build and execute experiments and collect data.","archived":false,"fork":false,"pushed_at":"2017-10-03T09:40:13.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T20:49:46.628Z","etag":null,"topics":["configuration","experiment","java","parameters","runner","simulation"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidenunes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-19T16:41:49.000Z","updated_at":"2017-10-03T09:36:21.000Z","dependencies_parsed_at":"2022-08-28T10:23:53.817Z","dependency_job_id":null,"html_url":"https://github.com/davidenunes/jexperiment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidenunes%2Fjexperiment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidenunes%2Fjexperiment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidenunes%2Fjexperiment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidenunes%2Fjexperiment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidenunes","download_url":"https://codeload.github.com/davidenunes/jexperiment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243506772,"owners_count":20301749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["configuration","experiment","java","parameters","runner","simulation"],"created_at":"2024-11-19T17:47:57.433Z","updated_at":"2025-03-14T01:24:48.945Z","avatar_url":"https://github.com/davidenunes.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Experiment Building Library\n===========================\n\nA Java framework to build and execute experiments and collect data.\n\nUses the parameter sweeping library [param-sweeper](https://github.com/davidenunes/param-sweeper/)\nCurrently, it provides a basic multi-thread experiment runner and a simple console to load experiments\n\nExample of an experiment configuration file using kafka as a service to produce and collect data:\n\n```\n# Experiment Configuration File\neuid = 123\n#load the model of experiments here\nmodel = org.bhave.experiment.dummy.DummyModel\n#your default experiment runner, we will add grid capabilities later\nrunner = org.bhave.experiment.run.MultiThreadedRunner\n\n#kafka \ndata.producers.0 = org.bhave.experiment.data.producer.KafkaDataProducer\ndata.producers.0.broker.port = 9092\ndata.producers.0.broker.host = localhost\ndata.producers.0.broker.topic = test\n\n#statistics to be used in the data production\ndata.producers.0.stats.0 = org.bhave.experiment.dummy.DummyStats\ndata.producers.0.stats.1 = org.bhave.experiment.dummy.DummyStats\n\n#consumes data stored in memory in the data producers\ndata.consumers.0 = org.bhave.experiment.data.consumer.KafkaDataConsumer\n\n#dummy exporter that prints the data received in kafka to the standard output\ndata.consumers.0.export.0 = org.bhave.experiment.dummy.StdOutDataExporter\n\n#map consumer to producer\ndata.consumers.0.producer = 0\n\n#if you use the FileDataExporter class you need to add these configurations\n#data.consumers.0.export.0.file.name = test.csv\n#data.consumers.0.export.0.file.append = true\n\n\n# experiment parameter space\nruns = 1\n\nparams.0.name = p1\nparams.0.sweep = sequence\nparams.0.type = double\nparams.0.value.from = 0\nparams.0.value.to = 100\nparams.0.value.step = 0.5\n\nparams.1.name = p2\nparams.1.sweep = sequence\nparams.1.type = int\nparams.1.value.from = 0\nparams.1.value.to = 10\nparams.1.value.step = 1\n\n```\n\n## Running an Experiment ## \nTo run experiments and take advantage of multiple existing processing nodes (multiple cores for instance) I include a MultiThreadedRunner class (see example above). This runner basically takes the experiment and submits the multiple runs making sure all the cores are allways busy. I have developed another runner that uses a grid infrastructure (using the [gridgain](http://www.gridgain.com/) platform) to deploy the simulation runs but this is not yet included.\n\nTo run an experiment we need something to assemble all the experiment components into one place. For this we have the _ExperimentConsole_ implementations. There are two options, a simple GUI based console which allow us to load configuration files and start experiments and a text-based console which basically loads a given configuration file and displays the progress using a text-based progress bar. \n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidenunes%2Fjexperiment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidenunes%2Fjexperiment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidenunes%2Fjexperiment/lists"}