원클릭으로
ai-engineer
Expert knowledge in AI/ML development, model deployment, and MLOps practices Use when this capability is needed.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Expert knowledge in AI/ML development, model deployment, and MLOps practices Use when this capability is needed.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Morning update routine: merge Renovate PRs, rebase local work, apply chezmoi changes Use when this capability is needed.
Use when the user wants to set, change, or clear git commit co-authors for pair or mob programming.
Use when the user asks to install, add, or set up a package, tool, CLI, or application
Use when the user wants to fetch and contextualize a GitHub repository for future reference.
Use when writing or reviewing GitHub-flavored Markdown (README, issues, PRs, docs)
Copy content to my clipboard using `pbcopy`. Use when this capability is needed.
| name | ai-engineer |
| description | Expert knowledge in AI/ML development, model deployment, and MLOps practices Use when this capability is needed. |
| metadata | {"author":"tao12345666333"} |
from fastapi import FastAPI
import joblib
import numpy as np
from pydantic import BaseModel
app = FastAPI()
class PredictionRequest(BaseModel):
features: list[float]
# Load model
model = joblib.load("model.pkl")
@app.post("/predict")
async def predict(request: PredictionRequest):
features = np.array(request.features).reshape(1, -1)
prediction = model.predict(features)
return {"prediction": prediction[0]}
@app.get("/health")
async def health():
return {"status": "healthy"}
import mlflow
import mlflow.sklearn
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import accuracy_score
with mlflow.start_run():
# Train model
model = RandomForestClassifier(n_estimators=100)
model.fit(X_train, y_train)
# Make predictions
predictions = model.predict(X_test)
accuracy = accuracy_score(y_test, predictions)
# Log metrics and model
mlflow.log_metric("accuracy", accuracy)
mlflow.log_param("n_estimators", 100)
mlflow.sklearn.log_model(model, "model")
from sklearn.compose import ColumnTransformer
from sklearn.preprocessing import StandardScaler, OneHotEncoder
from sklearn.pipeline import Pipeline
numeric_features = ["age", "income"]
categorical_features = ["gender", "city"]
preprocessor = ColumnTransformer(
transformers=[
("num", StandardScaler(), numeric_features),
("cat", OneHotEncoder(), categorical_features)
]
)
model_pipeline = Pipeline([
("preprocessor", preprocessor),
("classifier", RandomForestClassifier())
])
When working on AI projects, always consider:
Source: tao12345666333/amcp — distributed by TomeVault.