Communitygithub.com

Uni-Mol Tools - 分子特性予測CLI

Uni-Mol Toolsを使用した分子特性予測モデルのトレーニングと推論のための対話型CLIです。5つのタスクタイプ(二値分類、回帰、多クラス分類、マルチラベル分類、マルチラベル回帰)をサポートします。

Uni-Mol Tools - 分子特性予測CLI とは?

このスキルは、Uni-Mol Toolsをバックエンドとして、分子のSMILES構造から様々な特性を予測する機械学習モデルを、コマンドラインから簡単にトレーニング・評価・推論できるツールです。プロジェクト管理機能により実験を整理でき、モデルのパフォーマンス履歴を自動追跡してランキング表示します。また、不要なモデルを自動または手動でクリーンアップするストレージ管理機能や、JSON形式での機械可読な出力をサポートする`--json`フラグも備えています。このCLIは、Python 3.8以上とPyTorch 1.12以上が必要で、対話モードではタブ補完やコマンド履歴などの機能を提供し、研究者や開発者が分子予測モデルを効率的に構築・運用するためのワークフローを大幅に簡略化します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-unimol-tools

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Uni-Mol Tools - 分子特性予測CLI は何をしますか?

パッケージ: cli-anything-unimol-tools コマンド: python3 -m cli_anything.unimol_tools

説明

Uni-Mol Toolsを使用した分子特性予測モデルのトレーニングと推論のための対話型CLIです。5つのタスクタイプ(二値分類、回帰、多クラス分類、マルチラベル分類、マルチラベル回帰)をサポートします。

主な機能

  • プロジェクト管理: 名前付きプロジェクトで実験を整理
  • 5つのタスクタイプ: 分類、回帰、多クラス、マルチラベルバリアント
  • モデル追跡: 自動パフォーマンス履歴とランキング
  • スマートストレージ: 使用状況の分析と低パフォーマンスモデルのクリーンアップ
  • JSON API: --jsonフラグによる完全な自動化サポート

よく使うコマンド

プロジェクト管理

# 新しいプロジェクトを作成
project create --name drug_discovery

# すべてのプロジェクトを一覧表示
project list

# プロジェクトを切り替え
project switch --name drug_discovery

トレーニング

# 分類モデルをトレーニング
train --data-path train.csv --target-col active --task-type classification --epochs 10

# 回帰モデルをトレーニング
train --data-path train.csv --target-col affinity --task-type regression --epochs 10

モデル管理

# トレーニング済みの全モデルを一覧表示
models list

# モデルの詳細とパフォーマンスを表示
models show --model-id <id>

# モデルをパフォーマンス順にランキング
models rank

ストレージとクリーンアップ

# ストレージ使用量を分析
storage analyze

# 低パフォーマンスモデルを自動クリーンアップ
cleanup auto

# 手動でクリーンアップ条件を指定
cleanup manual --max-models 10 --min-score 0.7

予測

# トレーニング済みモデルで予測を実行
predict --model-id <id> --data-path test.csv

データ形式

CSVファイルには以下が含まれている必要があります:

  • SMILES列:SMILES形式の分子構造
  • ターゲット列:予測する値(--target-colで指定)

例:

SMILES,target
CCO,1
CCCO,0
CC(C)O,1

タスクタイプ

  1. classification: 二値分類(0/1)
  2. regression: 連続値予測
  3. multiclass: 複数クラス分類
  4. multilabel_classification: 複数の二値ラベル
  5. multilabel_regression: 複数の連続値

JSONモード

任意のコマンドに--jsonフラグを追加して機械可読な出力を取得:

python3 -m cli_anything.unimol_tools --json models list

出力形式:

{
  "status": "success",
  "data": [...],
  "message": "..."
}

対話モード

コマンドなしで起動すると対話型REPLが起動:

python3 -m cli_anything.unimol_tools

機能:

  • タブ補完
  • コマンド履歴
  • コンテキストヘルプ
  • プロジェクト状態の永続化

テストデータ

サンプルデータセットは以下で入手可能: https://github.com/545487677/CLI-Anything-unimol-tools/tree/main/unimol_tools/examples

5つのタスクタイプすべてに対応するデータを含みます。

要件

  • Python 3.8+
  • PyTorch 1.12+
  • Uni-Mol Toolsバックエンド
  • 4GB以上のRAM(トレーニング時は8GB以上推奨)

インストール

cd unimol_tools/agent-harness
pip install -e .

ドキュメント

テスト

cd docs/test
bash run_tests.sh --unit -v    # 単体テスト(67テスト)
bash run_tests.sh --full -v    # 全テストスイート

パフォーマンスのヒント

  • 初期実験では10エポックから開始
  • メモリが限られている場合はバッチサイズを小さくする
  • storage analyzeでストレージを監視
  • models rankで最良のモデルを特定
  • cleanup autoで定期的にクリーンアップ

トラブルシューティング

  • CUDAエラー: バッチサイズを減らすか、CPUモードを使用
  • CSVが認識されない: SMILES列が存在するか確認
  • 精度が低い: エポック数を増やすか、学習率を調整
  • ストレージ不足: cleanup autoを実行して空き容量を確保

関連リンク

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

関連スキル