FinML Toolkit
A utility toolkit for logging, tracking, and managing financial ML operations. Each command records timestamped entries to its own log file for auditing and review.
Commands
Core Operations
| Command | Description |
|---|
| INLINECODE0 | Log a run entry (view recent entries if no input given) |
| INLINECODE1 |
Log a check entry for verification tasks |
|
convert <input> | Log a convert entry for format conversion tasks |
|
analyze <input> | Log an analyze entry for analysis tasks |
|
generate <input> | Log a generate entry for generation tasks |
|
preview <input> | Log a preview entry for preview tasks |
|
batch <input> | Log a batch entry for batch processing tasks |
|
compare <input> | Log a compare entry for comparison tasks |
|
export <input> | Log an export entry for export tasks |
|
config <input> | Log a config entry for configuration tasks |
|
status <input> | Log a status entry for status tracking |
|
report <input> | Log a report entry for reporting tasks |
Utility Commands
| Command | Description |
|---|
| INLINECODE12 | Show summary statistics across all log files |
| INLINECODE13 |
Export all data in json, csv, or txt format |
|
search <term> | Search all log entries for a term (case-insensitive) |
|
recent | Show the 20 most recent entries from history |
|
status | Health check — version, data dir, entry count, disk usage |
|
help | Show available commands |
|
version | Show version (v2.0.0) |
Data Storage
All data is stored in ~/.local/share/finml-toolkit/:
- - Each command writes to its own log file (e.g.,
run.log, check.log, analyze.log) - All actions are also recorded in
history.log with timestamps - Export files are written to the same directory as
export.json, export.csv, or INLINECODE26 - Log format:
YYYY-MM-DD HH:MM|<input> (pipe-delimited)
Requirements
- - Bash (no external dependencies)
- Works on Linux and macOS
When to Use
- - When you need to log and track financial ML operations over time
- To maintain an audit trail of run, check, convert, analyze, or generate actions
- When you want to search or export historical operation records
- For batch tracking of ML processing pipelines
- To compare and report on financial data processing tasks
- When managing configurations for finml workflows
Examples
CODEBLOCK0
Configuration
Set FINML_TOOLKIT_DIR environment variable to change the data directory. Default: INLINECODE29
Output
All commands output to stdout. Redirect with finml-toolkit run > output.txt.
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
技能名称:金融机器学习
FinML工具包
用于记录、追踪和管理金融机器学习操作的工具包。每个命令都会将带时间戳的条目记录到各自的日志文件中,以便审计和审查。
命令
核心操作
| 命令 | 描述 |
|---|
| run <输入> | 记录运行条目(若无输入则查看最近条目) |
| check <输入> |
记录检查条目,用于验证任务 |
| convert <输入> | 记录转换条目,用于格式转换任务 |
| analyze <输入> | 记录分析条目,用于分析任务 |
| generate <输入> | 记录生成条目,用于生成任务 |
| preview <输入> | 记录预览条目,用于预览任务 |
| batch <输入> | 记录批处理条目,用于批量处理任务 |
| compare <输入> | 记录比较条目,用于比较任务 |
| export <输入> | 记录导出条目,用于导出任务 |
| config <输入> | 记录配置条目,用于配置任务 |
| status <输入> | 记录状态条目,用于状态追踪 |
| report <输入> | 记录报告条目,用于报告任务 |
实用命令
| 命令 | 描述 |
|---|
| stats | 显示所有日志文件的汇总统计信息 |
| export <格式> |
以json、csv或txt格式导出所有数据 |
| search <词条> | 在所有日志条目中搜索词条(不区分大小写) |
| recent | 显示历史记录中最近的20个条目 |
| status | 健康检查 — 版本、数据目录、条目数、磁盘使用情况 |
| help | 显示可用命令 |
| version | 显示版本(v2.0.0) |
数据存储
所有数据存储在 ~/.local/share/finml-toolkit/ 中:
- - 每个命令写入各自的日志文件(例如 run.log、check.log、analyze.log)
- 所有操作也记录在 history.log 中,并带有时间戳
- 导出文件写入同一目录,命名为 export.json、export.csv 或 export.txt
- 日志格式:YYYY-MM-DD HH:MM|<输入>(竖线分隔)
要求
- - Bash(无外部依赖)
- 适用于Linux和macOS
使用场景
- - 需要记录和追踪随时间变化的金融机器学习操作时
- 维护运行、检查、转换、分析或生成操作的审计追踪时
- 想要搜索或导出历史操作记录时
- 批量追踪机器学习处理流程时
- 比较和报告金融数据处理任务时
- 管理金融机器学习工作流配置时
示例
bash
记录操作
finml-toolkit run 回测策略 alpha-3
finml-toolkit check 验证投资组合权重
finml-toolkit convert csv转parquet格式
finml-toolkit analyze 行业数据相关性矩阵
finml-toolkit generate 月度业绩报告
finml-toolkit batch 处理所有第四季度收益文件
finml-toolkit compare 策略A与策略B的收益对比
finml-toolkit config 设置 risk_threshold=0.05
查看命令的最近条目(无参数)
finml-toolkit run
finml-toolkit analyze
搜索和导出
finml-toolkit search 投资组合
finml-toolkit export json
finml-toolkit stats
finml-toolkit recent
finml-toolkit status
配置
设置 FINMLTOOLKITDIR 环境变量以更改数据目录。默认值:~/.local/share/finml-toolkit/
输出
所有命令输出到标准输出。使用 finml-toolkit run > output.txt 进行重定向。
由BytesAgain提供支持 | bytesagain.com | hello@bytesagain.com