A collection of regression datasets
Project description
RegData
A collection of regression datasets.
Install
pip install regdata
Quick example
import regdata as rd
rd.set_backend('torch') # numpy, tf (numpy is default)
X, y, X_test = rd.Step().get_data() # Loads step function dataset
Features
- Simple API for quick benchmarking on various datasets.
- Get data in any framework:
torch
,tensorflow
ornumpy
by setting a global backend. - Scale
X
and/ory
data withMinMaxScaler
orStandardScaler
. - Get
y
in squeezed(n,)
or unsqueezed(n,1)
format. - Perform only mean normalization on
y
. - Add custom noise to the observations (
y
). - Get consistent data with fixed random seed.
Plot datasets to have a quick glance
import regdata as rd
rd.Olympic().plot()
Checkout all plots here.
Datasets
from regdata import (
DellaGattaGene,
MotorcycleHelmet,
Olympic,
SineJump1D,
Smooth1D,
Step
)
References
- DellaGattaGene
- MotorcycleHelmet
- Olympic
- SineJump1D
- Smooth1D - Example 2
- Step
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
regdata-1.0.1.tar.gz
(92.2 kB
view details)
File details
Details for the file regdata-1.0.1.tar.gz
.
File metadata
- Download URL: regdata-1.0.1.tar.gz
- Upload date:
- Size: 92.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08308f12f00ea0189e0afc32883cfd4230e6fd398addedeb4c096c4888ec261f |
|
MD5 | d8be02cb08c7ea11b5269972fc4a14e1 |
|
BLAKE2b-256 | 20a11c667869d9880fa5850bda338ca0e314acf7878b3483859b5cf16c9fe632 |