原创 使用windows開發

概念 任務計劃程序: 相當於Linux的corntab 桌面版 系統配置 關閉兼容性遙測 可以看到這個進程啓動時佔用大量資源。它是通過定時任務啓動的,它的任務定義在: 任務計劃程序庫->Windows->Application Expe

原创 給WSL應用程序創建Windows快捷方式

以Pycharm爲例子: 1. 找到在子系統中pycharm啓動路徑 /opt/pycharm-2020.3.5/bin/pycharm.sh 2. 用wsl啓動在powershell中啓動 假如我的wsl子系統是Ubuntu,啓動命令應

原创 檢查LigthGBM&XGBoost&Catboost是否支持GPU

測試腳本: import lightgbm as lgb from sklearn.datasets import load_iris from sklearn.model_selection import train_test_split

原创 powershell總結

配置自動補全 安裝最新版本PSReadLine: Install-Module PSReadLine -AllowPrerelease -Force 如果不使用上面方法安裝可能碰到錯誤: Set-PSReadLineOption : 找找

原创 conda 與 pip 混用的問題

先說結論 conda 會覆蓋pip安裝的包,pip 不會覆蓋conda的包。 儘量避免混用,如果必須要混用,先用conda再用pip。 驗證conda會覆蓋pip的包 用pip 安裝numpy,記錄下安裝的版本 $ pip inst

原创 notable禁用更新

思路 從1.5.x版本的源碼(還是開源的)中找到更新檢查的位置在文件中src/main/app.ts類似: __updaterCheck = async ( notifications: Event | boolean = false )

原创 Link file

Hard link: as a real file in os, the as same size as origin file any modifition sync to origin file if origin file was

原创 conda-forge中常用的庫

featuretools python-geohash lightgbm pyarrow

原创 git關閉filemode

從Mac切換到Windows後,發現git有些文件是modified狀態: ❯ git status On branch main Changes not staged for commit: (use "git add <file>.

原创 sktime時間序列分類

from sktime.classification.interval_based import TimeSeriesForestClassifier from sktime.datasets import load_arrow_head

原创 VAR多變量預測

from statsmodels.tsa.api import VAR # VAR example from statsmodels.tsa.vector_ar.var_model import VAR from random import

原创 prophet單變量預測

# https://facebook.github.io/prophet/docs/quick_start.html import pandas as pd from fbprophet import Prophet from fbprop

原创 windows進程管理

tasklist | findstr "processname" # 查找進程名 netstat -ano |findstr "port" # 查找端口

原创 XLaunch遠程應用支持

啓動XLaunch XLaunch 要使用管理員模式啓動,否則進程就退出了並且沒有提示 設置DISPLAY參數 指定主機的ip: export DISPLAY=$(cat /etc/resolv.conf | grep nameserver

原创 使用shap解釋預測結果

變量解釋 explainer.excepted_value 預測結果的預期,有時候是一批數據預測結果的均值?? 分標籤,如果是多分類,每一個類別都會有一個預期值,分析shap value時候選擇對應標籤的excepted_value 解