All authors
wenmin-wu avatar

Claude Skills by wenmin-wu

github.com/wenmin-wu
535 skillsA× 5350 installs256 views
Optuna Ensemble WeightsA

Learns optimal per-model blending weights via Optuna optimization, supporting negative weights for error cancellation.

code-qualitypython
0
61
Pairwise Margin Ranking LossA

Trains a transformer with MarginRankingLoss on text pairs (more/less toxic), learning to rank rather than classify when only pairwise preference labels are available.

developmentpython
0
61
Pairwise Ranking ValidationA

Evaluates ranking models by computing the fraction of preference pairs where the model correctly scores the preferred item higher.

testingpythongo
0
61
Pairwise Softmax Rank AggregationA

Converts pairwise binary predictions into continuous ranks via temperature-scaled softmax weighted sum over anchor positions.

documentationpython
0
61
Pearson Correlation MetricA

Use Pearson correlation coefficient as evaluation metric for semantic similarity regression tasks, selecting best checkpoint by correlation rather than loss

testingpython
0
61
Per Class Span FilteringA

Filters predicted NER spans using per-class minimum word-count and mean-probability thresholds to reduce false positives.

documentationpython
0
61
Prompt Text ConcatenationA

Prepends prompt question or full prompt text to input with SEP token for context-aware text evaluation.

developmentpython
0
61
Quantized Probability StorageA

Stores model softmax probabilities as uint8 (0-255) to reduce RAM by 4x during multi-model ensemble inference.

toolspython
0
61
Readability Metric FeaturesA

Extracts established readability scores (Flesch, Gunning FOG, ARI, Coleman-Liau) as numeric features from text.

code-qualitypythonapi
0
61
Regex Hybrid Ner FallbackA

Supplements transformer NER predictions with regex-based detection for structured entities (email, phone, URL), aligning regex matches back to token indices via subsequence search.

toolspython
0
61
Sentence Alignment AugmentationA

Split multi-sentence parallel pairs into aligned sentence pairs to expand training data for seq2seq models

testingpython
0
61
Sentiment Conditioned Qa SpanA

Prepend a sentiment token as the query in a QA-style input to condition span extraction on sentiment class without architectural changes

code-qualitypython
0
61
Short To Long Span PromotionA

Promotes a predicted short answer span to its enclosing long-answer candidate by matching token boundaries against pre-extracted document structure.

toolspython
0
61
Simulated Annealing Query OptimizationA

Uses simulated annealing to select the optimal subset of candidate terms for a boolean search query, maximizing a retrieval metric like AP@K.

ai-agentspython
0
61
Source Balanced Stratified FoldA

Stratifies CV folds by both target label AND data source to prevent source-specific bias in each fold.

toolspythongo
0
61
Space Aware Span PostprocessingA

Clean up character-level span predictions by removing isolated space characters at span boundaries

toolspython
0
61
Spacy Custom Ner Span ExtractionA

Train per-class spaCy NER models to extract task-specific spans as custom named entities with compounding batch sizes

documentationpython
0
61
Span Overlap F1 MetricA

Evaluates NER span predictions using bidirectional word-index overlap (>=50% both ways) to compute micro-F1 over predicted vs ground-truth spans.

datapython
0
61
Spatial Dropout EmbeddingA

Drop entire embedding channels consistently across all timesteps — preserves temporal structure better than element-wise dropout

developmentpythonapi
0
61
Spearman Correlation CallbackA

Custom Keras callback that evaluates Spearman correlation on validation data each epoch with optional early stopping.

toolspythongo
0
61
Spell Correction PreprocessingA

Applies domain-aware spelling correction before transformer input to separate spelling errors from content quality.

developmentpython
0
61
Sqrt Mse LossA

Uses square root of MSE as training loss to directly optimize for RMSE evaluation metric alignment.

developmentpython
0
61
Structured Prompt FormattingA

Format multi-field tabular data into a structured natural language prompt with labeled sections for encoder or LLM classification

ai-agentspython
0
61
Subtoken Labeling StrategyA

Controls whether all subtokens or only the first subtoken of each word receive NER labels during training and inference.

developmentpython
0
61
Taxonomy Context EnrichmentA

Enrich model input by mapping categorical codes to human-readable taxonomy descriptions and concatenating them as context for transformer models

datapythongo
0
61
Test Vocabulary AlignmentA

Fits TF-IDF vectorizer on test set first to extract vocabulary, then retrains on train set using that vocabulary for feature consistency.

toolspython
0
61
Text Overlap FeaturesA

Computes n-gram overlap counts/ratios and NER entity overlap between reference and generated text as features.

ai-agentspython
0
61
Tfidf Ngram ClassifierA

High n-gram TF-IDF (3-5 grams) with sublinear TF feeding into a weighted soft-voting ensemble of traditional ML classifiers.

ai-agentspython
0
61
Tfidf Pair Difference EncodingA

Encodes text pairs by computing the absolute difference of their TF-IDF vectors, collapsing a pair into a single fixed-length feature vector.

developmentpython
0
61
Tfidf To Boolean QueryA

Converts TF-IDF top-k terms into field-scoped boolean OR queries for structured document retrieval from a full-text index.

ai-agentspythongo
0
61
Tfidf Translation MemoryA

TF-IDF similarity retrieval from a translation memory with SequenceMatcher reranking as a fallback or ensemble component

ai-agentspython
0
61
Tfidf Weighted Word MatchA

Computes word overlap ratio between two texts weighted by inverse corpus frequency, giving rare shared words more importance than common ones.

datapython
0
61
Token Map Filtered Topk SpansA

Filters candidate span indices through a token map to skip special tokens, then cross-products top-k start/end indices with length constraints.

documentationpythongit
0
61
Token To Char Span PredictionA

Map token-level classifier outputs back to character-level spans via offset mapping, thresholding, and contiguous grouping

documentationpython
0
61
Tpu Distribution StrategyA

Auto-detects TPU vs CPU/GPU at runtime and wraps model construction in the appropriate TensorFlow distribution strategy with scaled batch size.

devopspythongo
0
61
Tpu Multicore InferenceA

Distributes inference across multiple TPU cores using torch_xla, each core writing a CSV shard, then merges shards via groupby mean.

datapython
0
61
Train Short Infer Long SequenceA

Trains a transformer at shorter sequence length for speed, then runs inference at a longer sequence length to capture more context, exploiting position embedding generalization.

developmentpythonaws
0
61
Transformer Embedding SvrA

Extracts frozen embeddings from multiple pretrained transformers and trains SVR on the concatenated features.

ai-agentspythonapi
0
61
Transformer Layer FreezingA

Freezes transformer embedding and lower encoder layers to reduce memory, speed up training, and stabilize fine-tuning.

developmentpython
0
61
Transformer Lgbm StackingA

Two-stage stacking: transformer predictions plus hand-crafted features feed into a LightGBM meta-learner.

datapython
0
61
Translation Regex PostprocessingA

Multi-rule regex pipeline to clean seq2seq translation outputs — deduplicate phrases, fix punctuation, remove artifacts

developmentpython
0
61
Triplet Loss Biencoder FinetuningA

Fine-tunes a bi-encoder with triplet loss using retrieval-mined hard negatives for dense similarity search.

ai-agentspython
0
61
Two Stage Retrieve RerankA

Two-stage pipeline where an unsupervised bi-encoder retrieves KNN candidates and a supervised cross-encoder reranks them with sigmoid thresholding

ai-agentspythongit
0
61
Uniform Stride SamplingA

Samples N items uniformly by stride from a variable-length list, always preserving the first and last elements, to fit long sequences into a fixed token budget.

datapython
0
61
Validation Finetune ContinuationA

After training on the primary split, continues fine-tuning on the validation set to adapt the model to the target distribution before inference.

testingpythonperformance
0
61
Weight Decay Bias ExclusionA

Exclude bias terms and LayerNorm weights from weight decay to prevent regularization from distorting normalization layers

researchpython
0
61
Weighted Layer PoolingA

Learns a weighted combination of CLS embeddings across all transformer layers instead of using only the last layer.

developmentpython
0
61
Whoosh Fulltext Search IndexA

Builds a Whoosh full-text search index over documents and queries it with boolean operators, field scoping, and proximity matching.

databasespythonexpress
0
61
Word2vec Spell CorrectionA

Uses Word2Vec vocabulary rank as a word frequency proxy for Norvig-style spell correction, avoiding the need for a separate frequency corpus.

ai-agentspythongo
0
61
Worker Stratified KfoldA

Stratifies CV folds by annotator/worker ID to prevent annotator style leakage across train and validation splits in crowd-sourced datasets.

documentationpython
0
61