Python次元圧縮のUMAPでエラー module ‘umap’ has no attribute ‘UMAP’ PythonでUMAPを使おうとしたときに表題のエラー。 module 'umap' has no attribute 'UMAP' pip install umapだとダメで、umap... 2020.11.11Python
LinuxDockerでGPUを使おうとしたらError response from daemon: linux runtime spec devices: could not select device driver “” with capabilities: [[gpu]] docker container run --gpus all をした時に表題のエラー。 NVIDIAドライバーがDockerを認識できていないか、nvidia container tools をインストールしたけど... 2020.11.10Linux
LinuxNVIDIAドライバーのインストールでAn NVIDIA kernel module ‘nvidia-drm’ appears to already be loaded in your kernel. Ubuntu 18.04でNVIDIAドライバーを更新しようとした時に表題のエラー。 $ sudo sh NVIDIA-Linux-x86_64-455.23.04.run An NVIDIA kernel module ... 2020.11.09 2020.11.10Linux
AtCoderAtCoder Beginner Contest 182の感想 ABC182に参加した。 A - twiblr 引き算するだけ。 a, b = map(int, input().split()) ans = 2 * a + 100 - b print(ans) ... 2020.11.08 2020.12.16AtCoder
AtCoderAtCoder Beginner Contest 181の感想 ABC181をコンテスト後に解いた。 A - Heavy Rotation 偶数か奇数か判定する。 n = int(input()) if n % 2 != 0: print('Blac... 2020.11.01 2020.12.16AtCoder
PythonLightGBMでCannot use Dataset instance for prediction, please use raw data instead LightGBMで2値分類の学習をさせていた際、表題のエラー。 import lightgbm as lgb lgb_train = lgb.Dataset(X_train, label=y_train) lgb_eval... 2020.10.27Python
Deep LearningsklearnやkearsのCross Validationを並列で実行して高速化する Kaggleに取り組んでいた時、実行時間制限付きのノートブックコンペがあり、モデルを高速に実行する必要が出てきた。 そこで、クロスバリデーションなら同時に更新する値や配列が無いため、なんとか並列実行出来ないか調べてみたところ... 2020.10.23 2020.12.06Deep Learning
Deep LearningTensorflowやKerasで乱数シードを固定して同じ結果が出るようにする 機械学習やディープラーニングに取り組む時、様々なモデルを作って精度を比較することが多い。 しかし、TensorflowやKerasではGPUを用いた学習の時に乱数を固定する方法がなく、結果が変わってもモデルの改良によるものな... 2020.10.19Deep Learning
AtCoderAtCoder Beginner Contest 180の感想 ABC180をコンテスト後に解いた。 A - box やるだけ。 n, a, b = map(int, input().split()) ans = n - a + b print(ans) B - Var... 2020.10.18 2020.12.16AtCoder
Pythonsklearnのlog_lossでValueError: y_true contains only one label (0). 2値分類タスクでKfold分割してloglossを計算した時にエラー。 from sklearn.metrics import log_loss loss = log_loss(y_valdation, oof_pr... 2020.10.17Python