Skip to content

A LibreOffice Calc extension that fills missing data using machine learning techniques

License

Notifications You must be signed in to change notification settings

dennisfrancis/AutoFillMissingData

Repository files navigation

AutoFillMissingData

A LibreOffice Calc extension that fills missing data (both continuous and categorical) using machine learning techniques.

To install the prebuilt extension, use the Extension Manager of LibreOffice and browse to this repo's file AutoFillMissingData.oxt. Alternatively you can install the extension using terminal as :

$ git clone https://github.com/dennisfrancis/AutoFillMissingData.git
$ cd AutoFillMissingData
$ unopkg install ./AutoFillMissingData.oxt

To use this extension on some data in a sheet in LibreOffice, place the cursor on any cell inside your table with data ( no need to select the whole table ) and go to the menu Missing data and click on Fill missing data.

This project is currently alpha and under heavy development. Full source code is made available under GPL3 license. Whole of the project was written from scratch and it does not depend on any Machine Learning or Linear Algebra library. If you are interested in understanding how to build LibreOffice extensions like this, I have a blog for that at https://niocs.github.io/LOBook/extensions/index.html

As of now the extension uses a variation of kNN instance based regression and classification algorithms to predict missing data. It does auto tuning of k parameter(number of nearest neighbors) to reduce overfitting using a validation set. Ability to tune the algorithm parameters via dialogue boxes is coming soon.

A major issue is that the prebuilt extension (.oxt file) supports only modern GNU/Linux 64 bit systems comparable to Fedora 24. However support for MS Windows and MacOSX is planned. Another caveat is that for the extension to work, at least 10 non blank samples(rows) are needed per feature(column) in the table.

Building the extension from source

First you need to setup LibreOffice SDK as per the instruction in http://api.libreoffice.org/docs/install.html. Then do the below :

$ cd AutoFillMissingData
$ make

If you get errors in compilation, please check if the SDK's environment variables are set properly after setting up the SDK. If that does not solve it, open an issue here. If you are compiling in a GNU/Linux platform and used the standard defaults while setting up the SDK, the oxt file can be found at the location /home/$username/libreoffice5.4_sdk/LINUXexample.out/bin/

Pull requests are always welcome. Happy hacking !

About

A LibreOffice Calc extension that fills missing data using machine learning techniques

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published