- Manually download the database files that have been uploaded to Knowm's Google Drive account here.
- Manually copy the
DB_HJA_BIRDSONG.*
files into the/usr/local/Datasets
folder. There should be four files.
- Download raw data from here: http://web.engr.oregonstate.edu/~briggsf/kdd2012datasets/hja_birdsong/
- put all files (hierarchy.zip, test-remapped and train-remapped) in
raw
folder in project root - Run
DownloadWavFiles.java
andRawData2DB.java
. - The database containing the data will appear in
db
. - Manually copy the
DB_HJA_BIRDSONG.*
files into some folder, which you will point to later in an app using the data such as/usr/local/Datasets/
. There should be four files.
-
Put the desired jar on the classpath of your application. This will give you access to the DAO and Bean classes.
-
Just call
init
on the DAO class you are using, passing it the path to the database files that you downloaded or generated above. When finished with the data, callrelease
. The following example is for the BreastCancer dataset. For more examples see thedatasets-samples
module.try { BreastCancerDAO.init("/usr/local/Datasets/"); // setup data BreastCancerDemo demo = new BreastCancerDemo(); demo.go(); } catch (Exception e) { e.printStackTrace(); } finally { BreastCancerDAO.release(); // release data resources }
See: org.knowm.datasets.samples.HJABirdsongSpectrogramViewer
. Make sure you've placed the generated/downloaded DB data at the location specified at the line: HJABirdsongDAO.init("/usr/local/Datasets/"); // setup data
.