All authors
wenmin-wu avatar

Claude Skills by wenmin-wu

github.com/wenmin-wu
535 skillsA× 5350 installs258 views
Multi Seed Fold AveragingA

Trains multiple models per CV fold with different random seeds for augmentation, then averages their predictions to reduce variance from stochastic data generation.

testingpython
0
61
Multi Source Candidate FusionA

Fuse recommendation candidates from user history, multiple co-visitation matrices, and global popularity in a priority-ordered cascade

toolspython
0
61
Multiclass To Binary CollapseA

Trains on a finer-grained multiclass target (subtypes), then collapses non-baseline classes into a single positive class for binary submission.

developmentpythongo
0
61
Nelder Mead Threshold OptimizationA

Use scipy Nelder-Mead simplex to optimize regression-to-ordinal thresholds maximizing quadratic weighted kappa on OOF predictions

documentationpython
0
61
Next Click Time DeltaA

Computes seconds until the next event within a group using diff().shift(-1) on sorted timestamps, capturing user behavior velocity.

databasespythontesting
0
61
Ngram Composite FeaturesA

Creates bi-gram and tri-gram composite categorical features by concatenating top categorical columns, then target-encodes the composites. Captures interaction effects that tree models may miss.

businesspythongo
0
61
Null Importance Feature SelectionA

Scores features by comparing actual importances against a null distribution from shuffled targets, removing features that cannot beat random noise.

datapythongo
0
61
Oof Meta FeaturesA

Generates out-of-fold predictions from auxiliary models and uses them as input features for the final model.

businesspythongo
0
61
Opponent Avoidance ScoringA

Score candidate movement directions by average distance to nearby opponents and pick the safest path for ball-carrying agents in game AI

ai-agentspythongo
0
61
Optuna Lgbm TuningA

Uses Optuna with TPE sampler for Bayesian hyperparameter optimization of LightGBM, searching key params like num_leaves, depth, and learning rate.

datapythongo
0
61
Outlier Aware Two Stage BlendingA

When a regression target has a long discrete tail (e.g. ~1% of rows pinned at -33.22 in Elo), train one regressor on the *non-outlier* subset, a separate binary classifier for the outlier flag, and splice the predictions — replace the top-K most-confident outlier predictions in the regressor's output with the outlier value, where K is calibrated on validation

testingpythongo
0
61
Outlier Rate Label EncodingA

Encode a categorical column by replacing each category with the per-category outlier rate (mean of a binary outlier flag), out-of-fold to avoid leakage — a target-aware encoding tuned to long-tail / sentinel-target problems where a binary classifier signal is more useful than the raw regression mean

testingpythongo
0
61
Pairwise Te Logit StackingA

Generates all C(n,2) pairwise feature combinations, target-encodes each pair with cuML TargetEncoder, then applies logit polynomial expansion (z, z^2, z^3) for stacking with cuML LogisticRegression.

toolspythongo
0
61
Pearson Correlation LossA

Uses negative row-wise Pearson correlation as a differentiable loss function for multi-output regression, directly optimizing the competition metric.

datapythonbackend
0
61
Per Feature Bias CorrectionA

Post-processing correction for multi-output regression — scale each output by its train-derived mean ratio to fix systematic per-feature bias

testingpython
0
61
Per Fold Threshold Voting EnsembleA

Binarizes each CV fold's predictions using its own optimized threshold, then majority-votes across folds instead of averaging raw probabilities.

testingpythonperformance
0
61
Per Partition Variance FilteringA

Apply VarianceThreshold within each data partition on combined train+test to select informative features per subgroup

datapythongo
0
61
Per Target Nan Mask TrainingA

Trains independent models per target by masking NaN labels, enabling multi-output regression on datasets where each target has different coverage.

testingpython
0
61
Per Type Model TrainingA

Trains separate models for each discrete category (e.g., molecule type, product class) to capture type-specific patterns.

datapythongo
0
61
Personnel Count ParsingA

Parse structured text fields like '1 RB, 2 TE, 2 WR' into separate numeric columns per category

datapythongo
0
61
Phase Based Strategy CyclingA

Divide a game into repeating phases (attack, mine, spawn) with turn-modular gating so the agent cycles between aggressive and economic behavior

toolspython
0
61
Play Direction NormalizationA

Mirror spatial coordinates and angles so all plays face the same direction — removes left/right asymmetry from sports and spatial data

datapythongo
0
61
Polynomial Interaction FeaturesA

Generates polynomial powers and interaction terms from selected numeric features to capture nonlinear relationships with the target.

businesspython
0
61
Popularity Fallback RecommendationA

Fills unfilled recommendation slots with globally popular recent items to handle cold-start users and short lists.

developmentpythongo
0
61
Ppo Gym Wrapper Kaggle EnvA

Wrap a Kaggle competitive game environment as an OpenAI Gym env with continuous action space for training PPO agents via stable-baselines3

developmentpythongo
0
61
Predicted Class Mass ReweightingA

Post-hoc rescales ensemble probabilities by the inverse of each class's estimated total mass across the test set, correcting for class imbalance in predictions.

businesspython
0
61
Prior Rebalancing OversamplingA

Rebalances training data by oversampling the majority class to match a known test-set class prior, reducing prediction miscalibration.

datapython
0
61
Pseudo LabelingA

Augments training data with high-confidence test predictions as pseudo labels, retrains the model, and keeps the result only if OOF AUC improves. A semi-supervised technique for tabular competitions.

datapython
0
61
Rank Averaging EnsembleA

Ensembles multiple model predictions by converting to ranks, averaging, and normalizing back to [0,1].

developmentpythongo
0
61
Rank Calibrated BlendingA

Blends predictions from multiple models by converting to ranks, weighting, and calibrating back to probabilities via rank-group means from a reference model. Ensures monotonic calibrated output.

testingpythongit
0
61
Rdkit Molecular DescriptorsA

Computes all numeric RDKit molecular descriptors from SMILES strings, filtering out NaN, constant, and infinite values to produce a clean feature matrix.

datapython
0
61
Recency Weighted Candidate GenerationA

Generates recommendation candidates by ranking a customer's purchase history by frequency and recency within a recent window.

developmentpythongo
0
61
Rectangular Flight Plan EncodingA

Encode closed rectangular patrol routes as compact direction-distance strings for fleet pathfinding on toroidal game grids

developmentpythonangular
0
61
Recursive Feature EliminationA

Uses RFE with a tree estimator to iteratively remove least important features, selecting an optimal compact feature set.

developmentpython
0
61
Regression To Cdf SmoothingA

Convert a scalar regression prediction into a smoothed CDF over discrete bins using a linear ramp instead of a hard step

testingpython
0
61
Regression To Ordinal ThresholdingA

Converts regression predictions to ordinal classes by optimizing bin thresholds to maximize Quadratic Weighted Kappa.

testingpythongo
0
61
Regularized Qda ClassifierA

Use QuadraticDiscriminantAnalysis with regularization for binary classification on data with Gaussian cluster structure

datapython
0
61
Relative Deviation FeaturesA

Computes differences and ratios between group-level aggregates and raw values to capture how each sample deviates from its group.

developmentpythongo
0
61
Ridge Xgb StackingA

Two-stage stacking where Ridge regression on OHE+scaled features produces OOF predictions fed as an extra feature to XGBoost, letting the tree model correct non-linear residuals on top of captured linear patterns.

developmentpythonrust
0
61
Rmsle Keras MetricA

Custom Keras RMSLE metric using K.log with K.clip to safely evaluate price and count regression during training

developmentpythonbackend
0
61
Row Aggregate FeaturesA

Engineers row-wise statistical features (sum, mean, std, skew, kurtosis, median, min, max) across all numeric columns per sample.

datapython
0
61
Row Wise Target NormalizationA

Normalizes each sample's multi-output target vector to zero mean and unit variance, removing per-sample scale differences before training.

testingpython
0
61
Season Phase LabelingA

Map calendar dates to categorical season phases (offseason, preseason, regular, postseason) using np.select with boundary date conditions

datapythongo
0
61
Simulated Annealing Multi OperatorA

Simulated annealing with diverse move operators (translate, rotate, swap, Levy flight, squeeze) and adaptive reheating on stagnation for combinatorial optimization

businesspython
0
61
Smiles Randomization AugmentationA

Augments molecular datasets by generating multiple randomized SMILES strings for the same molecule, exploiting SMILES non-uniqueness to multiply training samples.

businesspython
0
61
Sparse Dense Hstack LgbmA

Train LightGBM directly on a scipy.sparse.hstack of TF-IDF text vectors and dense tabular columns, passing feature_name and categorical_feature so native categorical handling survives the sparse block

developmentpythongo
0
61
Spatial Distance AggregationA

Compute min/max/mean/std of Euclidean distances from all entities to a key point, then aggregate per group for spatial feature engineering

datapython
0
61
Squeeze Compact Local SearchA

Three-stage packing refinement — uniform squeeze toward centroid, greedy compaction per object, then multi-directional local search — to tighten solutions after metaheuristic optimization

toolspython
0
61
Streaming Prediction ApiA

Online inference pattern that processes test batches sequentially, updating feature dictionaries incrementally for time-series prediction APIs.

developmentpythonapi
0
61
Strtree Spatial Index CollisionA

Use Shapely STRtree spatial index for O(n log n) polygon overlap detection instead of brute-force O(n^2) pairwise checks

developmentpythongo
0
61