Skip to main content

Implements Wide Boosting functions for popular boosting packages

Project description

wideboost

Implements wide boosting using popular boosting frameworks as a backend.

Getting started

pip install wideboost

Sample script

XGBoost back-end

import xgboost as xgb
from wideboost.wrappers import wxgb

dtrain = xgb.DMatrix('../../xgboost/demo/data/agaricus.txt.train')
dtest = xgb.DMatrix('../../xgboost/demo/data/agaricus.txt.test')

# Two extra parameters, 'btype' and 'extra_dims'
param = {'btype':'I','extra_dims':2,'max_depth':2, 'eta':0.1, 'objective':'binary:logistic','eval_metric':['error'] }
num_round = 50
watchlist = [(dtrain,'train'),(dtest,'test')]
wxgb_results = dict()
bst = wxgb.train(param, dtrain, num_round,watchlist,evals_result=xgb_results)

Parameter Explanations

'btype' indicates how to initialize the beta matrix. Settings are 'I', 'In', 'R', 'Rn'.

'extra_dims' integer indicating how many "wide" dimensions are used. When 'extra_dims' is set to 0 (and 'btype' is set to 'I') then wide boosting is equivalent to standard gradient boosting.

Reference

Coming Soon!

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

wideboost-0.0.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

wideboost-0.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file wideboost-0.0.1.tar.gz.

File metadata

  • Download URL: wideboost-0.0.1.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for wideboost-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a5305187b98a1ed9360c2bc7052b5a9577c0e574f9d44325fb8bfae0411b9039
MD5 001d664b3d3883382d06b6a926a3793d
BLAKE2b-256 eccd437a3825d707c31cc4a46a033a82aaac6593104c5dfe7267f3702ef302a0

See more details on using hashes here.

File details

Details for the file wideboost-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: wideboost-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for wideboost-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 713ea84351c0a8d74d3947ae2c15f48d02913f3017b62be4c4f9f5d8c2f00580
MD5 0fea231f3ddee53e70642109b27f2f04
BLAKE2b-256 d08afdfe81feaa8c9a7a1025b991cef3c4c09ff29cbba1761de78a2ce571f0da

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