dmcennis / jAudioGIT

jAudio project from the original McGill collaboration between Cory McKay and Daniel McEnnis. This branch has forked from the JMir version currently distributed with JMir.
GNU Lesser General Public License v2.1
32 stars 16 forks source link

Can't save specific attributes only (ARFF) #10

Open GPrathap opened 8 years ago

GPrathap commented 8 years ago

I am trying to train an audio classifier. When I try to save as arff format it saves more attributes which were mentioned via GUI. Here is a sample output.I am using jAudio-1.0.4. Any help on this matter really appreciated.

@relation jAudio @ATTRIBUTE "Spectral Centroid0" NUMERIC @ATTRIBUTE "Derivative of Spectral Centroid0" NUMERIC @ATTRIBUTE "Strongest Beat0" NUMERIC @ATTRIBUTE "Beat Sum0" NUMERIC @ATTRIBUTE "Strength Of Strongest Beat0" NUMERIC @ATTRIBUTE "LPC0" NUMERIC @ATTRIBUTE "LPC1" NUMERIC @ATTRIBUTE "LPC2" NUMERIC @ATTRIBUTE "LPC3" NUMERIC @ATTRIBUTE "LPC4" NUMERIC @ATTRIBUTE "LPC5" NUMERIC @ATTRIBUTE "LPC6" NUMERIC @ATTRIBUTE "LPC7" NUMERIC @ATTRIBUTE "LPC8" NUMERIC @ATTRIBUTE "LPC9" NUMERIC @ATTRIBUTE "Method of Moments0" NUMERIC @ATTRIBUTE "Method of Moments1" NUMERIC @ATTRIBUTE "Method of Moments2" NUMERIC @ATTRIBUTE "Method of Moments3" NUMERIC @ATTRIBUTE "Method of Moments4" NUMERIC @ATTRIBUTE "Area Method of Moments of MFCCs0" NUMERIC @ATTRIBUTE "Area Method of Moments of MFCCs1" NUMERIC @ATTRIBUTE "Area Method of Moments of MFCCs2" NUMERIC @ATTRIBUTE "Area Method of Moments of MFCCs3" NUMERIC @ATTRIBUTE "Area Method of Moments of MFCCs4" NUMERIC @ATTRIBUTE "Area Method of Moments of MFCCs5" NUMERIC @ATTRIBUTE "Area Method of Moments of MFCCs6" NUMERIC @ATTRIBUTE "Area Method of Moments of MFCCs7" NUMERIC @ATTRIBUTE "Area Method of Moments of MFCCs8" NUMERIC @ATTRIBUTE "Area Method of Moments of MFCCs9" NUMERIC

@DATA 7.816E-4,5.425E-4,4.11E-4,1.052E-3,1.642E-3,1.372E-3,7.743E-4,1.15E-3,1.438E-3,1.132E-3,6.966E-4,6.088E-4,5.1E-4,2.089E-4,1.305E-4,3.296E-4,3.543E-4,2.57E-4,1.264E-4,5.142E-5,6.067E-5,5.244E-5,3.062E-5,2.297E-5,2.367E-5,2.057E-5,1.563E-5,1.672E-5,1.629E-5,1.081E-5,4.804E-6,5.063E-6,5.728E-6,3.916E-6,3.062E-6,3.535E-6,2.681E-6,5.234E-7,3.263E-6,3.982E-6,2.143E-6,4.283E-7,1.41E-6,1.306E-6,7.283E-7,5.587E-7,1.315E-6,1.433E-6,2.003E-7,1.236E-6,2.577E-6,2.478E-6,1.068E-6,7.15E-7,6.699E-7,7.863E-7,9.3E-7,7.509E-7,7.912E-7,5.746E-7,1.024E-6,1.175E-6,9.302E-7,5.803E-7,8.975E-7,8.569E-7,9.551E-7,1.859E-7,4.646E-7,5.423E-7,7.129E-7,4.326E-7,6.749E-7,3.856E-7,5.082E-7,2.469E-7,1.065E-6,8.689E-7,6.36E-7,7.622E-7,1.204E-6,9.312E-7,8.004E-7,1.244E-7,7.046E-7,6.887E-7,7.222E-7,5.215E-7,6.695E-7,7.746E-7,4.926E-7,1.851E-7,2.595E-8,1.51E-7,6.592E-7,4.963E-7,8.364E-8,4.33E-7,7.755E-7,5.947E-7,2.954E-7,3.427E-7,8.05E-7,6.37E-7,6.026E-7,6.583E-7,3.712E-7,2.34E-7,2.418E-7,6.81E-7,4.282E-7,5.672E-7,5.345E-7,1.396E-7,4.748E-7,1.284E-7,1.616E-7,4.703E-7,1.556E-7,5.14E-7,2.35E-7,5.3E-7,6.198E-7,3.751E-7,7.945E-7,7.154E-7,1.244E-7,2.008E-7,3.584E-7,6.771E-7,7.384E-7,4.872E-7,4.828E-7,1.242E-6,1.033E-6,5.895E-7,5.185E-7,5.353E-7,1.037E-7,3.827E-7,2.993E-7,8.869E-8,2.838E-7,7.653E-7,3.987E-7,6.377E-7,8.084E-7,7.166E-7,2.428E-7,3.64E-7,4.302E-7,6.867E-7,6.635E-7,5.892E-7,5.6E-7,3.681E-7,2.918E-7,3.373E-7,5.436E-7,6.523E-7,5.536E-7,2.584E-7,4.179E-7,3.464E-7,4.055E-7,3.756E-7,2.456E-7,3.305E-7,4.212E-7,5.399E-7,3.472E-7,4.453E-7,2.488E-7,3.8E-7,2.266E-7,6.979E-8,3.569E-7,6.428E-7,7.153E-7,5.731E-7,1.765E-7,2.79E-7,2.859E-7,4.617E-7,3.656E-7,6.684E-7,7.319E-7,6.333E-7,4.871E-7,6.539E-7,6.131E-7,3.647E-7,2.617E-7,1.074E-7,3.224E-7,5.133E-7,1.067E-7,2.107E-7,2.907E-7,5.313E-7,2.701E-7,2.672E-7,1.587E-7,1.214E-7,1.75E-7,4.878E-7,5.588E-7,3.241E-7,2.378E-7,2.94E-7,1.114E-7,3.561E-7,3.312E-7,2.758E-7,3.608E-7,3.32E-7,5.313E-7,4.539E-7,4.798E-7,2.179E-7,3.622E-7,9.568E-7,5.18E-7,3.901E-7,2.046E-7,8.226E-7,9.865E-7,4.741E-7,3.088E-7,4.976E-7,5.166E-7,4.916E-7,2.347E-7,2.525E-7,4.298E-7,3.598E-7,3.254E-7,2.249E-7,4.655E-7,4.049E-7,5.135E-7,1.569E-7,7.198E-7,5.846E-7,5.622E-7,3.732E-7,5.815E-8,3.442E-7,2.745E-7,5.581E-7,1.035E-6,1.05E-6,6.018E-7,2.37E-7,5.84E-7,3.898E-7,3.128E-4,1.507E-4,8.649E-5,5.662E-4,1.381E-3,9.636E-4,3.069E-4,6.774E-4,1.058E-3,6.561E-4,2.484E-4,1.898E-4,1.332E-4,2.233E-5,8.714E-6,5.561E-5,6.426E-5,3.381E-5,8.185E-6,1.353E-6,1.885E-6,1.408E-6,4.802E-7,2.702E-7,2.868E-7,2.166E-7,1.251E-7,1.432E-7,1.358E-7,5.979E-8,1.182E-8,1.312E-8,1.68E-8,7.853E-9,4.802E-9,6.398E-9,3.68E-9,1.403E-10,5.45E-9,8.119E-9,2.352E-9,9.39E-11,1.017E-9,8.737E-10,2.715E-10,1.598E-10,8.849E-10,1.052E-9,2.055E-11,7.817E-10,3.401E-9,3.144E-9,5.842E-10,2.617E-10,2.297E-10,3.166E-10,4.429E-10,2.887E-10,3.205E-10,1.69E-10,5.368E-10,7.065E-10,4.43E-10,1.724E-10,4.125E-10,3.759E-10,4.671E-10,1.77E-11,1.105E-10,1.506E-10,2.602E-10,9.581E-11,2.332E-10,7.612E-11,1.322E-10,3.12E-11,5.804E-10,3.865E-10,2.071E-10,2.975E-10,7.424E-10,4.439E-10,3.28E-10,7.927E-12,2.542E-10,2.428E-10,2.67E-10,1.392E-10,2.295E-10,3.072E-10,1.242E-10,1.754E-11,3.448E-13,1.168E-11,2.225E-10,1.261E-10,3.582E-12,9.6E-11,3.079E-10,1.811E-10,4.469E-11,6.013E-11,3.318E-10,2.078E-10,1.859E-10,2.219E-10,7.054E-11,2.804E-11,2.993E-11,2.375E-10,9.387E-11,1.647E-10,1.463E-10,9.972E-12,1.154E-10,8.445E-12,1.338E-11,1.132E-10,1.24E-11,1.353E-10,2.827E-11,1.438E-10,1.967E-10,7.202E-11,3.232E-10,2.621E-10,7.928E-12,2.064E-11,6.575E-11,2.347E-10,2.792E-10,1.215E-10,1.194E-10,7.902E-10,5.468E-10,1.779E-10,1.377E-10,1.467E-10,5.506E-12,7.499E-11,4.587E-11,4.027E-12,4.123E-11,2.999E-10,8.138E-11,2.082E-10,3.346E-10,2.629E-10,3.017E-11,6.782E-11,9.474E-11,2.414E-10,2.254E-10,1.778E-10,1.606E-10,6.937E-11,4.359E-11,5.824E-11,1.513E-10,2.179E-10,1.569E-10,3.418E-11,8.941E-11,6.142E-11,8.419E-11,7.223E-11,3.089E-11,5.592E-11,9.082E-11,1.492E-10,6.171E-11,1.015E-10,3.169E-11,7.392E-11,2.629E-11,2.494E-12,6.521E-11,2.116E-10,2.62E-10,1.682E-10,1.595E-11,3.984E-11,4.185E-11,1.091E-10,6.845E-11,2.287E-10,2.742E-10,2.053E-10,1.215E-10,2.189E-10,1.925E-10,6.809E-11,3.506E-11,5.904E-12,5.322E-11,1.349E-10,5.827E-12,2.274E-11,4.325E-11,1.445E-10,3.735E-11,3.655E-11,1.289E-11,7.548E-12,1.568E-11,1.218E-10,1.599E-10,5.379E-11,2.895E-11,4.425E-11,6.357E-12,6.492E-11,5.618E-11,3.896E-11,6.665E-11,5.643E-11,1.445E-10,1.055E-10,1.179E-10,2.431E-11,6.718E-11,4.687E-10,1.374E-10,7.79E-11,2.144E-11,3.465E-10,4.983E-10,1.151E-10,4.883E-11,1.268E-10,1.367E-10,1.238E-10,2.821E-11,3.264E-11,9.457E-11,6.628E-11,5.421E-11,2.589E-11,1.109E-10,8.393E-11,1.35E-10,1.261E-11,2.653E-10,1.75E-10,1.618E-10,7.133E-11,1.731E-12,6.067E-11,3.858E-11,1.595E-10,5.486E-10,5.645E-10,1.854E-10,2.877E-11,1.746E-10,7.781E-11,1.562E1,4.688E1,7.812E1,1.094E2,1.406E2,1.719E2,2.031E2,2.344E2,2.656E2,2.969E2,3.281E2,3.594E2,3.906E2,4.219E2,4.531E2,4.844E2,5.156E2,5.469E2,5.781E2,6.094E2,6.406E2,6.719E2,7.031E2,7.344E2,7.656E2,7.969E2,8.281E2,8.594E2,8.906E2,9.219E2,9.531E2,9.844E2,1.016E3,1.047E3,1.078E3,1.109E3,1.141E3,1.172E3,1.203E3,1.234E3,1.266E3,1.297E3,1.328E3,1.359E3,1.391E3,1.422E3,1.453E3,1.484E3,1.516E3,1.547E3,1.578E3,1.609E3,1.641E3,1.672E3,1.703E3,1.734E3,1.766E3,1.797E3,1.828E3,1.859E3,1.891E3,1.922E3,1.953E3,1.984E3,2.016E3,2.047E3,2.078E3,2.109E3,2.141E3,2.172E3,2.203E3,2.234E3,2.266E3,2.297E3,2.328E3,2.359E3,2.391E3,2.422E3,2.453E3,2.484E3,2.516E3,2.547E3,2.578E3,2.609E3,2.641E3,2.672E3,2.703E3,2.734E3,2.766E3,2.797E3,2.828E3,2.859E3,2.891E3,2.922E3,2.953E3,2.984E3,3.016E3,3.047E3,3.078E3,3.109E3,3.141E3,3.172E3,3.203E3,3.234E3,3.266E3,3.297E3,3.328E3,3.359E3,3.391E3,3.422E3,3.453E3,3.484E3,3.516E3,3.547E3,3.578E3,3.609E3,3.641E3,3.672E3,3.703E3,3.734E3,3.766E3,3.797E3,3.828E3,3.859E3,3.891E3,3.922E3,3.953E3,3.984E3,4.016E3,4.047E3,4.078E3,4.109E3,4.141E3,4.172E3,4.203E3,4.234E3,4.266E3,4.297E3,4.328E3,4.359E3,4.391E3,4.422E3,4.453E3,4.484E3,4.516E3,4.547E3,4.578E3,4.609E3,4.641E3,4.672E3,4.703E3,4.734E3,4.766E3,4.797E3,4.828E3,4.859E3,4.891E3,4.922E3,4.953E3,4.984E3,5.016E3,5.047E3,5.078E3,5.109E3,5.141E3,5.172E3,5.203E3,5.234E3,5.266E3,5.297E3,5.328E3,5.359E3,5.391E3,5.422E3,5.453E3,5.484E3,5.516E3,5.547E3,5.578E3,5.609E3,5.641E3,5.672E3,5.703E3,5.734E3,5.766E3,5.797E3,5.828E3,5.859E3,5.891E3,5.922E3,5.953E3,5.984E3,6.016E3,6.047E3,6.078E3,6.109E3,6.141E3,6.172E3,6.203E3,6.234E3,6.266E3,6.297E3,6.328E3,6.359E3,6.391E3,6.422E3,6.453E3,6.484E3,6.516E3,6.547E3,6.578E3,6.609E3,6.641E3,6.672E3,6.703E3,6.734E3,6.766E3,6.797E3,6.828E3,6.859E3,6.891E3,6.922E3,6.953E3,6.984E3,7.016E3,7.047E3,7.078E3,7.109E3,7.141E3,7.172E3,7.203E3,7.234E3,7.266E3,7.297E3,7.328E3,7.359E3,7.391E3,7.422E3,7.453E3,7.484E3,7.516E3,7.547E3,7.578E3,7.609E3,7.641E3,7.672E3,7.703E3,7.734E3,7.766E3,7.797E3,7.828E3,7.859E3,7.891E3,7.922E3,7.953E3,7.984E3,6.151E0,?,?,?,?,-9.982E-1,7.423E-1,4.166E-1,2.685E-1,1.809E-1,1.124E-1,5.93E-2,1.711E-2,-1.372E-2,0E0,1.399E-2,8.393E0,1.857E2,2.928E4,5.778E6,?,?,?,?,?,?,?,?,?,?

dmcennis commented 8 years ago

This is normal. By default, LPC output is a 9 dimension vector it gets flattened into 9 different (officially independent) dimensions in the resulting output as Weka does not support multidimensional features. Right now you are using per window (i.e. first 6 windows were jazz, the next 6 pop, etc.) You probably meant per-file which is a different setting. This requires aggregators.

Keep in mind there is was a breach that has damaged the original jAudio project. The project is on hold while I sort through the legal and technical complications in restoring the project.

GPrathap commented 8 years ago

Really appreciate for prompt response on this. I have two questions.