DataGridViewに複数行で結合した列の表題を表示する
DataGridView に、2 行 3 列で、1 行目が結合した以下のような表題を表示してみます。DataGridViewのCellPaintingイベントで、罫線や文字列を描画します。
+--------------------------------------+ | 結合された1行目の表題 | +------------+------------+------------+ | 1列目の表題 | 2列目の表題 | 3列目の表題| +------------+------------+------------+続きを読む
リストの要素を並べ替える
リストの要素の並べ替えについて考えます。たとえば、リスト [0, 1, 2, 3, 4] があり、
- 0 を 4 の前に移動
- 1 を 3 の前に移動
を実施し、結果として [2, 1, 3, 0, 4] のように並べ替えたいとします。
続きを読むVision Transformer (ViT) について調べた
Vision Transformer について、Keras の実装 を使って調べました。ノートブックは こちら。
BatchNormalization について
BatchNormalizationについて勉強しました。作成したノートブックは こちら。
TortoiseGitでGithubにPersonal Access Tokenでアクセスする
Githubにアクセスするときの認証方法が変更になっています
github.blog
WindowsでTortoiseGitを使って、この認証方法でアクセスするには、
- Creating a personal access token - GitHub Docs を参考にPersonal Access Tokenを作成する。
- Gitリポジトリの下にある .git/config ファイルの url で、"https://github.com/..." となっているところを "https://ユーザ名:作成したトークン@github.com/..." と変更する (How to start using a personal access token to authenticate git on windows - #10 by richardofsussex - How to use Git and GitHub - GitHub Support Community)。