scikit-learn
scikit-learn model inspection workflow for loading persisted estimators, pipelines, and tree models. Use when you need to inspect `joblib` or pickle-based model artifacts, view parameters, feature names, importances, or pipeline structure, or run lightweight predictions for analysis.
v2026.11.13-21cd5683 instalaciones+3 en 7 días39 Estrellassincronizado hace 10 horas
Instalar
¿Aún no tienes la CLI de NotHoly? Instálala primero.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install aeondave/scikit-learnEscribe en ~/.notholy/skills después de comprobar la firma y el SHA-256.
FirmaFirmado, ed25519
Paquetea5e4b306…14a93aaf
a5e4b3065a26…893e14a93aaf1 archivo · 1.6 KBEscaneoMedio2 hallazgos
- No se encontró licencia
- Enlaces a dominios externos
Fuentegithub.com/AeonDave/malskill/tree/main/ai/scikit-learn@21cd568
Esta entrada todavía no está escrita en tu idioma, así que aparece en English.
En esta página
Use this when the artifact is an estimator, pipeline, or tree model rather than a deep-learning checkpoint.
When to use scikit-learn
Use scikit-learn when you need to:
- load persisted estimators or pipelines from
joblibor pickle files - inspect parameters, pipeline stages, and feature handling
- read feature importances or linear coefficients
- export or reason about decision-tree structure
Quick Start
Run the pickle/joblib examples only with trusted, verified artifacts. Inspect untrusted files in an isolated environment instead of loading them on the host.
import joblib
model = joblib.load("model.joblib")
print(type(model))
print(model.get_params().keys())High-Value Workflows
Pipeline inspection
if hasattr(model, "named_steps"):
print(model.named_steps)
if hasattr(model, "get_feature_names_out"):
print(model.get_feature_names_out())Feature importance or coefficients
if hasattr(model, "feature_importances_"):
print(model.feature_importances_)
if hasattr(model, "coef_"):
print(model.coef_)Tree export helpers
from sklearn.tree import export_text
if hasattr(model, "tree_"):
print(export_text(model))Practical Notes
joblibis the common persistence format for sklearn models with large NumPy arrays.- Pipelines often carry more insight than the final estimator alone, so inspect
named_stepsearly. feature_names_in_andget_feature_names_out()are high-value clues when reconstructing model inputs.- For untrusted
.pkl/.joblibartifacts, preferskops.io(skops.io.dump/skops.io.load) — it persists without pickle and forces explicittrusted=[...]allowlisting of any non-primitive types on load, converting the silent RCE surface of pickle into a visible whitelist decision.
import skops.io as sio
requested_types = sio.get_untrusted_types(file="model.skops")
print(requested_types)
approved_types: list[str] = [] # Add only types whose code and provenance were reviewed.
model = sio.load("model.skops", trusted=approved_types)Caveats
joblib.loadand pickle are unsafe for untrusted files;skops.iois a different format, not a safe loader for an arbitrary existing pickle.- ONNX avoids restoring the original Python object, but its graph can express arbitrary computations. Isolate serving and bound CPU/memory; a format change is not a trust boundary (scikit-learn persistence security limits).
- Cross-version loading is not guaranteed to be stable.
- Some estimators expose rich introspection, while others offer almost none beyond
get_params().
Resources
No bundled scripts/, references/, or assets/.
Use the official scikit-learn persistence and pipeline docs for version and API specifics.
Archivos de esta versión
- SKILL.md3.3 KB
Permisos
| Permiso | Declarado | Hallado en el escaneo |
|---|---|---|
| Lee archivos | No | No |
| Escribe archivos | No | No |
| Ejecuta comandos de shell | No | No |
| Usa la red | Sí | Sí |
| Usa conectores | No | No |
| Controla un navegador | No | No |
Hallazgos del escaneo
Revisado el 13 nov 2026
- MediaLicencia · No se encontró licencia
- InfoEnlace · Enlaces a dominios externos
Un escaneo limpio baja el riesgo, pero no prueba que el paquete sea seguro. Lee lo que instalas.
| Versión | Publicada | Commit | SHA-256 | Firma | Cambio de permisos |
|---|---|---|---|---|---|
| v2026.11.13-21cd568 | 13 nov 2026 | 21cd568 | a5e4b306 | Firmada | – |
Más de AeonDave
Todo de este publicadorMás en IA, agentes y MCP
Ver la categoría- fal-assetsrehan-remade/fal-assets5
- ai-system-prompt-leakagenoorqureshi/ai-system-prompt-leakage4
- ai-prompt-injectionnoorqureshi/ai-prompt-injection4
- testing-prompt-injection-in-rag-pipelinesmukul975/testing-prompt-injection-in-rag-pipelines4
- implementing-llm-guardrails-for-securitymukul975/implementing-llm-guardrails-for-security4
- defending-llms-with-guardrailsmukul975/defending-llms-with-guardrails4
Pregunta todo lo que tu alcance permite.
Crea la cuenta, añade créditos y haz la primera pregunta en el chat o en la terminal.
- 1/3
Crea la cuenta
Individual o empresa. Puedes pasar a empresa después sin perder saldo ni claves.
IndividualEmpresa - 2/3
Añade créditos
Con tarjeta. Pagas por token, sin suscripción.
$5.00recarga mínima - 3/3
Pregunta
En el chat, o instala el CLI y ejecuta notholy login en tu terminal.
$ notholy login