Opening study with KataGo

Create a study plan, track your progress and hold yourself accountable.
hakuseki
Dies with sente
Posts: 100
Joined: Thu Oct 29, 2020 6:18 am
Rank: KGS 2 dan
GD Posts: 0
KGS: hakuseki
Been thanked: 15 times

Humanlike AI opponents?

Post by hakuseki »

I tried playing an opening (up to move 46) against the AI from the Play Go Against a DCNN page.

My mistakes totaled 17.3 points (and the AI's mistakes totaled 17.4 points). Actually, it was mostly the same mistake, as we both kept ignoring the most urgent point on the board.

I am not sure if I will bother to post a review, but I think it is worth noting that just because I have reduced my point loss against one AI does not mean I have improved by a similar amount in general.

At some point I'd like to practice more openings against the linked AI or something similar, i.e. a policy model trained to emulate human players. I'd be interested in alternatives to the site I linked, because it doesn't provide a way to download an SGF, so I'm left to transcribe it by hand.

Also, this reminds me that I wanted to talk about metrics a bit. I've been judging my performance purely in terms of point loss, but I think this may have drawbacks. For instance, it may lead me to avoid difficult variations, even if they would be equally difficult for my opponent.

I am considering a new metric where I would subtract half my opponent's score loss from my score loss, so e.g. if my point loss is 20 points and my opponent's is 6, then my adjusted point loss would be 17 points. This would help encourage me to play variations that are difficult for my opponent, and also penalize me less when both players repeatedly fail to notice something.

I won't be adopting this immediately, however, as I still need to finish my current kifu study project, and changing metrics mid-way through would just be confusing.
hakuseki
Dies with sente
Posts: 100
Joined: Thu Oct 29, 2020 6:18 am
Rank: KGS 2 dan
GD Posts: 0
KGS: hakuseki
Been thanked: 15 times

Technique notes for games 47-56

Post by hakuseki »

I'm about halfway through writing up these notes, but I feel like it is taking too long and I'd like to move on to playing more games, so I may not finish.

Anyway, while playing my next set of openings I'd like to focus on the following questions:
:b1: Am I moving in the right direction? / Am I approaching from the right direction?
:w2: Am I using the right technique?

Here are my incomplete technique notes:

Technique notes for games 47-56
(Note: these games were played with group tax, which affects opening strategy somewhat)

Surrounding is better than approaching
Click Here To Show Diagram Code
[go]$$B :b1: should be at [b]a[/b]
$$ --------------------
$$ | . . . . . . . . . .
$$ | . . . . . . . . . .
$$ | . . . . O B . . . .
$$ | . . . W . X . . . O
$$ | . . . . . . . . . .
$$ | . . . W . . . . . .
$$ | . . . . . X . . . .
$$ | . . 1 a . . . . . .
$$ | . . . . . . . . . .
$$ | . . . , . . . . . ,[/go]
In this position I played :b1:. My reasoning was as follows: Black approached, and white played a fourth-line extension (see marked stones). A double approach is good in that situation. The extra stones don't matter. In fact, the extra stones do matter, because black has a chance to surround instead of merely approaching. Black should have played at a instead. As it is, :b1: invites white to answer at a, keeping black separated.

Hane a contacting stone
Click Here To Show Diagram Code
[go]$$Wc :b2: should be at [b]a[/b]
$$ --------------------
$$ | . . . . . . . . . .
$$ | . . . . . . . . . .
$$ | . . . . O X . . . .
$$ | . . . O . X . . . O
$$ | . . . b 2 . . . . .
$$ | . . . O c 1 a . . .
$$ | . . . . . X . . . .
$$ | . . X . . . . . . .
$$ | . . . . . . . . . .
$$ | . . . , . . . . . ,[/go]
I kind of think I should have addressed this in my joseki review, but I'm including it here anyway. I played :b2: but I should have played at a. Perhaps a hane against a contacting stone is intuitive, and :b2: is weak for black as well as white.

Actually I don't think this is so clear-cut, which is why I now hesitate to discuss this as a "technique" mistake. If white responds at b, as happened in the game, then white has been tricked and the sequence is not bad for black. Instead, white should block at c, but I think this requires deep reading to verify.

Two-space extension to create a base
Click Here To Show Diagram Code
[go]$$Wc :b2: should be at [b]a[/b]
$$ --------------------
$$ | . . . . . . . . . .
$$ | . . . . . . . . . .
$$ | . . . . O X . . . .
$$ | . . . O . X . . . O
$$ | . . . O X . . . . .
$$ | . . . O X O . . . .
$$ | . . . 1 . X . . . .
$$ | . . X . . . . . . .
$$ | . . . . . . . . . .
$$ | . . 2 , . . . . . ,
$$ | . . a . . . . . . .
$$ | . . . . . . . . . .
$$ | . . . . . . . . . .
$$ | . . W . . . . . . .
$$ | . . . . . . . . . .
$$ | . . . X . . . . . ,
$$ | . . . . . . X . . .
$$ | . . . . . . . . . .
$$ | . . . . . . . . . .
$$ --------------------[/go]
I am not sure why I played only a one-space extension here, but it should clearly be a two-space extension, both for stability and to pincer white's marked stone.

Capture or connect?
Click Here To Show Diagram Code
[go]$$Wc Should black respond at [b]a[/b] or [b]b[/b]?
$$ --------------------
$$ | . . . . . . . . . .
$$ | . . . . . . . . . .
$$ | . . . . O X . . . .
$$ | . . . O . X . . . O
$$ | . . . O X b . . . .
$$ | . . . O X O X . . .
$$ | . . . O O X a . . .
$$ | . . X . . 1 . . . .
$$ | . . . . . . . . . .
$$ | . . X , . . . . . ,[/go]
White plays the atari at :w1:. In this case black should connect at a. In this case I think a does more to develop the center; although white's stone is not captured immediately, the remaining aji doesn't seem very useful for white. Still, I played the wrong move of b here, losing 2.4 points.

I think this kind of capture vs. connect situation is interesting, however, because this decision can go either way depending on the surrounding context. I'd like to collect a set of example positions like this to compare these moves. Once I have several such examples I may create a new post.
Click Here To Show Diagram Code
[go]$$Bc Should white extend or jump?
$$ --------------------
$$ . . . . . . . . . . |
$$ . . . . . . . . . . |
$$ . . . . O . . . . . |
$$ , . . . . . X . . . |
$$ . . . . . . . . . . |
$$ . . . . . . . . . . |
$$ . . . . . . . . . . |
$$ . . . . . . . . . . |
$$ . . . . . . a . . . |
$$ , . . . . . b . . . |
$$ . . . . . 1 O . . . |
$$ . . . . . X O . . . |
$$ . . . . . X X O . . |
$$ . . . . . . . O . . |
$$ . . . . . . . . . . |
$$ , . . . . . O . . . |
$$ . . . . X . . . . . |
$$ . . . . . . . . . . |
$$ . . . . . . . . . . |
$$ --------------------[/go]
Black is pushing from behind. How should white respond?

The answer is the one-space jump at a. This move is faster than a nobi, but it's important to check that the weakness of the one-space jump is not exploitable:
Click Here To Show Diagram Code
[go]$$B If black extends
$$ . . . . . . . . . . |
$$ . . . . . . . 2 . . |
$$ . . . . . . O . . . |
$$ , . . . . 1 , . . . |
$$ . . . . . X O . . . |
$$ . . . . . X O . . . |
$$ . . . . . X X O . . |
$$ . . . . . . . O . . |
$$ . . . . . . . . . . |
$$ , . . . . . O . . . |[/go]
Click Here To Show Diagram Code
[go]$$B If black wedges
$$ . . . . . . . . . . |
$$ . . . . . . . 4 . . |
$$ . . . . . . O . . . |
$$ , . . . . 3 1 2 . . |
$$ . . . . . X O . . . |
$$ . . . . . X O . . . |
$$ . . . . . X X O . . |
$$ . . . . . . . O . . |
$$ . . . . . . . . . . |
$$ , . . . . . O . . . |[/go]
Running technique
Click Here To Show Diagram Code
[go]$$Bc How should white mobilize the marked stone?
$$ ---------------------------------------
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . X . . . . X . . W . . . . . |
$$ | . O . O X . . . . , . . . . . X . . . |
$$ | . X O O . . . . . . . . . . . . . . . |
$$ | . O X O O X . . . . . . . . . X O . . |
$$ | . O X X X . X . . . . . . . . . O . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . , . . . . . , . . . . . O . . . |[/go]
Solution follows:
Click Here To Show Diagram Code
[go]$$Wc Nice shape
$$ ---------------------------------------
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . X . . . . X . . O . . a . . |
$$ | . O . O X . . . . , 2 1 . . . X . . . |
$$ | . X O O . . . . . . . . . b . . . . . |
$$ | . O X O O X . . . . . 3 . . . X O . . |
$$ | . O X X X . X . . . . . . . . . O . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . , . . . . . , . . . . . O . . . |[/go]
I've previously discussed how this is a nice shape. The 3-3 invasion at a is also a good option. My move was the one-space jump at b, but this is inferior by about 0.4 points.
Click Here To Show Diagram Code
[go]$$Wc Game continuation
$$ ---------------------------------------
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . X . . . . X . . O . . . . . |
$$ | . O . O X . . . . , a d 4 . . X c . . |
$$ | . X O O . . . . . . 3 . . 1 5 . 2 b . |
$$ | . O X O O X . . . . . . . . . X O . . |
$$ | . O X X X . X . . . . . . . . . O . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . , . . . . . , . . . . . O . . . |[/go]
Actually every white move here is a mistake. :w3: should perhaps be at a. But I will especially remember that :w5: is aji keshi. Black will connect against the peep, which removes the possibility of a later atari by white stones at b and c. Instead, the kosumi-tsuke at d is a tesuji to make shape.
hakuseki
Dies with sente
Posts: 100
Joined: Thu Oct 29, 2020 6:18 am
Rank: KGS 2 dan
GD Posts: 0
KGS: hakuseki
Been thanked: 15 times

Ten more openings

Post by hakuseki »

I've played another ten openings. This time my average loss was about 12.88 points. This is 4.01 points worse than my result in my previous set of 10 games. I might attribute this apparent step backwards to such causes as:

:b1: Too much time spent reviewing instead of playing.
:w2: Focusing less on defense. In my previous set of games, I made few mistakes on defense, which led me to think I didn't need to focus on it as much. But after changing my focus, I am making more defense mistakes.
:b3: Frequently ignoring approaches to approach a different corner. This is not wrong but may lead to a more complex opening with more mistakes.
:w4: Playing while tired.
:b5: Too small sample size.

Anyway, I would like to try to replicate my previous result of 8.87 points lost, on average, in the opening. That's already a big improvement compared to a month or two ago, so I would be happy if I could consistently achieve it. I will try following the same checklist I used in that set, and play more games, perhaps 30.
hakuseki
Dies with sente
Posts: 100
Joined: Thu Oct 29, 2020 6:18 am
Rank: KGS 2 dan
GD Posts: 0
KGS: hakuseki
Been thanked: 15 times

Results from 64 more openings

Post by hakuseki »

I haven't posted recently, but my studies continue. I've played a new set of 64 openings, moves 1-46. Here are my results:

Code: Select all

              Point Loss    Adjusted Point Loss
Games 01-08   16.7          13.1
Games 09-16   12.7          12.4
Games 17-32   12.8          11.2
Games 33-64    8.3           6.9
As mentioned, I was in a bit of a slump previously, but I seem to have recovered and maybe even improved a bit. Some observations:

:b1: I'm not spending as much time reviewing now. Reviewing is still important, but I think I should spend more time playing the game than reviewing it.
:w2: I am trying to play to my strengths rather than strictly following the AI style, especially in the very early moves. I think this leads to positions that I understand a bit better and results in me losing fewer points in the late opening.
:b3: I am paying attention to the "Adjusted Point Loss" which is calculated as my point loss minus 1/2 of my opponent's point loss. Essentially, I am taking credit for causing half of my opponent's mistakes. This lets me play a bit more adventurously when I feel so inspired. For now I have reported my point loss as well, for comparison to earlier results, but I will stop tracking this in the future.
:w4: I am still studying group tax-style play, but I have stopped forcing the traditional cross-hoshi setup. I do play cross-hoshi at every opportunity, but my opponent has the option to decline now.
:b5: I'm setting up 8 different types of games: me playing as black or white; either the full KataGo engine or just the policy model for my opponent; either stone scoring or area scoring for the rules. I am always reviewing with stone scoring even if the game was played under area scoring; these variations are just to induce a variety of play styles from my opponent.
hakuseki
Dies with sente
Posts: 100
Joined: Thu Oct 29, 2020 6:18 am
Rank: KGS 2 dan
GD Posts: 0
KGS: hakuseki
Been thanked: 15 times

Tsumego Practice

Post by hakuseki »

I've been practicing life and death using the BadukPop app. I upgraded to a Pro account so I can study problems with no time limit.

On September 1st of this year, I measured my time to complete a set of 5 problems at each difficulty level 1 through 5. There's also a level 6, but I did not attempt those problems as they felt very hard to me.

Code: Select all

Level 1:  3.4 seconds per problem
Level 2:  6.5 seconds per problem
Level 3: 10.9 seconds per problem
Level 4: 25.3 seconds per problem
Level 5: 58.5 seconds per problem
Since then, I have been drilling the level 4 problems every day. Today I achieved a time of 10.3 seconds per problem, measured over 15 problems. This is less than my original time for level 3 problems, so one might say that I have improved by one level, which was my goal.

To prove that I have advanced by one level, I will next need to achieve 25.3 seconds on level 5 problems and 58.5 seconds on level 6 problems. I will post later on how that goes.
Post Reply