SMAC

multi-objectives

runhistory 转换成 单个cost 的工具

RunHistoryLogScaledEncoder 基类: AbstractRunHistoryEncoder

通过重载 _build_matrix() 方法实现

数据收集用来做模型训练的方法

ConfigSelector

  • 通过 self._collect_data() 实现收集
  • 通过 self._get_x_best() 实现选取最优点 (X,y) 单目标 cost 数据

多目标代理模型类

MultiObjectiveModel

Rime

librime 安装

ubuntu 20.04

build 依赖安装:

1
2
sudo apt install -y libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-locale-dev libgoogle-glog-dev libgtest-dev libleveldb-dev libmarisa-dev libopencc-dev libyaml-│··········
cpp-dev

Wps

arch linux 安装 Wps 中文版方法

参考:

安装方法

yay -S wps-office-cn --sudoloop --noconfirm wps-office-mui-zh-cn ttf-wps-fonts

不能使用中文输入法修复

fcitx

修改 /usr/bin/wps 命令内容,添加如下部分

1
2
3
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx5
export XMODIFIERS=@im=fcitx

ibus

例如: ibus + rime

uv python package manager

如何换源

全局配置

方法: 修改 ~/.config/uv/uv.toml

  1. 腾讯源

    1
    
    index-url = "https://mirrors.cloud.tencent.com/pypi/simple" # 腾讯源
  2. 清华源

    1
    
    index-url = "https://pypi.tuna.tsinghua.edu.cn/simple"
  3. 华为源

    1
    
    index-url = "https://repo.huaweicloud.com/repository/pypi/simple"

项目内配置

配置文件 pyproject.toml

1
2
3
4
5
6
7
8
9
# 影响 uv add, uv sync, uv run
[[tool.uv.index]]
url = "https://test.pypi.org/simple"
default = true


# 影响 uv pip install ... (即 pip 本身被 uv 调用的情况)
[tool.uv.pip]
index-url = "https://test.pypi.org/simple"

初始化 uv init

uv init –python $(which python)

作用: 决定使用的 python 版本,但是不会把 $(which python) 所在的环境当作默认环境