[Machine Learning] 持續在 Kaggle Notebook 上訓練模型(關閉 session 也在遠端訓練)
Kaggle Notebook 每週都有提供一段不算短的 GPU 加速時間,並在每週六更新。也正因為如此,比起 Google Colab 我更推薦使用 Kaggle Notebook。
Read More »[Machine Learning] 持續在 Kaggle Notebook 上訓練模型(關閉 session 也在遠端訓練)Kaggle Notebook 每週都有提供一段不算短的 GPU 加速時間,並在每週六更新。也正因為如此,比起 Google Colab 我更推薦使用 Kaggle Notebook。
Read More »[Machine Learning] 持續在 Kaggle Notebook 上訓練模型(關閉 session 也在遠端訓練)最近我的某項工作就是把之前的舊專案使用 PyTorch Lightning 重構成新的訓練環節,並確保分數並沒有太大變化。其中,在我將某項二分類專案重構後,試跑出現了以下錯誤:
Read More »[已解決] RuntimeError: CUDA error: device kernel image is invalid - CUDA kernel errors might be asynchronously reported at some other API call...今天我在處理多文件讀取合併時需要保留每個文件的結束點(End Of the File, EOF),並且我希望能夠逐行讀取,避免一次載入整個文件對記憶體帶來的負擔。
Read More »[Python] 如何判斷文件的 EOFPython 是個相當適合做資料處理的語言,其中 pandas 套件更是對於資料處理提供了不少方便的功能與函式。而今天我要紀錄的,就是在 pandas 的 DataFrame 資料結構中,使用 iterrows()
迭代資料時透過 tqdm 套件顯示進度條。
在我們撰寫 Python 程式碼的時候,有時候,我們會希望我們正在做的工作能夠視覺化顯示『進度條』,好方便我們掌握我們的程式執行到哪裡了。如果是這種需求的話,除了自己寫進度條外,也可以考慮使用 Python 當中相當知名的進度條模組——tqdm。
Read More »[Python] 使用 tqdm 套件展示進度條、並嘗試自己實作進度條今天在我確認前輩遺留下的程式碼時,發現了一個奇怪的問題。我想,那是前輩廢棄沒有在使用、剛好沒刪除掉的程式碼。
Read More »[已解決][Python] "_csv.reader" object is not subscriptableYou are keeping score for a baseball game with strange rules. The game consists of several rounds, where the scores of past rounds may affect future rounds' scores.
Read More »LeetCode: 682-Baseball Game 解題紀錄今天在我於 Kaggle 中建立的虛擬環境裡安裝 pytorch-lightning 框架時,遇到了以下問題:
Read More »[已解決] Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.You are given an array of integers stones
where stones[i]
is the weight of the ith
stone.
PyTorch Lightning 是把原生 PyTorch 封裝得更高級的框架套件,就像是 Keras 之於 Tensorflow 一樣(雖然 Keras 能支援的後端我記得是不少的)。
Read More »[PyTorch] pytorch-lightning 套件介紹