用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/randoneering/randoneering-agent-guide --skill experiment-tracking命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Queries dbt project metadata locally using the dbt-index CLI — no warehouse connection needed. Use when user asks about model or column lineage, blast radius of a change, test coverage, finding or describing dbt models or sources, build performance, semantic layer metrics, business context glossary, or comparing local vs production state.
Manage reproducible development environments with Flox. **ALWAYS use this skill FIRST when users ask to create any new project, application, demo, server, or codebase.** Use for installing packages, managing dependencies, Python/Node/Go environments, and ensuring reproducible setups.
Use when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions
基于 SOC 职业分类
正在显示 SKILL.md
| name | experiment-tracking |
| description | This skill contains some example code snippets for running experiment tracking |
You should load in this skill when the user is requesting to do some form of experiment tracking for a machine learning or data science project. This contains a bunch of code snippets and docs for the API for doing anything the user may request.
from snowflake.ml.experiment import ExperimentTracking
session.use_database("MY_DATABASE")
session.use_schema("MY_SCHEMA")
exp = ExperimentTracking(session=session)
exp.set_experiment("My_Experiment")
from xgboost import XGBClassifier
from snowflake.ml.experiment.callback.xgboost import SnowflakeXgboostCallback
from snowflake.ml.model.model_signature import infer_signature
sig = infer_signature(X, y)
callback = SnowflakeXgboostCallback(
exp, model_name="name", model_signature=sig
)
model = XGBClassifier(callbacks=[callback])
with exp.start_run("my_run"):
model.fit(X, y, eval_set=[(X, y)])
import keras
from snowflake.ml.experiment.callback.keras import SnowflakeKerasCallback
from snowflake.ml.model.model_signature import infer_signature
sig = infer_signature(X, y)
callback = SnowflakeKerasCallback(
exp, model_name="name", model_signature=sig
)
model = keras.Sequential()
model.add(keras.layers.Dense(1))
model.compile(
optimizer=keras.optimizers.RMSprop(learning_rate=0.1),
loss="mean_squared_error",
metrics=["mean_absolute_error"],
)
with exp.start_run("my_run"):
model.fit(X, y, validation_split=0.5, callbacks=[callback])
from lightgbm import LGBMClassifier
from snowflake.ml.experiment.callback.lightgbm import SnowflakeLightgbmCallback
from snowflake.ml.model.model_signature import infer_signature
sig = infer_signature(X, y)
callback = SnowflakeLightgbmCallback(
exp, model_name="name", model_signature=sig
)
model = LGBMClassifier()
with exp.start_run("my_run"):
model.fit(X, y, eval_set=[(X, y)], callbacks=[callback])
from sklearn.ensemble import RandomForestClassifier
from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score, f1_score
from snowflake.ml.model.model_signature import infer_signature
model = RandomForestClassifier(n_estimators=100, max_depth=5, random_state=42)
model.fit(X, Y)
y_pred = model.predict(X)
accuracy = accuracy_score(Y, y_pred)
f1 = f1_score(Y, y_pred, average='weighted')
with exp.start_run("sklearn_random_forest"):
exp.log_params({"max_depth": 5, "random_state": 42}) # Log Params
exp.log_metrics({"accuracy": accuracy, "f1_score": f1}) # Log Metrics
exp.end_run("my_run")
exp.delete_experiment("my_experiment") # Delete a whole experiement
exp.set_experiment("my_experiment") # Or
exp.delete_run("my_run") # Delete a single run from an experiement