BiObjClass


NameBiObjClass JSON
Version 1.0.2 PyPI version JSON
download
home_pageNone
SummaryBi-objective Lexicographical Classification
upload_time2024-04-15 19:38:08
maintainerNone
docs_urlNone
authorTiago Costa Soares, Pedro Augusto Mendes, Iago Augusto de Carvalho
requires_pythonNone
licenseNone
keywords classification bi-objetive lexicographical ranking csv
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# BiObjClass

Alpha version with most useful functions implemented.

Developed by Tiago Costa Soares, Pedro Augusto Mendes


# Overview

The project implements a bi-objective lexicographic ranking approach. The classification is done based on two input files, one containing the results of each algorithm, and the other containing the execution times for each scenario.

# Installation

Make sure you have Python 3 installed. Then, you can install the package using the following command:


from BiObjClass import bilex, par10


# Usage

After installing the package.
O pacote pode ser encontrado em: https://test.pypi.org/project/BiObjClass/


## Function bilex:

The bilex function takes three input parameters, the first parameter is the results.csv file that contains the results of each algorithm, the second file is the time.csv that contains the execution time for each of the scenarios, and finally a boolean has_header, which indicates whether the files have a header(true) or not(false). The has_header parameter defaults to false. The return is a matrix with the results properly ranked.

The bilex function can be executed in two ways:

### 1- The first way is to execute the function using only the csv files as parameters, as follows:

    matrix_ranking = bilex('results.csv', 'time.csv')
    
'Replace 'results.csv' and 'time.csv' with your file names'

In this case, the header will not be considered, since has_header is false by default. If your files have a header, it is recommended to use the second approach, in order to avoid possible errors in the classification of the algorithms.

### 2- The second way is to execute the function using the files and the boolean as parameters.

    matrix_ranking = bilex('results.csv', 'time.csv', 'has_header')

'Replace 'results.csv' and 'time.csv' with your file names'

This approach is recommended for files that have a header line. By assigning true to has_header, the function will no longer apply the classification to the first line of the files.



## Function par10

The par10 function takes two input parameters, the first parameter is the G.csv file that contains the results of each algorithm, the second parameter is a boolean has_header, which indicates whether the files have a header(true) or not(false). The has_header parameter defaults to false. The return is a matrix with the results properly ranked.

The par10 function can be executed in two ways:

### 1- The first way is to execute the function using only the csv file as a parameter, as follows:

    matrix_par10 = par10('G.csv')
    
'Replace 'G.csv' with your file name'

In this case, the header will not be considered, since has_header is false by default. If your file has a header, it is recommended to use the second approach, in order to avoid possible errors in the classification of the algorithms.

### 2- The second way is to execute the function using the file and the boolean as parameters.

    matrix_ranking = bilex('G.csv', 'has_header')

'Replace 'G.csv' with your file name'

This approach is recommended for files that have a header line. By assigning true to has_header, the function will no longer apply the classification to the first line of the files.


## License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "BiObjClass",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "classification, bi-objetive, lexicographical, ranking, csv",
    "author": "Tiago Costa Soares, Pedro Augusto Mendes, Iago Augusto de Carvalho",
    "author_email": "tiagocsoares22@gmail.com, pedroaugusto.mendes035@gmail.com, iago.carvalho@unifal-mg.edu.brZ",
    "download_url": "https://files.pythonhosted.org/packages/d1/08/2d7e05eed4223a62cde19f27dd1f00a2c2790080dd060659eb4c02ecc0fe/BiObjClass-1.0.2.tar.gz",
    "platform": null,
    "description": "\n# BiObjClass\n\nAlpha version with most useful functions implemented.\n\nDeveloped by Tiago Costa Soares, Pedro Augusto Mendes\n\n\n# Overview\n\nThe project implements a bi-objective lexicographic ranking approach. The classification is done based on two input files, one containing the results of each algorithm, and the other containing the execution times for each scenario.\n\n# Installation\n\nMake sure you have Python 3 installed. Then, you can install the package using the following command:\n\n\nfrom BiObjClass import bilex, par10\n\n\n# Usage\n\nAfter installing the package.\nO pacote pode ser encontrado em: https://test.pypi.org/project/BiObjClass/\n\n\n## Function bilex:\n\nThe bilex function takes three input parameters, the first parameter is the results.csv file that contains the results of each algorithm, the second file is the time.csv that contains the execution time for each of the scenarios, and finally a boolean has_header, which indicates whether the files have a header(true) or not(false). The has_header parameter defaults to false. The return is a matrix with the results properly ranked.\n\nThe bilex function can be executed in two ways:\n\n### 1- The first way is to execute the function using only the csv files as parameters, as follows:\n\n    matrix_ranking = bilex('results.csv', 'time.csv')\n    \n'Replace 'results.csv' and 'time.csv' with your file names'\n\nIn this case, the header will not be considered, since has_header is false by default. If your files have a header, it is recommended to use the second approach, in order to avoid possible errors in the classification of the algorithms.\n\n### 2- The second way is to execute the function using the files and the boolean as parameters.\n\n    matrix_ranking = bilex('results.csv', 'time.csv', 'has_header')\n\n'Replace 'results.csv' and 'time.csv' with your file names'\n\nThis approach is recommended for files that have a header line. By assigning true to has_header, the function will no longer apply the classification to the first line of the files.\n\n\n\n## Function par10\n\nThe par10 function takes two input parameters, the first parameter is the G.csv file that contains the results of each algorithm, the second parameter is a boolean has_header, which indicates whether the files have a header(true) or not(false). The has_header parameter defaults to false. The return is a matrix with the results properly ranked.\n\nThe par10 function can be executed in two ways:\n\n### 1- The first way is to execute the function using only the csv file as a parameter, as follows:\n\n    matrix_par10 = par10('G.csv')\n    \n'Replace 'G.csv' with your file name'\n\nIn this case, the header will not be considered, since has_header is false by default. If your file has a header, it is recommended to use the second approach, in order to avoid possible errors in the classification of the algorithms.\n\n### 2- The second way is to execute the function using the file and the boolean as parameters.\n\n    matrix_ranking = bilex('G.csv', 'has_header')\n\n'Replace 'G.csv' with your file name'\n\nThis approach is recommended for files that have a header line. By assigning true to has_header, the function will no longer apply the classification to the first line of the files.\n\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Bi-objective Lexicographical Classification",
    "version": "1.0.2",
    "project_urls": null,
    "split_keywords": [
        "classification",
        " bi-objetive",
        " lexicographical",
        " ranking",
        " csv"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d1082d7e05eed4223a62cde19f27dd1f00a2c2790080dd060659eb4c02ecc0fe",
                "md5": "e3be40cc00361d1cc6fad64cfa7c11da",
                "sha256": "688a721c00be1ea5d48d3b38393e4edbdb6062b5e3f7f8bcb365e3df5d8c27a0"
            },
            "downloads": -1,
            "filename": "BiObjClass-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "e3be40cc00361d1cc6fad64cfa7c11da",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 18536,
            "upload_time": "2024-04-15T19:38:08",
            "upload_time_iso_8601": "2024-04-15T19:38:08.353618Z",
            "url": "https://files.pythonhosted.org/packages/d1/08/2d7e05eed4223a62cde19f27dd1f00a2c2790080dd060659eb4c02ecc0fe/BiObjClass-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-15 19:38:08",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "biobjclass"
}
        
Elapsed time: 0.24719s