Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2011-11-17 15:21:07 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2012-07-13 22:50:34 +0400
commit9987a3b574ad88a4f1fee67fb913d1849e729261 (patch)
tree92125bd2b308229fa8cb0e92da655106c8baaf6e /src/mlp_data.c
parent73eb363e2c0cf907a2ec08e526489bdb1125fe1d (diff)
Speech/music discrimination (not used for anything yet)
Also, reducing the VBR rate on panned mono
Diffstat (limited to 'src/mlp_data.c')
-rw-r--r--src/mlp_data.c77
1 files changed, 77 insertions, 0 deletions
diff --git a/src/mlp_data.c b/src/mlp_data.c
new file mode 100644
index 00000000..fdd32db3
--- /dev/null
+++ b/src/mlp_data.c
@@ -0,0 +1,77 @@
+#include "mlp.h"
+
+/* RMS error was 0.196871, seed was 1321340808 */
+
+static const float weights[291] = {
+
+/* hidden layer */
+1.93994, 0.00636575, -0.0838112, 0.188811, -0.157845,
+-0.122662, 0.296779, -0.066386, -0.0764464, -0.00372055,
+-0.0397377, -0.000976218, -0.03931, 0.0111525, -0.0377797,
+-0.003592, 0.00213057, 0.115952, -0.0864595, 0.170621,
+-0.139312, -0.125683, 0.226746, -0.148058, -3.11536,
+-5.7119, -0.325896, -4.37802, 2.1242, -0.119952,
+0.0232531, -0.0998321, -0.0909719, -0.164338, 0.0370311,
+0.0196689, 0.0495503, -0.267277, -0.15925, -0.129835,
+-0.171845, -0.0672326, -0.0319364, -0.0960325, 0.132835,
+0.0978292, -0.0204049, -0.128357, -0.0582566, -0.21682,
+0.00496659, -0.0224912, -2.3249, 2.10627, -5.06275,
+0.300689, -1.05938, 0.111387, 0.100606, 0.122446,
+-0.0175274, 0.0107236, -0.030947, -0.0712338, -0.0456196,
+0.0158188, 0.0139863, 0.0122389, 0.0426144, 0.00963211,
+0.00741379, 0.014572, -0.0365356, 0.0780221, 0.0835844,
+0.101463, -0.0194471, 0.016752, -0.0360326, -0.0671933,
+5.35889, -6.06707, 1.35677, -1.90924, 0.0347801,
+0.0122876, 0.00258179, -0.0217294, 0.0827611, 0.0859281,
+-0.00417207, -0.109872, -0.238913, -0.288535, -0.0319008,
+0.156671, -0.00911369, -0.0351284, 0.0355504, 0.101236,
+-0.140194, -0.128439, 0.0275677, -0.0507381, 0.106048,
+0.0672367, 0.00438842, -0.0925318, 5.68238, -3.47798,
+0.246634, 0.0970976, -1.33011, 0.0498353, 0.179046,
+0.0162675, -0.102764, -0.227255, 0.234701, -0.00777973,
+0.0767733, -0.00420136, 0.0344874, -0.0332389, 0.062122,
+-0.0360523, 0.0461029, 0.0861842, 0.0136479, 0.0133092,
+0.165541, -0.0573712, -0.0694408, -0.196571, 0.222621,
+0.0197353, 3.42359, 5.23165, -1.10221, 3.66079,
+0.40144, -0.493484, 0.217106, -0.0143906, 0.295599,
+-0.614104, 0.596788, 0.956514, 0.107316, -0.172138,
+-0.111201, 0.0162694, -0.136564, 0.0567972, -0.107051,
+-0.0578785, 0.0597572, -0.592051, 0.11802, -0.0846178,
+0.144399, -0.386859, 0.429763, 0.763419, 8.40166,
+4.25269, -3.25962, 2.04492, -1.54948, 0.0286627,
+0.0855541, -0.128902, 0.0428149, 0.147296, -0.178688,
+0.582621, -0.0423034, -0.168806, -0.0930681, -0.0505222,
+-0.059881, 0.0344017, -0.0538223, -0.0095173, 0.044275,
+0.178126, 0.0321441, -0.192936, -0.0359919, 0.0449504,
+-0.255187, 0.330503, 14.3362, -12.7585, 2.10511,
+1.00446, -1.5146, 0.00315578, -0.0189675, 0.0506854,
+-0.0306224, -0.0343434, -0.0222091, 0.00040356, -0.179946,
+-0.213007, -0.046152, 0.0122855, 0.0335543, -0.0172102,
+0.0236597, 0.088535, -0.0980871, -0.129909, -0.019153,
+0.0544563, -0.0272701, -0.00304803, -0.00145721, 0.0190295,
+-6.75401, 2.83619, 2.38708, -0.904901, 0.670252,
+-0.0809205, -0.077534, -0.0347895, -0.0143415, -0.00527138,
+0.0400907, 0.041551, 0.00823289, -0.00772847, -0.0172196,
+-0.0125943, -0.0285652, -0.00141913, -0.010938, -0.0154068,
+0.0149916, -0.0577316, -0.0750255, -0.019028, -0.0175507,
+-0.00248046, 0.0350994, 0.0396102, -0.334886, 1.32123,
+-0.363775, 0.0925417, 7.5025, 0.76236, 0.489961,
+0.514362, 0.350457, 0.321636, -0.000131804, 0.0942301,
+0.506788, -0.325235, 0.162356, -0.147705, 0.155451,
+-0.111074, 0.120173, 0.0586432, 0.407685, 0.374031,
+0.510908, 0.25445, 0.285288, 0.184939, 0.0386202,
+0.089713, 12.6662, 2.54239, -14.9728, 7.46559,
+
+/* output layer */
+-4.63633, -1.25936, -1.33365, 4.91614, 1.1609,
+1.30642, -0.780207, 1.09432, -1.46686, 8.41454,
+1.55149, };
+
+static const int topo[3] = {27, 10, 1};
+
+const MLP net = {
+ 3,
+ topo,
+ weights
+};
+