Skip to content

[Autoloop: build-tsikit-learn-scikit-learn-typescript-migration]Β #8

@github-actions

Description

@github-actions

πŸ€– This PR is maintained by Autoloop. Each accepted iteration adds a commit to this branch.

tsikit-learn β€” scikit-learn TypeScript Migration

Program: Build tsikit-learn: scikit-learn β†’ TypeScript migration (Issue #5)
Best Metric: 15 sklearn_features_ported

What's been implemented so far

Phase 1 β€” Foundation:

  • exceptions β€” NotFittedError, ConvergenceWarning, ValueError
  • base β€” BaseEstimator, ClassifierMixin, RegressorMixin, TransformerMixin, ClusterMixin
  • utils/extmath β€” safeDot, gramMatrix, cholesky, rowNorms, matMul, transpose
  • utils/validation β€” checkArray, checkXy, checkFeaturesConsistency
  • utils/multiclass β€” typeOfTarget, uniqueLabels, classCount
  • utils/class_weight β€” computeClassWeight, computeSampleWeight

Phase 2 β€” Preprocessing & Metrics:

  • preprocessing/StandardScaler β€” Welford online mean/variance
  • preprocessing/MinMaxScaler β€” feature_range scaling
  • preprocessing/LabelEncoder β€” label encoding/decoding
  • preprocessing/Normalizer β€” L1/L2/max normalization
  • metrics/regression β€” MSE, MAE, R2, MAPE, explained_variance
  • metrics/classification β€” accuracy, confusion_matrix, precision, recall, F1, log_loss
  • model_selection β€” train_test_split, KFold, StratifiedKFold

Phase 3 (new this iteration):

  • linear_model/LinearRegression β€” OLS via Cholesky decomposition (normal equations)
  • linear_model/Ridge β€” L2-regularized least squares

Infrastructure

  • CI workflow (GitHub Actions with Bun)
  • Comprehensive tests (60+ test cases)
  • Interactive playground deployed to GitHub Pages

Generated by Autoloop Β· ● 42.8M Β· β—·

To install this agentic workflow, run

gh aw add .github/workflows/autoloop.md

Note

This was originally intended as a pull request, but the git push operation failed.

Workflow Run: View run details and download bundle artifact

The bundle file is available in the agent artifact in the workflow run linked above.

To create a pull request with the changes:

# Download the artifact from the workflow run
gh run download 25737555375 -n agent -D /tmp/agent-25737555375

# Fetch the bundle into a local branch
git fetch /tmp/agent-25737555375/aw-autoloop-build-tsikit-learn-scikit-learn-typescript-migration.bundle refs/heads/autoloop/build-tsikit-learn-scikit-learn-typescript-migration:refs/heads/autoloop/build-tsikit-learn-scikit-learn-typescript-migration
git checkout autoloop/build-tsikit-learn-scikit-learn-typescript-migration

# Push the branch to origin
git push origin autoloop/build-tsikit-learn-scikit-learn-typescript-migration

# Create the pull request
gh pr create --title '[Autoloop: build-tsikit-learn-scikit-learn-typescript-migration]' --base main --head autoloop/build-tsikit-learn-scikit-learn-typescript-migration --repo githubnext/tsikit-learn

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions