Skip to content

Commit

Permalink
v21
Browse files Browse the repository at this point in the history
  • Loading branch information
datahaki committed Oct 3, 2023
1 parent b48090a commit 3539f92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/mvn_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: mvn test with JDK 20
name: mvn test with JDK 21
on:
push:
paths:
Expand All @@ -12,10 +12,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK 20
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: '20'
java-version: '21'
distribution: 'temurin'
- name: mvn install tensor
working-directory: .
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<release>17</release>
<release>21</release>
</configuration>
</plugin>
<plugin>
Expand Down
3 changes: 1 addition & 2 deletions src/test/java/ch/alpine/subare/book/ch01/tic/Agent.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ final void feedState(State state) {

// update estimation according to reward
final void feedReward(double reward) {
Collections.reverse(states);
for (State latestState : states) {
for (State latestState : states.reversed()) {
double value = estimation.get(latestState) //
+ stepSize * (reward - estimation.get(latestState));
estimation.put(latestState, value);
Expand Down

0 comments on commit 3539f92

Please sign in to comment.