Giter Club home page Giter Club logo

butils's Introduction

Iโ€™m Lecturer in Computer Science at the Division of Theoretical Computer Science, Department of Computer Science at the School of Electrical Engineering and Computer Science of KTH Royal Institute of Technology.

I'm interested in

  • e-learning and have developed distance courses/programmes since 2011,
  • teaching in programming and security,
  • research in didactics and computer security, particularly democracy-enhancing technologies.

I teach Python and security, I do a lot of automation in Python.

butils's People

Contributors

dbosk avatar

Watchers

 avatar  avatar  avatar

Forkers

mitigooli

butils's Issues

Class for entries

It should contain date, description and value as the basic attributes. This should be implemented in {AbstractRepresentation}.

Class for EntryFactory

The constructor should take a file like object as input and return a list of entries.
This should be implemented in {AbstractRepresentation}.

Design matching algorithm

We first implement a matching between two entries. The result of the matching between the two entries is a distance score between those two. The distance score is the sum of the distances between its components for each attribute. This way the two entries are equal if they get the distance score 0, i.e. if all the attributes match.

The components are computed as follows: The distance between the values is the absolute value of their arithmetic difference.

The distance between the dates is the difference in days.

The distance between the descriptions are a bit more complex. We work with them as case-insensitive. If one is a sub-string of the other, the distance is 0.

Possibly it is interesting to weight the different components.

The next step is to match entries in one left-hand-side list against entries in another right-hand-side list. The result is a matching matrix where the rows are entries from the left-hand-side list and the columns are entries in the right-hand-side list. Basically we can find the minimums for rows and columns, those are the best matchings.

Suggestion for defining the matching score:

  • Order description, date.
  • The distance between descriptions are calculated as:
    • 0 if one string is the subset of the other string (case insensitive),
    • and as 5 (a chosen threshold) if they are not a subset of each other (case insensitive).
  • The distance between dates is the absolute number of days.
  • The sum of the date and description distances are added together to give the final distance between two entries.

Depending on how the matching algorithm is implemented, it might not be commutative, meaning that you cannot get the same results if you match file A against B or file B against A. In case of a non-commutative implementation, it is suggested to compare the budget file (which has a higher possibility to be incomplete) against the bank file.

Implement parser for Ledger

We need a parser for Ledger reports. Probably the easiest to parse for our purposes is the output of the register command.

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.