Topsis-Cherish-102003647


NameTopsis-Cherish-102003647 JSON
Version 0.4 PyPI version JSON
download
home_pagehttps://github.com/15cherish/Topsis-Cherish-102003647
SummaryIt is a topsis package.
upload_time2023-01-22 19:14:59
maintainer
docs_urlNone
authorCherish Mahajan
requires_python
licenseMIT
keywords mcdm 102003647 topsis
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            _for: **Topsis_Cherish_102003647**_
_submitted by: **Cherish Mahajan**_
_Roll no: **102003647**_
_Group: **3COE25**_


Topsis_Cherish_102003647 is a Python library for solving Multiple Criteria Decision Making(MCDM) problems by  Technique for Order of Preference by Similarity to Ideal Solution(TOPSIS).

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install Topsis-Cherish-102003647.

```bash
pip install Topsis_Cherish_102003647
```

## Usage

Enter csv filename followed by _.csv_ extension, then enter the _weights_ vector with vector values separated by commas, followed by the _impacts_ vector with comma separated signs _(+,-)_

### Input
And using this package in Python as :
```bash
import topsispy as tp
a =[
     [250, 16, 12, 5],
     [200, 16, 8, 3],
     [300, 32, 16, 4],
     [275, 32, 8, 4],
     [225, 16, 16, 2]
   ]
w = [0.25, 0.25, 0.25, 0.25]
sign = [-1, 1, 1, 1]
tp.topsis(a, w, sign)
```

The package can be used via commandline as :
``` bash
$ python [package name] [path of csv as string] [list of weights as string] [list of sign as string]
```
## Example

#### sample.csv

A csv file showing data for different mobile handsets having varying features.

| Model  | Storage space(in gb) | Camera(in MP)| Price(in $)  | Looks(out of 5) |
| :----: |:--------------------:|:------------:|:------------:|:---------------:|
| M1 | 16 | 12 | 250 | 5 |
| M2 | 16 | 8  | 200 | 3 |
| M3 | 32 | 16 | 300 | 4 |
| M4 | 32 | 8  | 275 | 4 |
| M5 | 16 | 16 | 225 | 2 |

weights vector = [ 0.25 , 0.25 , 0.25 , 0.25 ]

impacts vector = [ + , + , - , + ]



### Output:

      TOPSIS RESULTS
      As per the given sample, the output file looks as given below :


| Model  | Storage space(in gb) | Camera(in MP)| Price(in $)  | Looks(out of 5) |Topsis Score  |  Rank  |
| :----: |:--------------------:|:------------:|:------------:|:---------------:|:------------:|:------:|
| M1 | 16 | 12 | 250 | 5 | 0.534277 | 3 |
| M2 | 16 | 8  | 200 | 3 | 0.308368 | 5 |
| M3 | 32 | 16 | 300 | 4 | 0.691632 | 1 |
| M4 | 32 | 8  | 275 | 4 | 0.534737 | 2 |
| M5 | 16 | 16 | 225 | 2 | 0.401046 | 4 |
   


## Other notes

* The first column and first row have only been omitted by the library Topsis-Cherish-102003647 before processing, in attempt to remove indices and headers. So make sure the csv follows the format as shown in sample.csv otherwise the code will have issues in working properly.
* Make sure the csv does not contain categorical values since the code takes into account all the values which are encoded as numerical values.
* The Topsis-Cherish-102003647 works on the sample data and calculates the topsis score according to which it provides the rank to each available option.
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/15cherish/Topsis-Cherish-102003647",
    "name": "Topsis-Cherish-102003647",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "MCDM,102003647,TOPSIS",
    "author": "Cherish Mahajan",
    "author_email": "cherishmahajan@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/1c/7e/5041dcc18315a69cdae8a6af5cc45d99bc47027f444ea379557f7550b058/Topsis_Cherish_102003647-0.4.tar.gz",
    "platform": null,
    "description": "_for: **Topsis_Cherish_102003647**_\n_submitted by: **Cherish Mahajan**_\n_Roll no: **102003647**_\n_Group: **3COE25**_\n\n\nTopsis_Cherish_102003647 is a Python library for solving Multiple Criteria Decision Making(MCDM) problems by  Technique for Order of Preference by Similarity to Ideal Solution(TOPSIS).\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install Topsis-Cherish-102003647.\n\n```bash\npip install Topsis_Cherish_102003647\n```\n\n## Usage\n\nEnter csv filename followed by _.csv_ extension, then enter the _weights_ vector with vector values separated by commas, followed by the _impacts_ vector with comma separated signs _(+,-)_\n\n### Input\nAnd using this package in Python as :\n```bash\nimport topsispy as tp\na =[\n     [250, 16, 12, 5],\n     [200, 16, 8, 3],\n     [300, 32, 16, 4],\n     [275, 32, 8, 4],\n     [225, 16, 16, 2]\n   ]\nw = [0.25, 0.25, 0.25, 0.25]\nsign = [-1, 1, 1, 1]\ntp.topsis(a, w, sign)\n```\n\nThe package can be used via commandline as :\n``` bash\n$ python [package name] [path of csv as string] [list of weights as string] [list of sign as string]\n```\n## Example\n\n#### sample.csv\n\nA csv file showing data for different mobile handsets having varying features.\n\n| Model  | Storage space(in gb) | Camera(in MP)| Price(in $)  | Looks(out of 5) |\n| :----: |:--------------------:|:------------:|:------------:|:---------------:|\n| M1 | 16 | 12 | 250 | 5 |\n| M2 | 16 | 8  | 200 | 3 |\n| M3 | 32 | 16 | 300 | 4 |\n| M4 | 32 | 8  | 275 | 4 |\n| M5 | 16 | 16 | 225 | 2 |\n\nweights vector = [ 0.25 , 0.25 , 0.25 , 0.25 ]\n\nimpacts vector = [ + , + , - , + ]\n\n\n\n### Output:\n\n      TOPSIS RESULTS\n      As per the given sample, the output file looks as given below :\n\n\n| Model  | Storage space(in gb) | Camera(in MP)| Price(in $)  | Looks(out of 5) |Topsis Score  |  Rank  |\n| :----: |:--------------------:|:------------:|:------------:|:---------------:|:------------:|:------:|\n| M1 | 16 | 12 | 250 | 5 | 0.534277 | 3 |\n| M2 | 16 | 8  | 200 | 3 | 0.308368 | 5 |\n| M3 | 32 | 16 | 300 | 4 | 0.691632 | 1 |\n| M4 | 32 | 8  | 275 | 4 | 0.534737 | 2 |\n| M5 | 16 | 16 | 225 | 2 | 0.401046 | 4 |\n   \n\n\n## Other notes\n\n* The first column and first row have only been omitted by the library Topsis-Cherish-102003647 before processing, in attempt to remove indices and headers. So make sure the csv follows the format as shown in sample.csv otherwise the code will have issues in working properly.\n* Make sure the csv does not contain categorical values since the code takes into account all the values which are encoded as numerical values.\n* The Topsis-Cherish-102003647 works on the sample data and calculates the topsis score according to which it provides the rank to each available option.",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "It is a topsis package.",
    "version": "0.4",
    "split_keywords": [
        "mcdm",
        "102003647",
        "topsis"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1c7e5041dcc18315a69cdae8a6af5cc45d99bc47027f444ea379557f7550b058",
                "md5": "b321e32a23e42b927fd3aead838df769",
                "sha256": "f78f07ba546957647bddd975a743abd1db3a5d4ecbb1db4d04633e55c69152e4"
            },
            "downloads": -1,
            "filename": "Topsis_Cherish_102003647-0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "b321e32a23e42b927fd3aead838df769",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5060,
            "upload_time": "2023-01-22T19:14:59",
            "upload_time_iso_8601": "2023-01-22T19:14:59.345870Z",
            "url": "https://files.pythonhosted.org/packages/1c/7e/5041dcc18315a69cdae8a6af5cc45d99bc47027f444ea379557f7550b058/Topsis_Cherish_102003647-0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-22 19:14:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "15cherish",
    "github_project": "Topsis-Cherish-102003647",
    "lcname": "topsis-cherish-102003647"
}
        
Elapsed time: 0.03045s