More options to ensemble your models
Project description
MoreModels
A python library allowing you to use multiple models using the weight of each model based on their performance
install using
pip install moremodels
Example code:
from moremodels import WeightedModels
model1 = catboost.CatBoostRegressor()
model2 = RandomForestRegressor()
model3 = xgboost.XGBRegressor()
my_data = pd.read('my_data.csv')
test = pd.read('test.csv)
my_models = [model1, model2, model3]
models = WeightedModels( models = my_models, trainSplit = 0.8, randomState = 696969 )
models.fit(my_data)
print(models.modelWeights)
myPredictedData = models.predict(test)
print(models.models[0])
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
moremodels-1.0.4.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for moremodels-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46b63cdfc2233f27df54548420f967bf42ae2fb25d7e65cb4a05ddbb1f8165c0 |
|
MD5 | dd306c597ec726ca694a51c559b2708b |
|
BLAKE2b-256 | d84c0034f1bccf42bc425bc28e853c430df5fd8cd2993ff035389810a8292bb7 |