Skip to content
/ db2arff Public

Generates an Atribute-Relation File from data collected with the AWARE framework and stored in a MySQL database.

Notifications You must be signed in to change notification settings

sbdzdz/db2arff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AWARE to Weka

This is a part of the ContextViewer project. It generates an ARFF file from data collected using the AWARE framework.

Configuring the database connection

First, you need to create a config file with connection details. It has to include the host, user, password, and name of your MySQL database. See the establishConnection() function in jsonClasses.py. By default, this file should be called connection.conf.

Labelling

The converter takes care of the labelling, but you have to manually define classes in config.json. Several types of contextual data are supported, see jsonClasses.py for details.

For example, if you want geolocation data to be labeled, you must define at least one area polygon in config.json. Every location within that polygon will get an appropriate label and every area outside of it will be labeled as "Other" (see the Area class in jsonClasses.py).

Convertion

Set the start and end timestamps and provide a deviceID in main.py, then run it. This should create an ARFF file called out.arff.

About

Generates an Atribute-Relation File from data collected with the AWARE framework and stored in a MySQL database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages