Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measure agent performance #81

Open
benderpremier opened this issue Feb 2, 2020 · 1 comment
Open

Measure agent performance #81

benderpremier opened this issue Feb 2, 2020 · 1 comment

Comments

@benderpremier
Copy link
Contributor

The book defines in chapter 2 the notion of PEAS (Performance, Environment, Actuators and Sensors). We are currently missing a way to capture the Performance of our agents.

I am not sure what would be the best way to implement it. The performance is both a function of the Environment state and the Agent state. E.g. in the vacuum world, the book states that we can decide to measure the performance by the number of clean squares at time t, 2 being the best possible score at any point in time. Another possibility would be to take into account the state of the agent. As the agent needs energy to move and clean, the battery level could also be taken into account when measuring the performance.

Here's one way we could do it:

type PerformanceMeasure = (Environment, Agent) => Double

trait Simulation[ENVIRONMENT, PERCEPT, ACTION] {

val environment: Environment [...]

val performanceMeasure: PerformanceMeasure

val performances: Map[Agent, Double]

}

Maybe we should keep as well a history of the agent performance over time. Add the notion of step in time (i.e. one invocation of the run function of the agent)

@benderpremier
Copy link
Contributor Author

I've created a naive implementation but I am not happy about it for the time being. benderpremier#2 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant