com.github.chen0040.rl.actionselection.GreedyActionSelectionStrategy Maven / Gradle / Ivy
package com.github.chen0040.rl.actionselection;
import com.github.chen0040.rl.utils.IndexValue;
import com.github.chen0040.rl.models.QModel;
import java.util.Set;
/**
* Created by xschen on 9/27/2015 0027.
*/
public class GreedyActionSelectionStrategy extends AbstractActionSelectionStrategy {
@Override
public IndexValue selectAction(int stateId, QModel model, Set actionsAtState) {
return model.actionWithMaxQAtState(stateId, actionsAtState);
}
@Override
public Object clone(){
GreedyActionSelectionStrategy clone = new GreedyActionSelectionStrategy();
return clone;
}
@Override
public boolean equals(Object obj){
return obj != null && obj instanceof GreedyActionSelectionStrategy;
}
}