Deep LearningstringのTFRecordを作る時にTypeError 猫の画像とラベルを含んだTFRecordを作ろうとして表題のエラー。 TypeError: 'cat' has type str, but expected one of: bytes 使ったコードは公... 2020.09.28Deep Learning
AtCoderAtCoder Beginner Contest 179の感想 ABC179に参加した。 A - Plural Form やるだけ。 Pythonは足し算みたいに文字列を扱えるので楽ちん。 s = input() print(s + 's') if s != ... 2020.09.22AtCoder
LinuxSSHでエラー kex_exchange_identification: read: Connection reset by pee クライアントの固定IPを変えた後にリモートサーバーにSSHしたら表題のエラー。 kex_exchange_identification: read: Connection reset by pee ファイアウォール(U... 2020.09.15 2020.10.16Linux
AtCoderAtCoder Beginner Contest 178の感想 ABC178に参加した。 A - Not 0を1、1を0にする。 1-xを計算するか、1と排他的論理和 1^x を取ればOK。 x = int(input()) ans = 1 - x print(ans... 2020.09.14 2020.09.17AtCoder
PythonPythonのitertoolsで順列や組合せを重複あり・なしで全列挙する 順列や組合せを求めたいときに、ネストしたループを組むと可読性が低いしネストの回数が変わるとコードの保守も面倒くさい。 itertoolsを使えば、読みやすいコードで全列挙を簡単にしてくれる。 組合せイテレータは... 2020.09.10Python
AtCoderAtCoder Beginner Contest 177の感想 ABC177に参加した。 A - Don't be late やるだけ。 d, t, s = map(int, input().split()) if d / s <= t: print('... 2020.08.30 2020.09.10AtCoder
Pythonpip installでpermission deniedが出てsudoや–userでも上手く行かない pip installした時にpermission deniedが起きた。 --userフラグを使うと上手くいくらしい。 pip install hogehoge --user が、またpermission de... 2020.08.26Python
AtCoderAtCoder Beginner Contest 176の感想 ABC176に参加した。 A - Takoyaki やるだけ。 n, x, t = map(int, input().split()) if n % x == 0: ans = n // x else:... 2020.08.23 2020.09.08AtCoder
LinuxPyQtのinstallでERROR: Command errored out with exit status 1 Jetson Nanoにてpyqtをインストールしようとしたが表題のエラーが発生。 sudo pip3 install pyqt5 (中略) ERROR: Command errored out with exit st... 2020.08.19Linux
PythonLightGBMでAttributeError: ‘LGBMRegressor’ object has no attribute ‘feature_name_’ LightGBMを使っていると表題のエラー。 feature_name_属性がないと怒られる。 最新のmasterブランチにこの属性は含まれていないようで、nightlyビルドを使ってみたらエラーは出なくなった。 ... 2020.08.16Python