Topsis-Aniket-102003643


NameTopsis-Aniket-102003643 JSON
Version 0.1 PyPI version JSON
download
home_pagehttps://github.com/Aniket-Sharma27/Topsis_Aniket_102003643
SummaryIt is a topsis package.
upload_time2023-01-22 22:35:37
maintainer
docs_urlNone
authorAniket Sharma
requires_python
licenseMIT
keywords mcdm 102003643 topsis
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Topsis_Aniket_102003643

_for: **Topsis Project**_
_submitted by: **Aniket Sharma**_
_Roll no: **102003643**_
_Group: **3COE25**_


Topsis_Aniket_102003643 is a Python library for dealing with Multiple Criteria Decision Making(MCDM) problems by using 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_Aniket_102003643.

```bash
pip install Topsis_Aniket_102003643
```

## Usage

Enter csv filename followed by _.csv_ extentsion, then enter the _weights_ vector with vector values separated by commas, followed by the _impacts_ vector with comma separated signs _(+,-)_
```bash
topsis sample.csv "1,1,1,1" "+,-,+,+"
```
or vectors can be entered without " "
```bash
topsis sample.csv 1,1,1,1 +,-,+,+
```
But the second representation does not provide for inadvertent spaces between vector values. So, if the input string contains spaces, make sure to enclose it between double quotes _(" ")_.

To view usage __help__, use
```
topsis /h
```
## 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 = [ + , + , - , + ]

### input:

```python
topsis sample.csv "0.25,0.25,0.25,0.25" "+,+,-,+"
```

### output:
```
      TOPSIS RESULTS
-----------------------------

    P-Score  Rank
1  0.534277     3
2  0.308368     5
3  0.691632     1
4  0.534737     2
5  0.401046     4

``` 

## Other notes

* The first column and first row are removed by the library before processing, in attempt to remove indices and headers. So make sure the csv follows the format as shown in sample.csv.
* Make sure the csv does not contain categorical values
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Aniket-Sharma27/Topsis_Aniket_102003643",
    "name": "Topsis-Aniket-102003643",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "MCDM,102003643,TOPSIS",
    "author": "Aniket Sharma",
    "author_email": "anikets1023@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/fd/db/7e40b6757c9ce89b9ede0cffca6358d0135b2920889ab41bcceabf5376b6/Topsis_Aniket_102003643-0.1.tar.gz",
    "platform": null,
    "description": "# Topsis_Aniket_102003643\n\n_for: **Topsis Project**_\n_submitted by: **Aniket Sharma**_\n_Roll no: **102003643**_\n_Group: **3COE25**_\n\n\nTopsis_Aniket_102003643 is a Python library for dealing with Multiple Criteria Decision Making(MCDM) problems by using 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_Aniket_102003643.\n\n```bash\npip install Topsis_Aniket_102003643\n```\n\n## Usage\n\nEnter csv filename followed by _.csv_ extentsion, then enter the _weights_ vector with vector values separated by commas, followed by the _impacts_ vector with comma separated signs _(+,-)_\n```bash\ntopsis sample.csv \"1,1,1,1\" \"+,-,+,+\"\n```\nor vectors can be entered without \" \"\n```bash\ntopsis sample.csv 1,1,1,1 +,-,+,+\n```\nBut the second representation does not provide for inadvertent spaces between vector values. So, if the input string contains spaces, make sure to enclose it between double quotes _(\" \")_.\n\nTo view usage __help__, use\n```\ntopsis /h\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### input:\n\n```python\ntopsis sample.csv \"0.25,0.25,0.25,0.25\" \"+,+,-,+\"\n```\n\n### output:\n```\n      TOPSIS RESULTS\n-----------------------------\n\n    P-Score  Rank\n1  0.534277     3\n2  0.308368     5\n3  0.691632     1\n4  0.534737     2\n5  0.401046     4\n\n``` \n\n## Other notes\n\n* The first column and first row are removed by the library before processing, in attempt to remove indices and headers. So make sure the csv follows the format as shown in sample.csv.\n* Make sure the csv does not contain categorical values",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "It is a topsis package.",
    "version": "0.1",
    "split_keywords": [
        "mcdm",
        "102003643",
        "topsis"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fddb7e40b6757c9ce89b9ede0cffca6358d0135b2920889ab41bcceabf5376b6",
                "md5": "9de00e5197e51de91b27d687452a2123",
                "sha256": "f369b177dc0bf6a231a29dac897bcd5c909034a34fa0e705cfa3d43d59fff386"
            },
            "downloads": -1,
            "filename": "Topsis_Aniket_102003643-0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "9de00e5197e51de91b27d687452a2123",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5045,
            "upload_time": "2023-01-22T22:35:37",
            "upload_time_iso_8601": "2023-01-22T22:35:37.747707Z",
            "url": "https://files.pythonhosted.org/packages/fd/db/7e40b6757c9ce89b9ede0cffca6358d0135b2920889ab41bcceabf5376b6/Topsis_Aniket_102003643-0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-22 22:35:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "Aniket-Sharma27",
    "github_project": "Topsis_Aniket_102003643",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "topsis-aniket-102003643"
}
        
Elapsed time: 0.03089s