moremodels


Namemoremodels JSON
Version 1.0.3 PyPI version JSON
download
home_pagehttps://github.com/AbdelRahmanYaghi/moremodels
SummaryMore options to ensemble your models
upload_time2023-01-26 18:57:26
maintainer
docs_urlNone
authorAbdelRahman Yaghi
requires_python>=3.6
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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])

```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/AbdelRahmanYaghi/moremodels",
    "name": "moremodels",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "AbdelRahman Yaghi",
    "author_email": "abd20200355@std.psut.edu.jo",
    "download_url": "https://files.pythonhosted.org/packages/b4/a7/60a4b2c9768d8eb72fc9a84a61a3d9162da09c9c8c288b6245a8be6b83ad/moremodels-1.0.3.tar.gz",
    "platform": null,
    "description": "# MoreModels\r\n\r\nA python library allowing you to use multiple models using the weight of each model based on their performance\r\n\r\ninstall using \r\n```\r\npip install moremodels\r\n```\r\n\r\nExample code:\r\n\r\n```\r\nfrom moremodels import WeightedModels\r\n\r\nmodel1 = catboost.CatBoostRegressor()\r\nmodel2 = RandomForestRegressor()\r\nmodel3 = xgboost.XGBRegressor()\r\n\r\nmy_data = pd.read('my_data.csv')\r\ntest = pd.read('test.csv)\r\n\r\nmy_models = [model1, model2, model3]\r\nmodels = WeightedModels( models = my_models, trainSplit = 0.8, randomState = 696969 )\r\n\r\nmodels.fit(my_data)\r\n\r\nprint(models.modelWeights)\r\n\r\nmyPredictedData = models.predict(test)\r\n\r\nprint(models.models[0])\r\n\r\n```\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "More options to ensemble your models",
    "version": "1.0.3",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "36f826c3c4b619e4f32ac51744dbb8eaa662a0b0c77ac32b416ab598da3ffb7d",
                "md5": "3e89f0d8021a7f1a10596f7f9cdd1c92",
                "sha256": "3d16927319e146948b2c8991076ee3c9c5867bbeee4e7da653861a315e60d7a0"
            },
            "downloads": -1,
            "filename": "moremodels-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3e89f0d8021a7f1a10596f7f9cdd1c92",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3481,
            "upload_time": "2023-01-26T18:57:24",
            "upload_time_iso_8601": "2023-01-26T18:57:24.518292Z",
            "url": "https://files.pythonhosted.org/packages/36/f8/26c3c4b619e4f32ac51744dbb8eaa662a0b0c77ac32b416ab598da3ffb7d/moremodels-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b4a760a4b2c9768d8eb72fc9a84a61a3d9162da09c9c8c288b6245a8be6b83ad",
                "md5": "8a3ff67d2dc4b8ea9535b96bae2df516",
                "sha256": "c19fe01473787ceeca3858f228e2230c9d26b07fb6b6e440a02492c32e5ad666"
            },
            "downloads": -1,
            "filename": "moremodels-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "8a3ff67d2dc4b8ea9535b96bae2df516",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3132,
            "upload_time": "2023-01-26T18:57:26",
            "upload_time_iso_8601": "2023-01-26T18:57:26.614306Z",
            "url": "https://files.pythonhosted.org/packages/b4/a7/60a4b2c9768d8eb72fc9a84a61a3d9162da09c9c8c288b6245a8be6b83ad/moremodels-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-26 18:57:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "AbdelRahmanYaghi",
    "github_project": "moremodels",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "moremodels"
}
        
Elapsed time: 0.10214s