Git Product home page Git Product logo

convertme's Introduction

ConvertMe -- Ayoyoyo Wololo

https://img.shields.io/pypi/v/convertme https://img.shields.io/github/license/mikulatomas/convertme https://github.com/mikulatomas/convertme/actions/workflows/build.yml/badge.svg?branch=master https://img.shields.io/pypi/pyversions/convertme

Simple dataset convertor in Python. Currently memory hungry in case of large datasets.

https://img.youtube.com/vi/Up2eawxvTmg/0.jpg

Installation

Install package via pip:

$ pip install convertme

Use the provided CLI:

$ convertme --help
Usage: convertme [OPTIONS]

Options:
-if, --input-format [csv|fimi|cxt|mat|cex]
                                [required]
-of, --output-format [csv|fimi|cxt|mat|cex]
                                [required]
-i, --input TEXT                Input file, skip it for stdin.
-o, --output TEXT               Output file, skip it for stdout.
--input-delimiter TEXT          (CSV) Delimiter of input.  [default: ,]
--output-delimiter TEXT         (CSV) Delimiter of output.  [default: ,]
--objects-col INTEGER           (CSV) Index of column with object labels,
                                typically 0, ignored on default.

--attributes-row INTEGER        (CSV) Index of row with attribute labels,
                                typically 0, ignored on default.

--true-values TEXT              (CSV) Values which will be count as True,
                                comma separated.

--help                          Show this message and exit.

Basic usage:

Convert simple csv file to fimi format:

$ convertme -i dataset.csv -if=csv -o dataset.fimi -of=fimi

Content of dataset.csv:

1,0,1,0
0,1,0,1

Content of dataset.fimi:

0 2
1 3

Supported formats

  • csv
  • burmeister (.cxt)
  • fimi
  • matlab (version<=7.3)
  • conexp (.cex)

Development

Clone this repository to the folder, then:

# create virtualenv (optional)
$ mkvirtualenv convertme -p python3

#if is not actived (optional)
$ workon convertme

$ pip install -e .

$ python setup.py test

convertme's People

Contributors

janostikinf avatar mikulatomas avatar radekjanostik avatar rvyjidacek avatar tomasurbanec avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

convertme's Issues

CLI should support object/attribute labels

Allow something like this:

convertme -i dataset.csv -if=csv -o dataset.fimi -of=fimi --objects objects.txt --attributes attributes.txt

Probably better to have objects.txt in simple format like one object per line.

Add Dataset metadata output to CLI

Allow something like this:

convertme -i dataset.csv -if=csv -o dataset.fimi -of=fimi --metadata metadata.json

Metadata object can be outputed from Dataset object after dataset is created with Reader.

CLI

Implement CLI via public API.

Lib. API

Implement library public API.

Add support of "list of values to context csv"

Allow to input csv files like

black,wooden,cheap\nred,plastic\ncheap,yellow,wooden

and output it like:

attributes universe
black, red, yellow, wooden, plastic, chep

bools
1,0,0,1,0,1\n0,1,0,0,1,0\n0,0,1,1,0,0\n

Dataset metadata

Implement JSON metadata:

  • Size
  • Density
  • Labels (Attrs, Objects)
  • Source of dataset
  • etc.

Documentation

Setup and create at least auto generated documentation from code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.