サッカー勝敗予測 – K近傍法

目的
前回は線形SVMを使って、ブンデスリーガの勝敗予測を試みたが、良い結果が得られなかった。
なので今回はScikitlearnチートシートに従ってK近傍法を試してみる。
K近傍法とはWikipediaによると ...
ブンデスリーガ勝敗予測 – LinearSVM

目的
ドイツ プロサッカーリーグのブンデスリーガの勝敗予測を行ってみる。
データはFootball-Data.co.ukのデータを利用する。
各チームの勝敗予測を分類タスクととらえてSVMを利用して解く
2022/2/5 東京 レース予測 振り返り

目的
スピード指数を追加したモデルで結果予測したので、結果振り返りしつつ、改善点模索する。
第1レース予測下位の馬が上位入賞している。
着順馬名タイム予測着順予測タイム1ヴィブラフォン1:26.2101:29.552オ ...競馬結果予測 – スピード指数追加

目的
以前過去レース4を参照する予測モデルを作成した。
今回は過去レースのスピード指数を算出して、それをモデルの特徴量に加えることで予測精度を高めてみる。
スピード指数とはWikipediaによると、「全ての馬が ...
Jupyteter notebookがPermissionErrorで立ち上がらない

先日pythonの実験環境を用意していた時に、jupyter notebookの起動に失敗する事象が発生したので、その備忘録を残す。
事象venvで新しい環境を作成し、activate、jupyterのインストールを行った ...
競馬結果予測 – 直近4レース

目的
前回、単勝を予測するためにタイムを予測するモデルを作成した。
今回はこのモデルを改善する。
今回は過去4レースの成績を特徴量として追加する。
競馬データは、Kaggleで公開されているデー ...
Kedroのcsv書き出しの文字コード

目的
Kedroで文字コード指定して、ファイルに書き出す方法について備忘録として残す。
事象Kedroでcsvをsaveするときに、指定した文字コードで保存されなかった。
yamlを設定は公式ドキュメントに沿って ...
SQLAlchemyのdistinct

目的
SQLAlchemyのdistinctがうまく動かなかったので 備忘録として記録しておく。
事象動かそうとしたコードは下記
engine = create_engine("mysql://user:passwor ...