Skip to main content

A package for sketched ridgeless estimator simulations, optimizing generalization. Identify the best sketching size to minimize out-of-sample risks. Stable risk curves in optimally sketched estimator eliminate peaks found in full-sample estimator. SRLR offers practical method to discover the ideal sketching size.

Project description

SRLR

Sketched Ridgeless Linear Regression

Description

This repository presents numerical simulations that analyze the empirical risks of the sketched ridgeless estimator, aiming to enhance generalization performance. The simulations focus on determining optimal sketching sizes that minimize out-of-sample prediction risks. The results reveal that the optimally sketched estimator exhibits stable risk curves, effectively eliminating the peaks observed in the full-sample estimator. Additionally, we introduce a practical procedure to empirically identify the optimal sketching size.

Suppose we observe data vectors (xi,yi) that follow a linear model yi=xiTβi, i=1,...n, where yi is a univariate response, xi is a d-dimensional predictor, β denotes the vector of regression coefficients, and εi is a random error. We consider the ridgeless least square estimator β̂=(XTX)+XTY.

With this package, the simulation results in this paper can be reporduced.

Examples

Please refer to tutorial.ipynb for a comprehensive example and step-by-step guide.

Reference

Chen, X., Zeng, Y., Yang, S. and Sun, Q. Sketched Ridgeless Linear Regression: The Role of Downsampling. Paper

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SRLR-0.1.8.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SRLR-0.1.8-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file SRLR-0.1.8.tar.gz.

File metadata

  • Download URL: SRLR-0.1.8.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for SRLR-0.1.8.tar.gz
Algorithm Hash digest
SHA256 28eb380946994e8ab5d29a8d507f4bf619e35f40827125f01709f2e2a1c7475b
MD5 b8bcd8de1880c440c61e381d0cf53945
BLAKE2b-256 b2540196c1d8c0428fdcac5fc97b5aa0a2008225f53615be473d3bec09fe623b

See more details on using hashes here.

File details

Details for the file SRLR-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: SRLR-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for SRLR-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 04ab58fa9456f652ca150af73d03a552160161a4a70bac3fc52f704ac2fdade8
MD5 0f980a4d4030ddcbee4d8d5b62ddb725
BLAKE2b-256 479c06c8f041bb07c4cf32f7f20698c4c7b0ba962ef3cf998b9ecf57b66da168

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page