Skip to main content

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


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)

Uploaded Source

Built Distribution

moremodels-1.0.4-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

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