Skip to main content

A set of modules for the Numerai tournament.

Project description

PyPI version PyPI status PyPI pyversions PyPI license Code style: black

nntm

A set of modules for the Numerai tournament.

Installation

pip install nntm==1.3.0

Usage

from nntm.datasets import (
    fetch_numerai_training,
    fetch_numerai_tournament,
    COLUMN_NAMES_SMALL,
)
from sklearn.linear_model import LinearRegression

# Leave out some columns to save RAM
columns = COLUMN_NAMES_SMALL

# Fit
X_train, y_train = fetch_numerai_training(return_X_y=True, columns=columns)
model = LinearRegression()
model.fit(X_train, y_train)

# Predict
X_tourn, _ = fetch_numerai_tournament(return_X_y=True, columns=columns)
y_pred = model.predict(X_tourn)

1.3.0 (2021-11-04)

Feat

  • add argument to keep downloaded file

1.2.2 (2021-11-04)

Fix

  • explicitly check if groups is None

1.2.1 (2021-11-04)

Fix

  • explicitly check if groups is None

1.2.0 (2021-10-30)

Feat

  • add constants for feature and target names

1.1.1 (2021-10-30)

Fix

  • add suffix only to filepath

1.1.0 (2021-10-30)

Feat

  • add fetcher for feature metadata
  • add argument to fetch custom round

1.0.0 (2021-10-29)

Feat

  • add fetcher for validation predictions
  • add fetcher for example predictions
  • add fetcher for live data
  • add fetcher for test data
  • add fetcher for tournament data
  • add targets attribute
  • remove na_value argument
  • use original data types
  • return metadata as separate attributes

BREAKING CHANGE

  • remove support for NaN value replacement in fetchers.
  • don't convert eras to int.
  • replace the dataset's info attribute by id, era and data_type attributes.

0.3.0 (2021-10-28)

Feat

  • add PurgedKFold cross-validator

Perf

  • fill NaNs only when necessary

0.2.0 (2021-10-08)

Feat

  • add fetcher for validation data

0.1.2 (2021-10-07)

Fix

  • support earlier python versions

0.1.1 (2021-10-07)

Refactor

  • remove icons

0.1.0 (2021-10-07)

Feat

  • add fetcher for training data

MIT License

Copyright (c) 2021 Timo Sutterer

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

BSD 3-Clause License

Copyright (c) 2007-2021 The scikit-learn developers. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  • Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

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

nntm-1.3.0.tar.gz (24.7 kB view details)

Uploaded Source

Built Distribution

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

nntm-1.3.0-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file nntm-1.3.0.tar.gz.

File metadata

  • Download URL: nntm-1.3.0.tar.gz
  • Upload date:
  • Size: 24.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 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

Hashes for nntm-1.3.0.tar.gz
Algorithm Hash digest
SHA256 2ddf3740d33ff9fc1e8eac3e3a58e86f5b4b086bf09b729ff6f0dc7410096f2c
MD5 d99e89f1f806b871bbb0d5b38aceaea1
BLAKE2b-256 6916128d32f02e641d9e31d2480b0a7cb3ccf5f38a68fcfbb78c8452a4a14cfe

See more details on using hashes here.

File details

Details for the file nntm-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: nntm-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 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

Hashes for nntm-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3eb221fa753994f34bf0bf419f34ef1473c037e743d0c89718346034600847cb
MD5 caa1b1b73a32194a9c48350438d9883d
BLAKE2b-256 c023db37a2ba47239ef753133ffcd5177ba92a051dd36d8a23203804232cd97f

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