Wolfram.com
WolframAlpha.com
WolframCloud.com
Wolfram Language
Example Repository
Ready-to-use examples for the Wolfram Language
Primary Navigation
Categories
Astronomy
Audio Processing
Calculus
Cellular Automata
Chemistry
Complex Systems
Computer Science
Computer Vision
Control Systems
Creative Arts
Data Science
Engineering
Finance & Economics
Finite Element Method
Food & Nutrition
Geography
Geometry
Graphs & Networks
Image Processing
Life Sciences
Machine Learning
Mathematics
Optimization
Physics
Puzzles and Recreation
Quantum Computation
Signal Processing
Social Sciences
System Modeling
Text & Language Processing
Time-Related Computation
Video Processing
Visualization & Graphics
Alphabetical List
Submit a New Resource
Learn More about
Wolfram Language
Related Pages
Related Symbols
Classify
ClassifierMeasurements
WebAudioSearch
Related Categories
Machine Learning
Audio Processing
A Simple Audio Classifier for Three Musical Instruments
Example Notebook
Open in Cloud
Download Notebook
Collect samples of guitars, drums and trumpets using
W
e
b
A
u
d
i
o
S
e
a
r
c
h
:
I
n
[
1
]
:
=
d
a
t
a
=
J
o
i
n
@
@
T
a
b
l
e
T
h
r
e
a
d
W
e
b
A
u
d
i
o
S
e
a
r
c
h
i
n
s
t
r
,
"
S
a
m
p
l
e
s
"
,
.
.
.
i
n
s
t
r
,
{
i
n
s
t
r
,
{
"
a
c
o
u
s
t
i
c
g
u
i
t
a
r
"
,
"
d
r
u
m
s
"
,
"
t
r
u
m
p
e
t
"
}
}
;
Separate training and testing subsets of the data:
I
n
[
2
]
:
=
{
t
r
a
i
n
,
t
e
s
t
}
=
T
a
k
e
D
r
o
p
[
R
a
n
d
o
m
S
a
m
p
l
e
[
d
a
t
a
]
,
9
0
]
;
Construct a
C
l
a
s
s
i
f
i
e
r
F
u
n
c
t
i
o
n
that classifies audio recordings as a guitar, a trumpet or drums:
I
n
[
3
]
:
=
c
l
=
C
l
a
s
s
i
f
y
[
t
r
a
i
n
]
;
I
n
f
o
r
m
a
t
i
o
n
[
c
l
]
O
u
t
[
3
]
=
C
l
a
s
s
i
f
i
e
r
i
n
f
o
r
m
a
t
i
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
l
u
a
t
i
o
n
t
i
m
e
7
1
9
.
m
s
/
e
x
a
m
p
l
e
B
a
t
c
h
e
v
a
l
u
a
t
i
o
n
s
p
e
e
d
2
.
1
7
e
x
a
m
p
l
e
s
/
s
See Also
Similarity of Instrument Recordings
Related Symbols
Classify
ClassifierMeasurements
WebAudioSearch
Publisher Information
Contributed by:
Wolfram Staff