Expand description
Auto-generated module
🤖 Generated with SplitRS
Functions§
- accuracy_
from_ cm - Compute overall accuracy from a confusion matrix.
- auc_
trapezoid - Compute AUC using the trapezoidal rule.
- average_
path_ length - Expected path length of a random BST with
nnodes. - backward_
substitution_ t - Backward substitution against Láµ€: solve Láµ€ x = b.
- best_
split - Find the best split for a set of samples.
- build_
isolation_ tree - Build one isolation tree from a subsample.
- build_
tree - cholesky
- Cholesky decomposition (lower triangular factor).
- compute_
pairwise_ affinities - Compute pairwise affinities p_{ij} (symmetric, normalised) for t-SNE.
- confusion_
matrix - Compute the confusion matrix for binary or multi-class classification.
- cross_
val_ linear_ regression - Run k-fold cross-validation for a linear regression model (R² metric).
- dot
- feature_
bagging - Select a random subset of
kfeature indices from0..d. - forward_
substitution - Forward substitution: solve L x = b where L is lower-triangular.
- gini_
impurity - Compute Gini impurity of a label set.
- kernel_
matrix - Compute the kernel matrix K[i, j] = k(X[i], X[j]).
- kmeans
- Run k-means clustering with k-means++ initialisation.
- lof_
scores - Compute LOF scores for all points in
x. - macro_
f1 - Macro-averaged F1 across all classes.
- mae
- Mean absolute error.
- majority_
vote - mean_
vec - mse
- Mean squared error.
- multiclass_
prf - Per-class precision, recall, and F1 for multi-class problems (one-vs-rest).
- pca_fit
- Fit PCA using the covariance matrix and power iteration.
- power_
iteration - Power iteration to find the dominant eigenpair of a symmetric matrix.
- precision_
recall_ f1 - Compute precision, recall, and F1 score from a binary confusion matrix.
- r2
- R² (coefficient of determination).
- random_
forest_ oob - Compute the out-of-bag error for a random forest.
- rbf_
kernel - RBF (squared-exponential) kernel.
- reach_
dist - Compute the reachability distance: max(k-dist(o), dist(p, o)).
- rmse
- Root mean squared error.
- roc_auc
- Compute the ROC AUC (Area Under the Curve) for binary classification.
- roc_
curve - Compute the full ROC curve: returns
(fpr, tpr)sorted by threshold. - sigmoid
- sigmoid_
vec - solve_
linear_ system - Solve Ax = b via Gaussian elimination with partial pivoting.
- standardize
- tsne
- Run a simplified t-SNE reduction to 2 dimensions.
- variance_
vec - vec_add
- vec_
norm - vec_
scale - vec_sub
- weighted_
f1 - Weighted-averaged F1 (weighted by class support).