Pular para o conteúdo
Novo

DeepSeek V4.1 Flash grátis por 7 dias: 10M tokens por dia após recarga de $10 ou mais. Até 30/11.

Como funciona
aeondave/scikit-learnIA, agentes e MCP

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 instalações+3 em 7 dias39 Estrelassincronizado há 10 horas

Instalar

Ainda não tem a CLI da NotHoly? Instale primeiro.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install aeondave/scikit-learn

Grava em ⁦~/.notholy/skills⁩ depois de conferir a assinatura e o SHA-256.

AssinaturaAssinado, ed25519
+GPT9a9u1Y…0wwHwHCw==A CLI confere o SHA-256 e a assinatura antes de gravar qualquer arquivo.
Pacotea5e4b306…14a93aaf
a5e4b3065a26…893e14a93aaf1 arquivo · ⁦1.6 KB⁩
VarreduraMédio2 achados
  • Nenhuma licença encontrada
  • Links para domínios externos
Ver a varredura completa
Fontegithub.com/AeonDave/malskill/tree/main/ai/scikit-learn@21cd568

Este item ainda não foi escrito no seu idioma, então aparece em English.

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 joblib or 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.

python
import joblib

model = joblib.load("model.joblib")
print(type(model))
print(model.get_params().keys())

High-Value Workflows

Pipeline inspection

python
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

python
if hasattr(model, "feature_importances_"):
    print(model.feature_importances_)

if hasattr(model, "coef_"):
    print(model.coef_)

Tree export helpers

python
from sklearn.tree import export_text

if hasattr(model, "tree_"):
    print(export_text(model))

Practical Notes

  • joblib is the common persistence format for sklearn models with large NumPy arrays.
  • Pipelines often carry more insight than the final estimator alone, so inspect named_steps early.
  • feature_names_in_ and get_feature_names_out() are high-value clues when reconstructing model inputs.
  • For untrusted .pkl / .joblib artifacts, prefer skops.io (skops.io.dump / skops.io.load) — it persists without pickle and forces explicit trusted=[...] allowlisting of any non-primitive types on load, converting the silent RCE surface of pickle into a visible whitelist decision.
python
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.load and pickle are unsafe for untrusted files; skops.io is 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.

Arquivos desta versão

Permissões

PermissãoDeclaradaEncontrada na varredura
Lê arquivosNãoNão
Grava arquivosNãoNão
Roda comandos no shellNãoNão
Usa a redeSimSim
Usa conectoresNãoNão
Controla um navegadorNãoNão

Achados da varredura

Revisado em 13 de nov. de 2026

  1. MédiaLicença · Nenhuma licença encontrada
  2. InfoLink · Links para domínios externos

Uma varredura limpa reduz o risco, mas não prova que o pacote é seguro. Leia o que você instala.

VersãoPublicada emCommitSHA-256AssinaturaMudança de permissão
v2026.11.13-21cd56813 de nov. de 202621cd568a5e4b306Assinada–

Pergunte tudo o que o seu escopo permite.

Crie a conta, adicione créditos e faça a primeira pergunta no chat ou no terminal.

  1. 1/3

    Crie a conta

    Individual ou empresa. Dá para virar empresa depois sem perder saldo nem chaves.

    Pessoa físicaEmpresa
  2. 2/3

    Adicione créditos

    No cartão. Você paga por token, sem assinatura.

    $5.00recarga mínima
  3. 3/3

    Pergunte

    No chat, ou instale o CLI e rode notholy login no terminal.

    $ notholy login